【转】VirtualBox direct access to SD Card in Windows--不错
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了【转】VirtualBox direct access to SD Card in Windows--不错,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2521字,纯文字阅读大概需要4分钟。
内容图文
![【转】VirtualBox direct access to SD Card in Windows--不错](/upload/InfoBanner/zyjiaocheng/447/1e5bf22199a741a2b7e0fc389920e775.jpg)
原文网址: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 an 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) was in a virtual machine (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 virtual machine, so you 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 brief Caption DeviceID Model Partitions Size WDC WD7500BPKT-75PK4T0 \\.\PHYSICALDRIVE0 WDC WD7500BPKT-75PK4T0 3 750153761280 O2Micro SD SCSI Disk Device \\.\PHYSICALDRIVE1 O2Micro SD SCSI Disk Device 1 3964584960
The top item is the main hard drive, the lower one is the SD card.
The bit we’re interested in is the DeviceID, in this case\\.\PHYSICALDRIVE1
- Navigate to the VirtualBox directory
Next thing you’ll need to find is the installation directory for VirtualBox. This is usually C:\Program Files\Oracle\VirtualBox\. You’ll know it’s the right one if it has lots of files starting with VBox in it.
Go there by entering 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) is a special link that lets a virtual machine access the SD card.
- 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 just created.
Fire up the VM and you should be able to access the SD card if all it’s glory!
【转】VirtualBox direct access to SD Card in Windows--不错
标签:
本文系统来源:http://www.cnblogs.com/wi100sh/p/4502698.html
内容总结
以上是互联网集市为您收集整理的【转】VirtualBox direct access to SD Card in Windows--不错全部内容,希望文章能够帮你解决【转】VirtualBox direct access to SD Card in Windows--不错所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。