How to force Feisty filesystem check on boot?

Derek Broughton news at pointerstop.ca
Wed Oct 3 17:25:47 UTC 2007


galt wrote:

> Is there any way one can force Ubuntu Feisty to check all ext3
> partitions for errors on the next boot?
> 
> Thanks

Arrgh.  Didn't this thread already contain a request not to hijack threads?

Please don't "reply" to somebody else's post when you have a brand new
question.

To answer the question: tune2fs (remember, it's really just an ext2
filesystem, with a journal).

"-C mount-count 
 Set the number of times the filesystem has been mounted. If set to a
greater value than the max-mount-counts parameter set by the -c option,
e2fsck(8) will check the filesystem at the next reboot. "

If you used:

tune2fs -C 99999 /dev/XXXX

where XXXX is your partition, I would expect it to be fsck'd next boot.
-- 
derek





More information about the ubuntu-users mailing list