D
D
DR_Demons2015-10-01 17:09:01
linux
DR_Demons, 2015-10-01 17:09:01

How to use a physical disk in a VirtualBox virtual machine?

Good day! The story is this, there is a windows server 2012 and VirtualBox installed on it with Centos 7, from Centos you need to access the physical disk.
How to do it?
At the moment, I see this physical disk, but I can’t mount it, when I try, I get this

sudo mount -t ntfs-3g /dev/sdb2 /media/
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sdb2': Операция не позволена
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.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Zhivotnev, 2015-10-01
@inkvizitor68sl

Remove the disk in Windows (safely remove or something like that), then hook it to the vbox, and then mount it.
Well, or mount -o ro -t ntfs-3g and so on.

R
Ruslan Fedoseev, 2015-10-01
@martin74ua

NTFS is not a clustered file system, it must be mounted on a single system. If you need simultaneous access from a virtual machine and from Windows - share the disk in Windows, connect it over the network in Linux, like cifs

N
Nazar Mokrinsky, 2015-10-01
@nazarpc

This happens when the kernel hibernation feature is enabled in Windows.
Somewhere in the power settings it is signed as a quick turn on or something like that.
When using this feature, Windows does not completely turn off, and in connection with this, such a thing happens with the disk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question