* /proc/bus/usb not mounted (fix)
@ 2002-01-21 16:16 Adrian Mariano
2002-01-22 0:30 ` Gioele Barabucci
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Mariano @ 2002-01-21 16:16 UTC (permalink / raw)
To: linux-hotplug
First. I'm not on this list. I looked long and hard to find a place to report
bugs in hotplugging and this was the only address I could find.
My problem was that /proc/bus/usb wasn't being mounted. I examined the
scripts and identified the problem in /etc/hotplug/usb.rc. The
following code appears:
if [ ! -f /proc/bus/usb/devices ]; then
if grep -q "[ ]/proc/bus/usb[ ]" /etc/fstab ; then
mount /proc/bus/usb
else
mount -t usbdevfs usbdevfs /proc/bus/usb
fi
fi
I had a COMMENTED OUT entry for /proc/bus/usb in my /etc/fstab which
caused the erronous selection of "mount /proc/bus/usb" as the command
to mount. Perhaps something like
if grep -q "^[^#]*[ ]/proc/bus/usb[ ]" /etc/fstab ; then
would fix it, but I didn't think long and hard about this or test it
(I just changed my fstab once I knew what was going on).
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: /proc/bus/usb not mounted (fix)
2002-01-21 16:16 /proc/bus/usb not mounted (fix) Adrian Mariano
@ 2002-01-22 0:30 ` Gioele Barabucci
0 siblings, 0 replies; 2+ messages in thread
From: Gioele Barabucci @ 2002-01-22 0:30 UTC (permalink / raw)
To: linux-hotplug
On Monday 21 January 2002 17:16, Adrian Mariano wrote:
> Perhaps something like
>
> if grep -q "^[^#]*[ ]/proc/bus/usb[ ]" /etc/fstab ; then
>
> would fix it
I think
grep -q "^[^#]*.*[:space:]*/proc/bus/usb[:space:]*" /etc/fstab
would be even better... does anyone know how much [:space:] is portable?
--
Gioele Barabucci (Gb])
) mailto:dev@gioelebarabucci.com
) http://www.gioelebarabucci.com
) ) I've been and now I've gone
) ) /Magic Pie^Oasis
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-22 0:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-21 16:16 /proc/bus/usb not mounted (fix) Adrian Mariano
2002-01-22 0:30 ` Gioele Barabucci
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).