Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5667 - usbfs , rc.sysinit and fstab

Attached to Project: Arch Linux
Opened by Stefano (kki) - Wednesday, 25 October 2006, 11:03 GMT
Last edited by Roman Kyrylych (Romashka) - Wednesday, 08 November 2006, 21:55 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

i have problem with parallels (www.parallels.com) since, as a simple user, i'm unable to make my
usb devices 'accessible' to VM.
If i run parallels as root it does work.
After some investigation i've found this thread:
http://www.archlinux.org/pipermail/arch/2006-July/011384.html

after i have removed the 'nousbfs' option to rc.sysinit, now parallels work also with my user.
So i think is time to fix this 'bug' ?

:)

thanks !


This task depends upon

Closed by  Roman Kyrylych (Romashka)
Friday, 10 November 2006, 08:47 GMT
Reason for closing:  Won't implement
Comment by Roman Kyrylych (Romashka) - Thursday, 26 October 2006, 09:13 GMT
Hmm... I have read http://www.archlinux.org/pipermail/arch/2006-July/011385.html but... there are:

umount /proc/bus/usb
umount /proc && mount -t proc none /proc
[ "`grep sysfs /proc/filesystems`" ] && umount /sys && mount -t sysfs none /sys
[ "`grep usbfs /proc/filesystems`" ] && mount -t usbfs none /proc/bus/usb
# now mount all the local filesystems
/bin/mount -a -t $NETFS

Which means in current initscripts usbfs is mounted ignoring fstab.
So, when you remove nousbfs from $NETFS then /bin/mount -a -t $NETFS will try to mount usbfs again?
Or did I miss something?

As Thomas Bächler said, specific mounting of usbfs in rc.sysinit should be removed, as well as nousbfs from $NETFS.
But then, -t nousbfs should be added after -t $NETFS in fsck step.
I'll post a patch for all this, then please tell me if it fixes your problem.

But... then /proc/bus/usb will not be mounted unless it's written in fstab! Can this hurt users with USB devices???
Comment by Stefano (kki) - Thursday, 26 October 2006, 09:26 GMT
you can check for the existence an usbfs line in fstab, if it exists,
then your script must be aware of all the options passed in fstab, otherwise
it can mount usbfs with the standard options.


Comment by Roman Kyrylych (Romashka) - Thursday, 26 October 2006, 09:35 GMT
And how the script should check for the existence an usbfs line in fstab? And it must also differentiate commented and uncommented line. No, it's too complex.

Maybe as a workaround for this usbfs problem, you can just remount usbfs in rc.local?
Comment by Stefano (kki) - Thursday, 26 October 2006, 10:13 GMT
yes, could be a solution even not so elegant ;-)
Thanks !
Comment by Roman Kyrylych (Romashka) - Wednesday, 08 November 2006, 21:55 GMT
So this can be closed? Because it is hard to not break something while fixing this, IMHO.
Comment by Stefano (kki) - Thursday, 09 November 2006, 21:16 GMT
ok, close it thanks :)

Loading...