Nautilus suggests option for mounting hibernated ntfs partitions that could lead to data loss
--- What happens: ---
If a user tries to open an ntfs partition that has been hibernated while using Nautilus they will be presented with this dialog:
Unable to mount XP
Error mounting: mount exited with exit code 14: Windows is hibernated, refused to mount.
Failed to mount '/dev/sda3': Operation not permitted
The NTFS partition is hibernated. Please resume and shutdown Windows
properly, or mount the volume read-only with the 'ro' mount option, or
mount the volume read-write with the 'remove_hiberfile' mount option.
For example type on the command line:
mount -t ntfs-3g -o remove_hiberfile /dev/sda3 /media/XP_
The last suggestion, "mount the volume read-write with the 'remove_hiberfile' mount option," is problematic because doing this would delete the 'hiberfile.sys' file and cause the user to lose all information on the saved session-
which will remove the Windows hibernation file. Please note,
this means that the saved Windows session will be completely
lost. Use this option under your own responsibility.
The fact that the exact command to do this is prominently displayed (and is the only command displayed) without any warning that this will delete the saved Windows session only aggravates the risk of data loss.
--- What should happen: ---
1. If a command is to be prominently displayed it should be the command to mount the partition in read-only mode (see command below)--this is the only completely safe way to mount a hibernated ntfs-partition without risking data loss.
mount -t ntfs-3g -o ro /dev/sda3 /media/XP_
2. A warning should be included in the Nautilus dialog which explains that using the 'remove_hiberfile' option to mount the drive in read-write mode will require deleting the saved Windows session and losing any unsaved files.
--- Steps to reproduce: ---
1. Hibernate a Windows installation
2. Boot Ubuntu
3. Attempt to open the Windows partition using Nautilus
DistroRelease: Ubuntu 12.04
Package: nautilus 1:3.4.2-0ubuntu1
Uname: Linux 3.2.0-24-generic x86_64
Date: Sun Jun 3 22:08:06 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
UpgradeStatus: Upgraded to precise on 2012-04-29 (34 days ago)
(compiz:1933): GConf-CRITICAL **: gconf_client_
|Austin Dempewolff (adempewolff) wrote : Re: [Bug 1008117] [NEW] Nautilus suggests option for mounting hibernated ntfs partitions that could lead to data loss||#6|