Re: Running fsck automatically on boot
On Sun, Dec 06, 2009 at 12:37:08PM -0800, Sergio Padrino wrote:
> I have Debian Unstable and sometimes there are some (typical) errors in my
> /dev/sda7: Superblock last mount time is in the future
> /dev/sda7: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
> and I was wondering if there is a way to let fsck to run automatically in
> these cases. I have no problem with this (although it's kind of annoying :P)
> but my sister has no computer knowledge so it's hard for her to check her
> partitions :S
> Thank you in advance!
To force a fsck on boot you can use either the -F flag of shutdown(8),
or you can `touch /forcefsck' and reboot normally. Either way, every
filesystem will be forced to fsck on reboot.