fsck with noauto
Jorge Almeida
jjalmeida at gmail.com
Sat Feb 26 07:40:33 PST 2011
On Sat, Feb 26, 2011 at 2:58 PM, David A. Bandel <david.bandel at gmail.com> wrote:
>
> For an interactive check (the default, which is what is done during
> bootup), you just need to specify the device to fsck.
>
I checked the file /etc/rc.sysinit and it uses "/sbin/fsck -a".
Leaving "-a" out wouldn't prevent repairing?
And how about the options of e2fsck, like -c? It doesn't seem to be
called by -a, judging by the man page.
Also, how does the 30 mounts/180 days stuff enter the picture? The man
page doesn't mention it. Maybe something in the init scripts takes
care of it?
> For what I think you want to do, I'd remove noauto from the fstab so
> the device is mounted. Once it's mounted and checked, in
> /etc/rc.local unmount it.
>
Not an option, really. The disk would have to be up when booting. This
would imply unwanted noise and unneeded power consumption, as I make
the backups later in the day.
Thanks.
Jorge
More information about the Linux-users
mailing list