Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
RedPieDad
Posts: 20
Joined: 2017-12-08 08:17

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

#1 Post by RedPieDad »

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.

bigrigdriver
Posts: 145
Joined: 2014-09-01 17:04
Location: East Central Illinois, USA

Re: How do you disable journaling?

#2 Post by bigrigdriver »

Registered GNU/Linux user #170078

Go ask google before you ask on these boards.

It it isn't broken, Tweak It !!!

RedPieDad
Posts: 20
Joined: 2017-12-08 08:17

Re: How do you disable journaling?

#3 Post by RedPieDad »


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?

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#4 Post by dilberts_left_nut »

No.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

#5 Post by GarryRicketson »

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.

RedPieDad
Posts: 20
Joined: 2017-12-08 08:17

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

#6 Post by RedPieDad »

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.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

#7 Post by GarryRicketson »

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
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

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

#8 Post by sunrat »

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!

Post Reply