Page 1 of 1
USB and shared folder
Posted: 24. Jun 2008, 03:41
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.
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
Posted: 24. Jun 2008, 07:37
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.
Posted: 24. Jun 2008, 18:48
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
Posted: 24. Jun 2008, 19:02
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.
Posted: 24. Jun 2008, 20:28
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

0:
daemon

1:
bin

2:
sys

3:
adm

4:joey,guest
tty

5:
disk

6:
lp

7:
mail

8:
news

9:
uucp

10:
man

12:
proxy

13:
kmem

15:
dialout

20:joey,guest
fax

21:guest,joey
voice

22:
cdrom

24:haldaemon,joey,guest
floppy

25:haldaemon,joey,guest
tape

26:guest,joey
sudo

27:
audio

29:joey,pulse,guest
dip

30:joey,guest
www-data

33:
backup

34:
operator

37:
list

38:
irc

39:
src

40:
gnats

41:
shadow

42:
utmp

43:
video

44:joey,guest
sasl

45:
plugdev

46:haldaemon,joey,guest
staff

50:
games

60:
users

100:joey,guest
nogroup

65534:
dhcp

101:
syslog

102:
klog

103:
scanner

104:hplip,joey,guest
nvram

105:
fuse

106:guest,joey
ssl-cert

107:
lpadmin

108:joey
messagebus

109:
admin

110:joey
crontab

111:
ssh

112:
avahi-autoipd

113:
avahi

114:
netdev

115:joey
haldaemon

116:
powerdev

117:haldaemon,joey
gdm

118:
joey

1000:joey
libuuid

120:
pulse

121:
pulse-access

122:
pulse-rt

123:
mlocate

124:
polkituser

125:
winbindd_priv

119:
saned

126:
vboxusers

127:joey,root,guest
guest

1001:
Posted: 24. Jun 2008, 20:42
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.
Posted: 24. Jun 2008, 21:16
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?
Posted: 24. Jun 2008, 21:26
by M4rotku
the path is /media/sda2 and it is named "sda2" for the guest.
Posted: 24. Jun 2008, 21:38
by stefan.becker
What is it for a File System?
What shows "ls -l /media/sda2"?
Posted: 24. Jun 2008, 21:43
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.
Posted: 26. Jun 2008, 17:26
by M4rotku
bump
Posted: 26. Jun 2008, 20:28
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.