Wubi has unclear error message on NTFS dirty flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Wubi |
Invalid
|
Low
|
Agostino Russo | ||
lupin |
Invalid
|
Low
|
Agostino Russo | ||
initramfs-tools (Ubuntu) |
Fix Released
|
Medium
|
Agostino Russo | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned | ||
lupin (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There has been much confusion surrounding the user getting dropped in the initramfs shell when the host filesystem cannot be mounted because it is dirty.
TEST CASE:
When using Ubuntu (Hardy) under wubi, if the NTFS dirty flag is set, the error message is missing or confusing.
This situation can and will occur when you restart and are not paying attention, so you miss the NT Boot loader prompt and start booting Windows, then hard-power-off to save time (can you guess how I know this?), or if/when Windows crashes. I bet this is going to be a really F.A.Q. with Wubi.
To reproduce:
1) Either shut Windows down ungracefully, or let it start half-way up, then hard-power-off to kill it
2) Reboot and attempt to go into Ubuntu
Case 1: default startup: You end up at a completely useless and scary BusyBox/(initramfs) prompt with no indication why you are there or what to do about it.
Case 2: recovery mode (verbose) startup: You still end up at a completely useless and scary BusyBox/(initramfs) prompt, but there are log lines on the screen as follows. But they are scary and confusing ("mount: ... failed: Success"? WTH?):
----- cut here (very top of my screen) -----
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda2/: Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda2 /root -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sdc1 /mnt/external/ ntfs-3g defaults,force 0 0
mount: Mounting /dev/disk/
mount: Mounting /root on /host failed: invalid argument
ALERT! /host/ubuntu/
BusyBox v1.1.3 ... (ash)
Enter 'help' ....
(initramfs)
----- cut here -----
A diff of the required changes can be found here:
http://
A debdiff of the entire 0.19 upload, including the fix for bug 136682, can be found here:
http://
A debdiff of the initramfs-tools changes can be found here:
http://
Changed in wubi: | |
assignee: | nobody → ago |
Changed in lupin: | |
assignee: | nobody → ago |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in initramfs-tools: | |
status: | New → Confirmed |
Changed in lupin: | |
status: | Fix Committed → Invalid |
Changed in initramfs-tools: | |
status: | In Progress → Fix Committed |
importance: | Undecided → Medium |
milestone: | none → ubuntu-8.04.1 |
status: | Fix Committed → Confirmed |
Changed in lupin: | |
importance: | Undecided → Medium |
milestone: | none → ubuntu-8.04.1 |
status: | New → Fix Committed |
milestone: | none → ubuntu-8.04.1 |
status: | New → Fix Committed |
description: | updated |
description: | updated |
Changed in lupin: | |
milestone: | ubuntu-8.04.1 → none |
Changed in initramfs-tools: | |
milestone: | ubuntu-8.04.1 → none |
milestone: | none → ubuntu-8.04.1 |
description: | updated |
Changed in lupin: | |
status: | In Progress → Fix Released |
Both ntfs-3g and ntfs-3g.probe could be used and both return error code 15 if the journal is unclean: http:// linux.die. net/man/ 8/ntfs- 3g.probe
The most important thing is "gracefully shut down" and detaching external devices as Microsoft and drive manufacturers has documented.