if fsck exits with error code 4 no way for non-experts to recover
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mountall (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned | ||
Trusty |
Confirmed
|
Undecided
|
Unassigned | ||
Vivid |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: sysvinit
When mounting the rootfs fails because of fsck exiting with error code >= 4 the user sees a message that he/she needs to manually run a file system check. It does not tell the user how to do that. A non-expert is left in the dark at this point how to restore his system.
Booting into recovery mode (and use the fsck option there) does not work either because the checkroot.sh is still run and drops to a shell.
I would like to improve the error output to contain instructions what the user needs to do, something like:
--- sysvinit-
+++ sysvinit-
@@ -320,9 +320,10 @@
# Surprise! Re-directing from a HERE document (as in "cat << EOF")
# does not work because the root is currently read-only.
-A manual fsck must be performed, then the system restarted.
+A manual fsck must be performed, then the system restarted.
The fsck should be performed in maintenance mode with the
root filesystem mounted in read-only mode."
+ log_failure_msg "Please run \"fsck $rootdev\" manually to fix the problem."
A maintenance shell will now be started.
After performing system maintenance, press CONTROL-D
In addition we may consider ignoring this failure and continue booting in ro-mode when the user selects the recovery option and/or check for /usr/share/
affects: | sysvinit (Ubuntu) → mountall (Ubuntu) |
Changed in mountall (Ubuntu): | |
assignee: | nobody → Dmitrijs Ledkovs (xnox) |
Changed in mountall (Ubuntu): | |
status: | New → Confirmed |
mountall is no longer used in xenial, with switch to systemd