4 ms·
> While technically hibernate (to disk at least) should unmount all filesystems Not a chance. Hibernate is just like Suspend to RAM: freeze all processes but c
by lloeki 14y ago
> While technically hibernate (to disk at least) should unmount all filesystems
Not a chance. Hibernate is just like Suspend to RAM: freeze all processes but core kernel, blit RAM to disk (usually stored in swap) and send poweroff command straight to CPU. Of course it doesn't unmount anything, hence there are FS data structures live in RAM. Booting an alternate system and accessing a filesystem open on the other side is like mounting twice the same filesystem and writing to it. It will blow up on you.
- e12e 14y agoAh, I was thinking of the Debian package for hibernate, that has custom scripts for unmounting selected file systems, from the help text: "If you have network shares or external devices that should be unmounted before suspending, list them here." "Unmounts any filesystems of the given types. This is most useful for network filesystems such as smbfs and nfs." And afaik it is perfectly possible to add ntfs mounts to that list - but I don't think any program with open files on that mount would handle it gracefully (I belive the script will figure out which processes (if any) have open files and kill them prior to hibernation).
- Shorel 14y agoYou can't change Windows code to 'add ntfs mounts to that list'. Windows 8 will in fact do hibernation when you think you have turned off the computer. Bottom line: You can't dual boot safely with Windows 8.
- inquist 14y agoYeah this bit me recently, as I was hibernating my linux system but sometimes booting into Win7. Ended up having to reformat linux partitions, some inode information got messed up. e2fsck found and 'corrected' some errors which really didn't help at all. Lesson learned, as long as I'm dual booting, will stick with s2ram!
- qu4z-2 14y agoYou can suspend-to-disk just fine, as long as you remember to always boot back into the OS you suspended from. I guess suspend-to-ram forces you to do that (and my preferred option anyway), but I just wanted to make sure it was clear that there's nothing unsafe about suspend-to-disk as long as you don't let another OS get its grubby fingers on your mounted disk.