Hibernate will cause data loss on shared partitions with dual boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: acpi-support
When hibernating Ubuntu while some (shared) partition is mounted it seems to be possible to boot the machine into some other 'OS' :) which can write to the same partition. (dual boot) This will lead to severe data loss on that partition.
This is a scenario which I think is quite offen used out there. There is at least one guy that I know who was bitten by this on _two_ machines using dapper.
I wrote some scriptlets that do the following:
(1) try to umount all partitions not essential for ubuntu
(2) roll back hibernate in case this is not possible (open files etc.)
(3) mount partitions again on resume
(There are still some BUGs inside:
- should handle partitions without proper fstab entry too
- should run only when suspend to disk not when suspend to ram
- should display some message to the user when aborting
)
I tried hibernating on up to date feisty without this and with some file open on FAT partition and it seemed not to try umount nor doing anything to prevent me from running into this.
Additionally I think there should be a big/fat warning during installation to tell the user to use hibernation with extreme care on the other OS (or better disable it) if the is such one installed.
Attached scripts (three in one file)