Bug 882299 - Windows 8 guest disks can't be mounted: "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."
Summary: Windows 8 guest disks can't be mounted: "The NTFS partition is in an unsafe s...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-30 15:53 UTC by Richard W.M. Jones
Modified: 2012-12-01 13:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-01 13:26:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2012-11-30 15:53:06 UTC
Description of problem:

Windows 8 guest disks cannot be mounted for write.  ntfs-3g gives the
following error:

mount -o  /dev/sda2 /sysroot/
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda2': 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.

For example in guestfish:

$ guestfish --rw -a /dev/vg_pin/Win8x32 -i
libguestfs: error: mount: /dev/sda2 on / (options: ''): The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda2': 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.

(The same command works if you change --rw to --ro)

This page has a reasonable summary of the issue:
http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html

We should document this problem, since there's probably no
easy way to work around it.

Version-Release number of selected component (if applicable):

libguestfs 1.19.64


Note You need to log in before you can comment on or make changes to this bug.