Add HD from 'media/'

This is for discussing general topics about how to use VirtualBox.
Post Reply
DrYap
Posts: 1
Joined: 27. Dec 2010, 15:26
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: MS Windows XP

Add HD from 'media/'

Post by DrYap »

I have successfully installed XP but now want to add an HD at "/media/ACER/". I have tried:
VBoxManage internalcommands createrawvmdk -filename /home/andrew/ -rawdisk /media/ACER -register
But recieved an error:
File '/media/ACER' is no block device

Can I have some tips on how to add this drive to an existing Virtual Machine.
Thank for any help.
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

Re: Add HD from 'media/'

Post by Sasquatch »

Read the manual and know the consequences of using RAW Disk Access. There is also a guide in the tutorials section for getting Windows through RAW disk in a VM on Linux.
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.
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Add HD from 'media/'

Post by Martin »

The -rawdisk parameter needs the /dev/xxx devicename, not the /media/yyy mount point.
Post Reply