Activity log for bug #91861

Date Who What changed Old value New value Message
2007-03-13 08:26:38 Kurt J. Bosch bug added bug
2007-03-13 08:31:40 Kurt J. Bosch bug added attachment 'hibernate-mounts' (scripts draft 1)
2007-03-13 08:48:36 Kurt J. Bosch description Binary package hint: acpi-support When hibernating Ubuntu while some FAT 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. 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 ) Binary package hint: acpi-support When hibernating Ubuntu while some FAT 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.
2007-03-13 09:09:11 Kurt J. Bosch title Hibernate will cause data loss on FAT whith dual boot Hibernate will cause data loss on FAT with dual boot
2007-03-13 11:42:10 Peter Whittaker acpi-support: status Unconfirmed Rejected
2007-03-13 11:42:10 Peter Whittaker acpi-support: statusexplanation I'm closing this as "not a bug" (marking as rejected) as there is no effective way to prevent potential data loss when hibernating then booting into some other OS. Please refer to bug #80997 for more information and rationale. It doesn't matter if the partitions in question are FAT or ext, whether the OS is Linux, Windows, or BSD: If you hibernate the machine then boot another OS, all partitions are fair game (there are ext drivers for Windows) and any files open on any of those partitions by any process, including the kernel or user space apps, are subject to possible corruption and data loss. If you think there are effective of managing this, please consider writing a spec - any changes required to address this will touch a lot of code, and tracking this requires something more than a simple bug report. Thanks!
2007-03-13 12:39:58 Kurt J. Bosch marked as duplicate 80997
2007-03-13 13:23:48 Kurt J. Bosch removed duplicate marker 80997
2007-03-13 13:24:58 Kurt J. Bosch title Hibernate will cause data loss on FAT with dual boot Hibernate will cause data loss on share partitions with dual boot
2007-03-13 13:26:11 Kurt J. Bosch description Binary package hint: acpi-support When hibernating Ubuntu while some FAT 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. 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.
2007-03-13 13:26:11 Kurt J. Bosch title Hibernate will cause data loss on share partitions with dual boot Hibernate will cause data loss on shared partitions with dual boot