fsck with noauto
David A. Bandel
david.bandel at gmail.com
Sat Feb 26 10:40:59 PST 2011
On Sat, Feb 26, 2011 at 10:40, Jorge Almeida <jjalmeida at gmail.com> wrote:
> 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?
no
>
> 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?
that's because it's written in the disk metadata -- changed by
tune2fs. The disk knows how many times it's been mounted and when the
last fsck was performed. It also is the location of the "dirty bit"
that tells the system if the filesystem wasn't cleanly unmounted.
>
>> 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.
>
Ciao,
David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
Visit my web page at: http://david.bandel.us/
More information about the Linux-users
mailing list