Re: remove_hiberfile problems on Windows 7 and Vista
It's the same case sensitive name across all three types of Windows we tested: hiberfil.sys
The current code assumes there is a hibernated Windows when the first four bytes in the file hiberfil.sys are "hibr". Maybe this is different on Windows 7.
With an hibernated Windows 7, what is the output of
head -c 32 MOUNTPOINT/hiberfil.sys | od -t x1
(sorry, I have no Windows 7 to try myself).
Upon mounting a Windows drive, we want to be able to wipe away the hibernation state with the "remove_hiberfil" option
Ok, you have been warned.
make local changes so that once the system reboots, it will reboot cleanly without any error messages. Essentially the current behavior on Windows XP only.
If you find out a way to get Windows 7 to ignore the hiberfile without issuing an error, I may integrate it in future versions. The options I would try are :
1) truncate the hiberfil.sys to size zero,
2) overwrite a few zeroes at the beginning of file
3) make the file a sparse file with original size and no contents