• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

USB unter Ubuntu 8.04 / VirtualBox 1.6

Anahita

Member
Hallo, ich habe Ubuntu 8.04 (läuft prima) und habe VirtualBox 1.6 installiert, kriege aber den USB-Zugriff nicht zum laufen (wenn das klappt kann ich meine Windows-Partitition endlich löschen!). Folgende Hilfe in VirtualBox bzgl. USB:
11.5.7. USB not working
If USB is not working on your Linux host, make sure that the current user has permission to access the USB filesystem (usbfs), which VirtualBox relies on to retrieve valid information about your host's USB devices.
As usbfs is a virtual filesystem, a chmod on /proc/bus/usb has no effect. The permissions for usbfs can therefore only be changed by editing the /etc/fstab file.
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".
The various distributions are very creative from which script the usbfs filesystem is mounted. Sometimes the command is hidden in unexpected places. For SuSE 10.0 the mount command is part of the udev configuration file /etc/udev/rules.d/50-udev.rules. As this distribution has no user group called usb, you may e.g. use the vboxusers group which was created by the VirtualBox installer. Since group numbers are allocated dynamically, the following example uses 85 as a placeholder. Modify the line containing (a linebreak has been inserted to improve readability)
DEVPATH="/module/usbcore", ACTION=="add",
RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb"
and add the necessary options (make sure that everything is in a single line):
DEVPATH="/module/usbcore", ACTION=="add",
RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb -o devgid=85,devmode=664"
Debian Etch has the mount command in /etc/init.d/mountkernfs.sh. Since that distribution has no group usb, it is also the easiest solution to allow all members of the group vboxusers to access the USB subsystem. Modify the line
domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev
so that it contains
domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev,devgid=85,devmode=664
As usual, replace the 85 with the actual group number which should get access to USB devices.
Other distributions do similar operations in scripts stored in the /etc/init.d directory.

Nun meine Probleme:
1. Es gibt keine USB-group.,
2. Wo finde ich den USB-mount-befehl bzw. das Script? Ich habe etc/init.d/mountdevsubfs.sh geöffnet , aber da finde ich nicht die entsprechende Zeile zum modifizieren.
Wer kann mir helfen?
 

whois

Ultimate Guru
HI

Lies dir das doch bitte mal durch.

https://help.ubuntu.com/community/VirtualBox#head-c40d4d80c0cb00351a492592b1ddbfe95f7ee513

cu
 
OP
A

Anahita

Member
Good bye Bill (?),

hat super geklappt. Kann jetzt den USB für die wenigen Windowsprogramme auf dem emulator nutzen.
Also könnte ich jetzt meine Windows-Partitition löschen :lol:
Jetzt meine Fragen:
/dev/sda1 (Windows C) ist gleichzeitig meine Boot-Partitition. Kann ich die ohne weiteres löschen bzw . in ext3 umformatieren? - Da sind noch so einige kleinere partitionsreste wie /dev/sda2 und -3 , also würde ich am liebsten das alles löschen und mir dann eine neue Partitition anlegen.
Kann ich die z.B. in gparted löschen und das boot-flag für /dev/sda3 (root) setzen, oder reicht das nicht, da im MBR nach nicht mehr existenten Partititonenn gesucht wird?
 
Oben