Score:0

How to mount a hibernated Windows drive

in flag

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!

vanadium avatar
cn flag
Please change your title to reflect the question. This is a Q&A site, not a user forum for individual help. Please also apply code formatting to code. Use "edit"
Pilot6 avatar
cn flag
Ubuntu is not a tool to fix Windows.
kurja avatar
in flag
@Pilot6 op is trying to mount a disk, doesn't seem off topic to me.
kurja avatar
in flag
Antediluvian, it's not your exact scenario but maybe answers here could help: https://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation
in flag
Thanks, I saw that, but could not translate it to my problem
in flag
Ubuntu is a versatile tool. No?
cn flag
What do you mean "he SSD apparently no longer recognized"? - Boot drive not found? This would be a BIOS config. - OS not found? BIOS read the boot sector, so drive is recognized but boot partition isn't. Try using gparted. ...or somethine else?
in flag
You're right, that's not quite correct. The BIOS identifies all drives, otherwise I would likely not be able to mount that drive under Ubuntu. But before messing with the OS, I'd rather save a few documents first. Never heard of gparted, I'll look it up. Any ideas for .. something else?
karel avatar
sa flag
Does this answer your question? [Unable to mount Windows (NTFS) filesystem due to hibernation](https://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation)
Score:1
in flag

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.

ChanganAuto avatar
us flag
As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer).
sudodus avatar
jp flag
A general method to mount a hibernated Windows drive is to **reboot** Windows instead of shutting it down (and catch to reboot process to boot into Ubuntu). Then the drive will no longer be hibernated, no longer *dirty* (some buffers not flushed), so it can be read and written correctly. See also [this link](https://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition/956072#956072), if you need more details for mounting: If you want to dual boot Ubuntu + Windows, it is a good idea to **turn off *fast startup* in Windows**.
kurja avatar
in flag
mount failed because target path /media/windows did not exist, after it was created with mkdir then mount succeeded?
in flag
Dear Sudodus, I had no intention to dual Ubuntu + Windows. It so happens that my Ubuntu stick is the only way I can think of to get to the data stored on a Windows machine that I am unable to reboot. I am unaware of ways to get Windows back up and running at tzhis point, so I'm trying to save data. Kurja, yes, that is what seemed to make the difference. It did not seem to like "/media/ubuntu/JMW AMD Boot" as the target. Don't ask me why.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.