How to mount a hibernated Windows drive [closed]
I was hoping I'd never need it, but I kept a Ubuntu boot USB stick just in case, and the case has arrived. This morning, my Windows 10 system would not boot, the SSD apparently no longer recognized. So I booted the system using my stick. Of course the Ubuntu version is a little outdated (it wants to install 16.04.2 LTS), but I was hoping I'd still be able to rescue some files from the SSD. Unfortunately, I seem unable to mount the SSD, as it is in Windows hibernation mode (I would prefer not to delete the hiberfile.sys), and my GNU abilities are too rudimentary to get around this limitation. The automated mount yields
Error mounting /dev/nvme0n1p1 at /media/ubuntu/JMW AMD Boot: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=999,gid=999" "/dev/nvme0n1p1" "/media/ubuntu/JMW AMD Boot"' exited with non-zero exit status 14: Windows is hibernated, refused to mount.
Failed to mount '/dev/nvme0n1p1': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.
which I can recreate by entering
sudo mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=999,gid=999" "/dev/nvme0n1p1" "/media/ubuntu/JMW AMD Boot"
But replacing "-o" with "-ro" gives
ntfs-3g-mount: failed to access mountpoint /media/ubuntu/JMW AMD Boot: No such file or directory
Replacing "-o" with "-r" or "-o ro" gives generic help on "mount" command usage.
Would anyone know how I can get to my files? Thanks a bunch!
Similar to the method described in
Unable to mount Windows (NTFS) filesystem due to hibernation
as "Workaround for all versions of Windows", I succeeded as follows
sudo mkdir /media/windows
sudo mount -t ntfs-3g -o ro /dev/nvme0n1p1 /media/windows
Why this is more successful, I have no idea. While many a commentator found time to correct my formal mistakes in posting, none bothered to explain.