

Start a command prompt, and start the DISKPART console. Bookmark.You can use DISKPART in Windows, or the equivalent fdisk command under Linux/Mac. Go to Storage -> Controller: SATA -> (right click) Add Hard Disk -> Choose Existing Disk and open the file you just created.įire up the VM and you should be able to access the SD card in all it’s glory! eGalax Touch, Linux, Raspberry Pi, virtualbox, windows, windows 7. Now, open VirtualBox as Administrator, and open the Settings for your virtual machine. Connect the VM to the SD card using the link.The file you’ve just created ( sdcard.vmdk, on your Desktop) is a special link that lets a virtual machine access the SD card. VBoxManage internalcommands createrawvmdk -filename "%USERPROFILE%/Desktop/sdcard.vmdk" -rawdisk "\\.\PHYSICALDRIVE1" Go there by entering this command cd C:\Program Files\Oracle\VirtualBox You’ll know it’s the right one if it has lots of files starting with VBox in it. This is usually C:\Program Files\Oracle\VirtualBox\. Next thing you’ll need to find is the installation directory for VirtualBox. The bit we’re interested in is the DeviceID, in this case \\.\PHYSICALDRIVE1 The top item is the main hard drive, the lower one is the SD card. O2Micro SD SCSI Disk Device \\.\PHYSICALDRIVE1 O2Micro SD SCSI Disk Device 1 3964584960 (Press Start, type cmd, right click on cmd.exe in the list, and choose “Run as administrator”)Īnd if your system is anything like mine you’ll get something like this: C:\Users\Sandy Scott>wmic diskdrive list brief Open a command window as an administrator. Get the DeviceID for you SD Card reader.


Here’s a step-by-step guide to directly mounting raw SD card in your virtual machine, so you can edit it. 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. You see, my compile system (Ubuntu 13.04) was in a virtual machine (VM) – VirtualBox running on Windows 7. This blog post has been an incredible help, but I stumbled at the very last hurdle – modifying the contents of the SD card. I’ve trying to get my Raspberry Pi working with a touchscreen (eGalax Touch).
