Original URL: http://www.sandyscott.net/2013/08/14/virtualbox-direct-drive-access/
I ' ve trying to get my Raspberry Pi working with a touchscreen (Egalax Touch).
This blog post has been a incredible help, but I stumbled at the very last hurdle–modifying the contents of the SD card .
You see, my compile system (Ubuntu 13.04) is in a virtual machines (VM) –virtualbox running on Windows 7.
Windows 7 doesn ' t know how to read the various Linux filesystems, so they ' re invisible, which means I needed to access to The whole, raw disk directly from the VM.
Here's a step-by-step guide to directly mounting raw SD card in your Vsan, so can edit it.
- Get the DeviceID for you SD Card reader
Open a command window as an administrator. (Press Start, type cmd, right click on Cmd.exe in the list, and choose "Run as Administrator")
Type
WMIC diskdrive list Brief
And if your system is anything like mine you'll get something like this:
C:\Users\Sandy scott>wmic diskdrive list briefcaption DeviceID Model partitions SIZEWDC Wd7500bpkt-75pk4t0 \\.\physicaldrive0 WDC wd7500bpkt-75pk4t0 3 750153761280o2micro SD SCSI Disk Device \\.\physicaldrive1 o2micro SD SCSI Disk device 1 3964584960
The top item is the main hard drive and the lower one is the SD card.
The bit we ' re interested in are the DeviceID, in this case\\.\physicaldrive1
- Navigate to the VirtualBox directory
Next thing you'll need to find are the installation directory for VirtualBox. This is usually C:\Program files\oracle\virtualbox\. You'll know it's the right one if it's have lots of files starting with VBox in it.
Go there by entering the This command
CD C:\Program Files\oracle\virtualbox
- Create the link file to the SD card
Vboxmanage internalcommands createrawvmdk-filename "%USERPROFILE%/DESKTOP/SDCARD.VMDK"-rawdisk "\\.\PHYSICALDRIVE1 "
The file you've just created (SDCARD.VMDK, on your Desktop) are a special link that lets a virtual machine access the SD CA Rd.
- Connect the VM to the SD card using the link
Now, open VirtualBox as Administrator, and open the Settings for your virtual machine. Go to Storage-Controller:sata (right click) Add hard Disk, Choose Existing Disk and open the file you Ju St created.
Fire up the VMs and you should is able to access the SD card if all it ' s glory!
"Go" VirtualBox direct access to SD Card in windows--good