[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: VirtualBox problems



Patrick O'Callaghan wrote:
>> You could try something like:
>>
>> mount -o remount,devgid=515,devmode=664 none /proc/bus/usb usbfs

Oops - I forgot the -t before usbfs.
> 
> # mount -o remount,devgid=505,devmode=664 -t none /proc/bus/usb usbfs
> mount: mount point usbfs does not exist
> 
Try mount -o remount,devgid=505,devmode=664 none /proc/bus/usb -t usbfs

The device to mount is none, the mount point is /proc/bus/usb and
the file system type is usbfs. You have to use the full command,
instead of just giving it the mount point because it was mounted
before /etc/mtab was writable.
> 
>> I have not tried it, as I use a udev rule to set the permissions on
>> a specific device instead of all USB devices.
> 
> I'll poke around in the udev stuff.
> 
> poc
> 
I think 10-vboxdrv.rules is susposed to take care of it, but it does
not work on Fedora.

I use this for the udev rule set. (Watch the word wrap - each rule
is one line.)

60-vboxusb.rules
-------------------------------------------------------------
# Rules for VirtualBox USB devices.

ACTION!="add", GOTO="vbox_rules_end"
SUBSYSTEM!="usb", GOTO="vbox_rules_end"

# eBookwise eBook reader.
ATTR{idVendor}=="0993", ATTR{idProduct}=="0002",
run="/lib/udev/set-usb-group %s

# Kworld KW-UB435-Q
ATTR{idVendor}=="1b80", ATTR{idProduct}=="a340",
run="/lib/udev/set-usb-group %s

# VuPoint Film and Slide converter
ATTR{idVendor}=="05a9", ATTR{idProduct}=="1550",
run="/lib/udev/set-usb-group %s

LABEL="vbox_rules_end"
-------------------------------------------------------------

Here is the set-use-group script:

-------------------------------------------------------------
#! /bin/sh
ret=false
if [ "$DEVICE" != "" ]; then
 if [ -e $DEVICE ]; then
  chgrp vboxusers $DEVICE && \
  chmod g+rw $DEVICE && \
  logger udev/set-usb-group: $(ls -l $DEVICE)
    ret=true
 fi
fi
-------------------------------------------------------------

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]