Should prevent hibernation with mounted usb devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Invalid
|
Undecided
|
Unassigned | ||
pm-utils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: pm-utils
Currently it is possible to hibernate/suspend and thaw/resume the system with usb devices mounted. Unfortunately these mounts do not survive this cycle. I have observed that
- The device is still reported as mounted, but the mountpoint is empty
- The mountpoint is totally inaccessible, the kernel complains about read errors
- the filesystem on the device is messed up (probably because some writes were still pending in the cache).
Hence pm-utils should:
0. Run a sync before suspending/
1. Try to umount all usb devices before going to suspend or hibernate.
2. Abort hibernation/suspend if not all devices can be unmounted.
Similar problems might arise with other removable devices and network mounts.
#0 is done.
#1 (and consequently #2) is not done.