fsck not run on boot if on battery power
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I can see that this is deliberate - a 'feature' - in that /etc/init.
The problem is that if you are on batteries, it becomes difficult to run fsck on the root partition.
So, you're on battery power, something goes wrong, the file system is corrupted / the journal is not consistent, and... you're stuffed. When you next reboot, the file system won't be mended, it'll be left in a mess.
Why yes, this did affect me (thanks to a problem with Hardy alpha and beta causing kernel panics and lock ups). What I ended up having to do was editing the relevant bit out of the script.
I can't imagine skipping fsck saves any power - if the file system is ok, running it is extremely short. But ultimately, if the file system is in a mess, it needs to be sorted, on boot, whether you're on battery power or not.
The alternative of booting into maintenance mode, manually umounting the partition, then mounting read-only, then fsck-ing is beyond most users.
So please either lose this 'feature' or provide a way around it (check if a key is held down?)
Changed in sysvinit: | |
status: | New → Triaged |
This boot has reminded me that the system forces a full check every thirty or so mounts of a partition.
That's ok to skip if on batteries...