Any one have an idea on how to do this, shared folder will not work because my automotive scan tool wants access to the sd drive for updates?
Here is a few examples of mounting it in Windows and Mac, but nothing on Linux.
http://www.sandyscott.net/2013/08/14/virtualbox-direct-drive-access/
http://superuser.com/questions/373463/how-to-access-an-sd-card-from-a-virtual-machine
Hi,
I’m assuming you want to create a raw disk of your sdcard and access it inside virtualbox.
The first thing that needs to be done is add the user in the disk group. Why? checkout which user has the read and write access to the device.
ls -l /dev/sdX
Where X is the correct disk or just do
ls -l /dev/sd*
You should see that root is the owner and the group disk has read and write access to it.
So first add the user to the disk group instead of running VBoxManage as root and don’t forget to logout the user after adding the user to that group.
Now according to the manual
https://www.virtualbox.org/manual/ch09.html#idp46785389001408
The command is this.
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sdX
Replace the
/path/to/
to something like
/home/username
where username is your username
Replace the
file
to something meaningful like
sdcard
and don’t forget to add the
.vmdk
extension at the end.
Replace the
X
with your device which can be the english alphabet a to z.
The output is something like this
jetchisel@localhost:~> VBoxManage internalcommands createrawvmdk -filename /home/jetchisel/sdcard.vmdk -rawdisk /dev/sdc
RAW host disk access VMDK file /home/jetchisel/sdcard.vmdk created successfully.
Once the rawdisk is successfully created you can attach that disk to the any vm you want either via VBoxManage or the GUI.
Just remember that the user in question is already a member of the disk group so be careful. One of the VBox dev once said that adding the user to the disk group has enough ropes to hang even the most experience sysadmin
Good Luck…
Thanks for all your help jetchisel, I actually did not have any free time to try this until today, so I hope you do not think I lack gratitude. I am very thankful for all the effort you put into replying and getting me most of the way to what I wanted to accomplish.
The VMDK was created with no problems, I added my self to disk user in the yast users and groups app. I just cant attach the SD. Looking at the pic see what I mean.
I just repeated the command to show that it was successful.
So what do you think is the problem here?
Thanks again, Bob
https://dl.dropboxusercontent.com/u/19672761/Vbox.png
Why are you doing it as root??
Doh! That did the trick, thanks for all the help from both of you.
It mounted fine as a disk in XP guest, but my Autel software (automotive code reader) is looking for an SD Card, I assume that is going to be impossible to make happen.