USB and shared folder

Discussions related to using VirtualBox on Linux hosts.
Post Reply
M4rotku
Posts: 16
Joined: 7. Mar 2008, 01:16

USB and shared folder

Post by M4rotku »

Hello all,

I have two problems with which I would appreciate help.

First, my sansa m250 mp3 player is not working with virtualbox. My host is Ubuntu 8.04 and my guest is Windows XP. Could anyone by any chance help me to get this working, otherwise I will have to boot into Vista in order to arrange my music. :oops:

Second, I have designate within the VirtualBox settings for my XP guest that sda2 is a shared folder. However, I have tried the instructions within the user manual for accessing the shared folder within the XP guest with no result.

Could anyone help me with either, or preferably both, of these problems?

Much thanks,
M4rotku
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

As Standard there is nothing more to say than written in User Manual and the FAQ. First check this again. Look for USBFS for MP3, install the VBOX Version from the Homepage, not OSE versions from distributions.

Then, if errors stay:

Post your exact approach, input and messages word by word.

Exact Version of VBOX installed.

You only write "doesnt work", with this Info can noone help you.
M4rotku
Posts: 16
Joined: 7. Mar 2008, 01:16

Post by M4rotku »

Sorry, I'll try to be more specific. I am not using the OSE version, I know that that version has no USB support.

I am using version 1.6.2.

These are the steps I have taken in attempt to getting the Sansa USB problem to work:

1) plug in Sansa and unmount it from the desktop. I had heard that it needs to be unmounted so that the guest can access it. I have also attempted this with it mounted.

2) I go to the USB settings for the virtual machine and add the Sansa filter.

3) I power on the machine and download Windows Media Player 11.

4) The device is not detected, so I checked in My Computer and it was not there.

5) I went in the "Devices" menu at the top of the virtual machine engine, scrolled down to "USB Devices" and discovered that the status of the Sansa was listed as "Unavailable"


These are the steps I have taken in attempt to getting the shared folder problem to work.

1) I used the VirtualBox Settings menu to add the shared folder "sda2".

2) I read section 4.5 of the instructions manual dealing with Folder sharing.

3) Per instructions, In the windows xp guest I opened the command line and entered the following code:
net use x: \\vboxsvr\sda2
4) I recieved the following error:
Sytem error 67 has occurred.
The network name cannot be found.
comment:: I have previously recieved the same error and eventually gotten the folder sharing to work. However, I can not for the life of me recall how.


I hope this is enough info to diagnose the problems.

Note: I do not know what USBFS is from your line
"Look for USBFS for MP3"
Could you please specify or explain.

Much thanks,
M4rotku
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

You must setup USB in fstab. Search the The User Manual for USBFS. Without that USB doesnt work.

For the Shared Folder: Try to write in uppercase lettes (SDA2) in VBOX and the net use command. You can check connection throught explorer / cionnect network drives, too.
M4rotku
Posts: 16
Joined: 7. Mar 2008, 01:16

Post by M4rotku »

I found the correct place in the users manual regarding USB usage. However when I followed the instructions in the manual:
For example, most Linux distributions have a user group called usb or similar, of
which the current user must be a member. To give all users of that group access to
usbfs, make sure the following line is present:
# 85 is the USB group
none /proc/bus/usb usbfs devgid=85,devmode=664 0 0
Replace 85 with the group ID that matches your system (search /etc/group for “usb”
or similar). Alternatively, if you don’t mind the security hole, give all users access to
USB by changing “664” to “666”.
I could not find a group that had anything to do with USB in either the group manager or in "/etc/group". I am including a listing of the groups on my system to show that one such group does not exist.

I have still yet to try the shared folders solution.

Much thanks,
M4rotku


here is my /etc/group:
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:joey,guest
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:joey,guest
fax:x:21:guest,joey
voice:x:22:
cdrom:x:24:haldaemon,joey,guest
floppy:x:25:haldaemon,joey,guest
tape:x:26:guest,joey
sudo:x:27:
audio:x:29:joey,pulse,guest
dip:x:30:joey,guest
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:joey,guest
sasl:x:45:
plugdev:x:46:haldaemon,joey,guest
staff:x:50:
games:x:60:
users:x:100:joey,guest
nogroup:x:65534:
dhcp:x:101:
syslog:x:102:
klog:x:103:
scanner:x:104:hplip,joey,guest
nvram:x:105:
fuse:x:106:guest,joey
ssl-cert:x:107:
lpadmin:x:108:joey
messagebus:x:109:
admin:x:110:joey
crontab:x:111:
ssh:x:112:
avahi-autoipd:x:113:
avahi:x:114:
netdev:x:115:joey
haldaemon:x:116:
powerdev:x:117:haldaemon,joey
gdm:x:118:
joey:x:1000:joey
libuuid:x:120:
pulse:x:121:
pulse-access:x:122:
pulse-rt:x:123:
mlocate:x:124:
polkituser:x:125:
winbindd_priv:x:119:
saned:x:126:
vboxusers:x:127:joey,root,guest
guest:x:1001:
M4rotku
Posts: 16
Joined: 7. Mar 2008, 01:16

Post by M4rotku »

Ok, I tried to fix the shared folder.

Putting SDA2 in caps did not have any effect, so I tried to use the GUI.

I opened up My Network Places and tried to use the wizard "Add a Network Place".

When I got to the step in which I would select the network place to add, it would not let me select "VirtualBox Shared Folders". I tried to include an image of this, but I can't find out how to in there forums.
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

For USB: Try the Group ID for vboxusers.

Here a few Tips for USB: http://www.virtualbox.org/wiki/User_FAQ

A question for Shared Folders: What is the Path for the Share you selected in the VBOX Gui?
M4rotku
Posts: 16
Joined: 7. Mar 2008, 01:16

Post by M4rotku »

the path is /media/sda2 and it is named "sda2" for the guest.
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

What is it for a File System?

What shows "ls -l /media/sda2"?
M4rotku
Posts: 16
Joined: 7. Mar 2008, 01:16

Post by M4rotku »

total 10337972
-rwxrwx--- 1 root plugdev 10586065682 2008-06-05 22:55 backup.tgz
drwxrwx--- 1 root plugdev 16384 2008-06-23 17:42 Music
drwxrwx--- 1 root plugdev 0 2008-04-06 18:43 $RECYCLE.BIN
drwxrwx--- 1 root plugdev 0 2008-04-06 18:43 System Volume Information
that's what I got. As for the type, it's an ntfs which should be viewable by Windows XP.
M4rotku
Posts: 16
Joined: 7. Mar 2008, 01:16

Post by M4rotku »

bump
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Another idea: You can try to access the drive as raw device. I havent tested this myself, but that sould work. Cant say more then read the User Manual, this way is described. You can mount this in the guest as a second hard disk.

But be aware: the drive must not be mounted at the host at the same time.
Post Reply