Attila schrieb:
> Hi together,
> 
> i want to mount /proc/bus/usb with rw for a certain group to use usb under
> qemu. This works if i umount && mount /proc/bus/usb but after a reboot all is
> gone.
> 
> Here are my steps:
> 
> 1. groupadd -g 120 usb
> 2. Changing one line in the fstab:
>     usbfs /proc/bus/usb usbfs defaults,devgid=120,devmode=0664 0 0
> 3. umount /proc/bus/usb && mount /proc/bus/usb
> 4. gpasswd -a MYUSER usb
> 
> After this steps 'ls -lR /proc/bus/usb' looks good (i delete some unnecessary
> lines):

I know the problem and I think I can solve it.

1) You can add mount options for usbfs (devgid=100,devmode=0664) in fstab.
2) arch's initscripts mount usbfs long after the other filesystems have been 
mounted. It does mount
-a -t nousbfs and mounts usbfs later, but _ignoring_ fstab. This is done 
because in older
initscripts, the usb modules (especially usbcore) were not loaded by the time 
the filesystems were
mounted. This has changed about half a year ago. So it would now be possible to 
remove the "nousbfs"
from our generic mount command, drop the separate mounting at the end of 
rc.sysinit and thus
automagically respect the mount options given by fstab.

I just read over rc.sysinit again and discovered that the above is not entirely 
true: the nousbfs
option still exists, but the part where usbfs is mounted is gone. In fact, I 
don't have usbfs
mounted on my machine. So the solution would even be simpler: Remove the 
"nousbfs" and add the right
options to fstab.

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to