Is there a way to find out if a filesystem check is scheduled for the next boot?
Maybe it's similar to a forced check, which gets triggered by the existence of the file /forcefsck?
|
Is there a way to find out if a filesystem check is scheduled for the next boot? Maybe it's similar to a forced check, which gets triggered by the existence of the file |
|||||
|
|
It depends on your filesystem, in addition to /forcefsck . With ext2, ext3 and ext4 you can use
Where diskname is for example sda1. You can determine name of your disk partition by running command
Example output (only partly):
Where xvda1 is name of root disk partition. For dumpe2fs three interesting items are
Ubuntu will run fsck if mount count is equal or greater than maximum mount count, or if "next check after" is passed. |
||||
|
|
|
Starting in Ubuntu 11.04, this information will be shown in your
and it will report any partitions that will be checked on the next reboot. |
|||
|
There's a utility called showfsck that will tell you how many mounts are left until the next scheduled |
|||||||||
|