Written by andrearatto the 2 Mar 08 at 09:54.
Category: System.
Related project:
Nothing/Others.
Status: New
Rationale
Sometime the filesystem check on boot may fail and some errors have to be fixed by a manual run of fsck.
For the unexperienced user dropping to a root shell is a bad idea. A little (ncurses based maybe) interface to help this situations would be much more "human".
Eventually the same could be applied to mount errors.
The last time I had a failed fsck, the root cause was a dead power-supply fan.
In fact, at least half the times when I've ever had severe problems on boot, the root cause was hardware-related.
I don't know what an inexperienced user would or could do when confronted with symptoms indicating a possible hardware failure. (Probably end up buying a new box?) But the absolute last thing I want is some moronic software trying to programatically "fix" the problem.
The boot process policy should be...
"When in danger or in doubt, run in circles, scream and shout."
It is VERY confusing for (even experienced) user, when the boot is stopped and you end up in root shell. Also - it's all in english - if someone doesn't know the language he wouldn't be thrilled :(.
I had this situation when upgrading to 8.04 and after running fsck I typed "shutdown -r now" but the 8.04 started with all drives unmounted. It was very, very bad. I suppose inexperienced user would just reset the computer and hope for the best.
most of the times i get this problem is when for some reason the filesystems aren't clean because of a power loss, all i do is fsck autorepair on all disks and reboot: all working back again
i think this should be done graphically and automatically, not for me (i can deal with the cli) but for all newbies (also win98 had an automatic checkdisk ;-))
I post here, what I previously posted as an ubuntu bug:
"There're several use cases where user is forced to open a terminal. All are related to broken filesystems.
Case 1: NTFS without clean OS shutdown - when your PC shuts down rapidly (or windows from 2nd partition hangs) NTFS is not left in clean state. Then, partitions aren't automatically mounted - so they don't appear on the desktop and nautilus shows partitions in its sidebar but refuses to mount them. Solution in most cases is to use -o force option to mount filesystem. Annoying when you have also windows at laptop.
Case 2: (V)FAT with broken FAT table that causes to mount readonly. FS is mounted, but error apears during copying etc. AFAIK remounting r-o can happen late, in the case of operation, not during mounting. Annoying when you have pendrive or mp3 player with generic storage function.
In both cases, and propably a lot of next ones that I hadn't encountered there's a need for user-friendly interface that should warn about situation, and solve the problem."
Im pretty sick of telling my father via Phone what he should type in the root shell. Especial because he is not able to read proper English, so at least some translation is absolutely needed.
Probably the partitions maintenance should be modified to improve the way it is done, with a GUI based on tune2fs that allows :
- to schedule of all or each partition fsck
- to have the possibility to check at the startup or the shutting down (as autofsck allowed it)
- to allow to automatically fix errors
- to background the check if the partition is not the root nor the home. Then the check could finish after the login and the mount could be postponed afterward (if present in fstab)
- to display the partition id, progression and the shortcut to bypass each check (not necessarily all of them) even if the boot is quiet. The verbose option is useful for an exceptional use and not a daily one.