Creating a VMDK file for NTFS Partitions

Discussions related to using VirtualBox on Linux hosts.
Post Reply
stoi2m1
Posts: 1
Joined: 9. Feb 2009, 07:12

Creating a VMDK file for NTFS Partitions

Post by stoi2m1 »

I am trying to create a VDMK file for 2 partitions I have on my laptop which contain files from a windows install.

I am not trying to load my windows install I just want access to the files from within a virtual windows machine within Virtualbox.

Each time I try to create the file image I get an error:
Error while creating the raw disk VMDK: VERR_INVALID_PARAMETER
The raw disk vmdk file was not created

My goal is to have the 2 additional partitions show up as a E: and F: drive within the virtual windows. Is this possible and am I trying to do the right thing?

I have found most people try to fix this problem with chmod /dev/sda*, sda2 or sda3 but this hasnt worked for me.

Can someone help me out what is going wrong with my creation of the VMDK file?

-Jesse
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

You have to create the VMDK as the root user. But it's probably a lot easier to mount the partitions on the Host and use Samba or Shared Folders instead. You can mount the shares like any normal network share that way to a drive letter. It's a lot safer too, 'cause having a drive mounted on two different systems at the same time can cause data corruption.
It should be "safe" if the drive isn't mounted when using RAW Disk in the Guest.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply