Page 1 of 1

[SOLVED] Help mounting physical sata drive

Posted: 29. Jul 2009, 01:34
by altometer
I have gotten pretty far with my research, but I have gotten stuck. I currently am running Ubuntu 9.04 64x from one hard drive, and am attempting to set up a virtual computer to boot from a second hard drive(my old one). I do not need to worry about the drivers, I have the xp installation set up with using a slipstreamed disk that stored all of the drivers on the pc. I will not be accessing the hard drive in the future except through the virtual machine.

Currently I have the code

Code: Select all

VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/Machines/MYolddisk.vmdk -rawdisk /dev/320.1 GB Media -register
It is returning the error "Syntax error: Invalid parameter 'GB' so I know that I am placing the wrong name for my hard disk there.

All I need to know is what I should put instead of /dev/320...
EDIT: I forgot to mention that the hardrive that I am trying to emulate is mounted at /media/disk

SOLUTION: I used the

Code: Select all

sudo fdisk -l
command to find the correct name of my disk and the resulting code was,

Code: Select all

VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/Machines/MYolddisk.vmdk -rawdisk /dev/sdb1 -register
So simple and beautiful. I love it. :)

THANKS!

Re: Help mounting physical sata drive

Posted: 29. Jul 2009, 04:12
by JshWright
Paste the contents of /etc/mtab

Edit: You're correct in guessing that /dev/320.1 GB is probably not the correct name of the device (barring some bizzare udev rules...). /etc/mtab will list what device/partition is mounted at /media/disk. BTW, you'll need to unmount the disk from your host OS when you start the VM, otherwise bad things will happen...

~JW