Mailinglist Archive: opensuse (1108 mails)

< Previous Next >
Re: [opensuse] Using e2fsck in, eg, Leap 15.0
Le 22/08/2018 à 14:18, Andrei Borzenkov a écrit :
22.08.2018 14:17, Carlos E. R. пишет:

But Basil (and you?) says that fsck can't check root on init 1, and you
say you can on init S, so they are not the same.


You cannot use fsck on mounted filesystem. Period.

I see this in the man page

-M Do not check mounted filesystems and return an exit code of 0 for mounted filesystems.
and for ext4:

" Note that in general it is not safe to run e2fsck on mounted filesystems. The only exception is if the -n option is specified, and -c, -l, or -L options are not specified. However, even if it is safe to do so, the results printed by e2fsck are not valid if the filesystem is mounted. If e2fsck asks whether or not you should check a filesystem which is mounted, the only correct answer is ``no''. Only experts who really know what they are doing should consider answering this question in any other way."

so yes, you *can* use it but you better not

jdd


--
http://dodin.org

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >