Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I switch from usbfs to usbdevfs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Sat Oct 09, 2004 6:22 pm    Post subject: How do I switch from usbfs to usbdevfs? Reply with quote

I have a scanner dependent upon usbdevfs, but my system automatically mounts and uses usbfs instead. Where do I change that if it is not listed in the /etc/fstab file? If I manually unmount the usbfs filesystem and mount usbdevfs in it's place everything works fine. I just need to make the change permanent! Hopefully this is an easy answer!
Back to top
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Sat Oct 09, 2004 7:53 pm    Post subject: Reply with quote

If it's not listed in the fstab, how is it being automatically mounted?
Back to top
View user's profile Send private message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Sat Oct 09, 2004 10:12 pm    Post subject: Here's my fstab Reply with quote

take a look at my fstab

Code:

# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2      /boot      ext2      noauto,noatime      1 1
/dev/hda4      /      reiserfs   noatime         0 1
/dev/hda3      none      swap      sw         0 2
/dev/cdroms/cdrom0   /mnt/cdrom   auto      noauto,user,ro      0 0

# NOTE: The next line is critical for boot!
none         /proc      proc      defaults      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none         /dev/shm   tmpfs      defaults      0 0


that's it! would my usb driver (*hci-hid modules) mount it as a dependency perhaps?

Shoe gnomes i'm sure.
Back to top
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Sat Oct 09, 2004 10:18 pm    Post subject: Reply with quote

Bizarre. :?

What happens if you add a line corresponding to your scanner into the fstab? It would look something like this:
Code:
/dev/scanner   /mnt/scanner    usbdevfs    defaults    0 0


Edit: Also, I guess it is possble that hotplug might be mounting the drive...
Back to top
View user's profile Send private message
pzgren
n00b
n00b


Joined: 28 Sep 2004
Posts: 63
Location: The Old Europe, Germany

PostPosted: Sun Oct 10, 2004 5:45 am    Post subject: Reply with quote

Code:
cd /etc/init.d/
gentuxi init.d # grep usbfs *
localmount:     # 2.5+ kernels, and later 2.4 kernels have 'usbfs',
localmount:     local usbfs="$(grep -Fow usbfs /proc/filesystems ||
localmount:     if [ -n "${usbfs}" ] && \
localmount:             ebegin "Mounting USB device filesystem (${usbfs})"
localmount:#            mount -t ${usbfs} ${usbgid:+-o devmode=0664,devgid=$usbgid} \
localmount:             mount -t ${usbfs} none /proc/bus/usb &>/dev/null


Marcus
Back to top
View user's profile Send private message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Sun Nov 07, 2004 7:15 am    Post subject: Reply with quote

I did notice that as well, but for some odd reason, my HP Scanjet 5200 simply does not function using the usbfs filesystem mounted on /proc/bus/usb... if i unmount it, and mount usbdevfs in it's place i can get the scanner working (under root only, but first things first!)

I know that hotplug is responsible for mounting the usbfs filesystem, but ultimately i would like to have usbdevfs mounted instead (or for SOME idea of how to get the scanner to work using usbfs!) do I need to modify the hotplug config? If so, what do I need to change?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum