Is it safe to unmount and disable journaling when...

New to Debian (Or Linux in general)? Ask your questions here!

Is it safe to unmount and disable journaling when...

Postby RedPieDad » 2018-02-06 00:44

my entire operating system is in one partition? e.g.
Code: Select all
 /dev/sda2
contains the entire operating system.

I have an SSD card running only Debian. It seems like its not safe, but I want to confirm and/or hear suggestions on how to perform this task if it is at all possible.

I know you can add or remove features with:

Code: Select all
tune2fs -0^


And unmount filesystems with:

Code: Select all
umount



edit: title for clarity
edit2: post to reflect title
Last edited by RedPieDad on 2018-02-06 03:37, edited 2 times in total.
RedPieDad
 
Posts: 12
Joined: 2017-12-08 08:17

Re: How do you disable journaling?

Postby bigrigdriver » 2018-02-06 02:47

Registered GNU/Linux user #170078

Go ask google before you ask on these boards.

It it isn't broken, Tweak It !!!
bigrigdriver
 
Posts: 145
Joined: 2014-09-01 17:04
Location: East Central Illinois, USA

Re: How do you disable journaling?

Postby RedPieDad » 2018-02-06 03:24




Thanks for the link but I know the commands to perform the actions required to disable journaling. That was not the issue. I should clarify; Is it safe to unmount the ext4 filesystem that contains the entire operating system while it is running off the mounted partition that I want to unmount?
RedPieDad
 
Posts: 12
Joined: 2017-12-08 08:17

Re: Is it safe to unmount and disable journaling when...

Postby dilberts_left_nut » 2018-02-06 03:46

No.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4858
Joined: 2009-10-05 07:54
Location: enzed

Re: Is it safe to unmount and disable journaling when...

Postby GarryRicketson » 2018-02-06 03:55

2nd , to confirm what dilberts_left_nut says
No it is not safe. It should, or probably will give a error, warning you:
" can not umount, " or "device is busy "
Code: Select all
#  umount /var
umount: /var: Device busy
 

If you do manage to figure out how to force it, you are most like likely going to end up with a damaged system, and unable to boot the next time it boots. (been there, and done that) I ended up re-installing a new system.
Fortunately I had made a back up of my important data, but still a lot of hassle, for something that did not work.
Using a "live" USB or CD, that can read/write to the drive, boot with the "live" device, you can then work on the other partition / drive or device without it being mounted.
Even then, it is all ways best to be sure to have a good back up made,
in case things go wrong.
Last edited by GarryRicketson on 2018-02-06 05:30, edited 2 times in total.
User avatar
GarryRicketson
 
Posts: 4964
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Is it safe to unmount and disable journaling when...

Postby RedPieDad » 2018-02-06 04:00

GarryRicketson wrote:2nd , to confirm what dilberts_left_nut says
No it is not safe. If you do manage to figure out how to force it, you are most like likely going to end up with a damaged system, and unable to boot the next time it boots.
Using a "live" USB or CD, that can read/write to the drive, boot with the "live" device, you can then work on the other partition / drive or device without it being mounted.



Thought as much. Thank you for confirming.


GarryRicketson wrote:Using a "live" USB or CD, that can read/write to the drive, boot with the "live" device, you can then work on the other partition / drive or device without it being mounted.


many thanks!

Thank you all that responded. I appreciate the time you all took to read this and respond.
RedPieDad
 
Posts: 12
Joined: 2017-12-08 08:17

Re: Is it safe to unmount and disable journaling when...

Postby GarryRicketson » 2018-02-06 04:03

Your welcome, hope you noticed my edit, be sure to make a good back up first. Nothing is 100% safe, but using a live device, you probably will be ok.
User avatar
GarryRicketson
 
Posts: 4964
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Is it safe to unmount and disable journaling when...

Postby sunrat » 2018-02-08 13:21

I question why you want to disable journalling. Is it to reduce writes to SSD? Not worth doing, really. I've been using ext4 on my main system with SSD for about 6 years. No problem.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2391
Joined: 2006-08-29 09:12
Location: Melbourne, Australia


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable