Is fsck obsolet for journaling FS? - Was: How do I Automount [snip]
heller at deepsoft.com
Mon Nov 30 15:03:33 UTC 2015
At Mon, 30 Nov 2015 16:33:20 +0200 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
> On Sun, Nov 29, 2015 at 10:03 PM, Robert Heller <heller at deepsoft.com> wrote:
> > Actually, journaling file systems *do* require periodically fsck. They just
> > don't need to run fsck everytime there is a 'crash' reboot (i.e. someone yanks
> > the power cord or presses the reset button or something like that). Actually
> > fsck is the program that handles journal processing when mounting an 'unclean'
> > journaled file system, so yes fsck really is still used.
> >From a clean install of a 16.04 VM where "/dev/sda1" is "/":
> # tune2fs -l /dev/sda1 | grep -E 'Maximum|Check'
> Maximum mount count: -1
> Check interval: 0 (<none>)
> So the Ubuntu d-i installation sets an ext4 filesystem not to be
> fsck'd after x number of mounts or y days/weeks/months by default.
Interesting set of defaults. Note that this is also a VM and if Ubuntu's
installer is clever enough to detect that it is a VM (not necessarily
impossible), it might be a VM-specific check, esp. if the VM's file system is
implemented as a *file* on an otherwise checked file system.
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller at deepsoft.com -- Webhosting Services
More information about the ubuntu-users