
Re: Data loss in Win7 when writing to NTFS partition from Linux
Hi,
Quote:
It would be nice to get a warning when mounting a mounted-by-windows partition, and the mount should then be read-only by default.
I agree that this would be nice, but I am not sure Windows provides usable information.
Anyway, ntfs-3g is supposed to refuse to mount a Windows system partition on which Windows was hibernated. When you lost data, can you confirm this was not on a Windows *system* partition ?
On a non-system partition, I suppose Win 7 leaves the partition in the mounted state when being hibernated. If so, you should be able to avoid mounting on Linux by using the option norecover.
With Windows hibernated and no Windows partition mounted on Linux, can you post the outputs of :
Code:
# replace device by a non-system device mounted by Windows, e.g. /dev/sda1
ntfsinfo -fv -F hiberfil.sys device | grep attributes
# replace device by a non-system device mounted by Windows, e.g. /dev/sda2
ntfsinfo -fvi 3 device | grep Flags
Regards
Jean-Pierre