"Go" VirtualBox direct access to SD Card in windows--good

Source: Internet
Author: User

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.

      1. 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

      1. 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
      1. 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.

      1. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.