You are not logged in.
Hello !
A few days ago I modified my fstab following this howto, to make USB work with Virtualbox.
Basically I added an entry similar to this one in my /etc/fstab :
none /proc/bus/usb usbfs devgid=85,devmode=664 0 0
I have now switched to Qemu and I do not need this setting anymore.
I commented it out.
Since then I have the following error at boot time after the step "Mounting Local Filesystems" :
mount : cannot find /proc/bus/usb in /etc/mtab or /etc/fstab.
Of course there is no reference to /proc/bus/usb in my fstab :
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
#none /proc/bus/usb usbfs devgid=1004,devmode=666 0 0
/dev/cdrom /mnt/cd iso9660 ro,user,noauto,unhide 0 0
/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
#/dev/fd0 /mnt/fl vfat user,noauto 0 0
# /dev/hdb5
UUID=46d6f20d-0020-4099-a792-bb9b1e74f4a6 none swap sw 0 0
# /dev/hdb1
UUID=62eec8ae-3c18-4225-b48b-57bc0497896f / ext3 defaults,noatime,user_xattr,errors=remount-ro 0 1
/dev/vg2/var /var ext3 defaults,noatime,errors=remount-ro 0 2
/dev/vg2/tmp /tmp ext3 defaults,noatime,errors=remount-ro 0 2
/dev/vg2/home /home ext3 defaults,noatime,user_xattr,errors=remount-ro 0 2
/dev/vg1/data /media/data ext3 defaults,noauto,user,errors=remount-ro 0 2
/dev/vg1/backup /media/backup ext3 defaults,noauto,errors=remount-ro 0 2
/dev/hda5 /media/_boot ext3 defaults,noauto,errors=remount-ro 0 2
Having a look at /etc/rc.sysinit, I found out this :
stat_busy "Mounting Local Filesystems"
/bin/mount -n -o remount,rw /
/bin/rm -f /etc/mtab*
# make sure / gets written to /etc/mtab
/bin/mount -o remount,rw /
# re-mount /proc , /sys and usbfs so they can be written to /etc/mtab
umount /proc/bus/usb
if [ -e /proc/mounts ]; then
grep -e "/proc " -e "/sys " -e "/dev " /proc/mounts >> /etc/mtab
fi
if grep -qw usbfs /proc/filesystems; then
# Some people use custom permissions for their usbfs
if grep -qw /proc/bus/usb /etc/fstab; then
mount /proc/bus/usb
else
mount -t usbfs none /proc/bus/usb
fi
fi
For me the error comes from "umount /proc/bus/usb" which should be replaced by "umount /proc/bus/usb 2> /dev/null" or something equivalent.
Do you have the same error ? Do you think rc.sysinit is responsible for this ?
Can you help removing this error message at boot ?
Thank you very much !
Offline
it's clear the error come from rc.sysinit
but because of that line
mount /proc/bus/usb
it tries to mount the usbfs because it thinks (because of grep -qw /proc/bus/usb /etc/fstab) that you have a line in your fstab to mount /proc/bus/usb
to fix this.
delete the line with /proc/bus/usb in your fstab
or
change the line
if grep -qw /proc/bus/usb /etc/fstab; then
to
if grep -v ^# /etc/fstab |grep -qw /proc/bus/usb ;then
it's a bug
and should be filled with that last fix.
Last edited by solstice (2008-02-03 00:17:17)
Offline
Thanks solstice !
I am going to fill a bug.
Offline
Offline