Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB mass-storage hotplug issues
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
butters
Guru
Guru


Joined: 13 May 2002
Posts: 427
Location: Poughkeepsie, NY

PostPosted: Fri Aug 13, 2004 12:33 am    Post subject: USB mass-storage hotplug issues Reply with quote

I run 2.6.8-rc2-love3 with USB mass-storage and scsi disk support compiled as modules. I created a hotplug rule /etc/hotplug/usb/usb-storage that should run when the usb-storage module is loaded. In this script I mount /dev/sda1 or /dev/sdb1 on /mnt/dcam. I changed the permissions of this script to a+x to allow execution by anyone. However, I get no indication that the script runs and the volume never mounts.

The usb mass storage works manually, i.e. I plug in the camera and I can do

mount -t vfat /dev/sda1 /mnt/dcam

And I could solve the problem by putting this in my /etc/fstab:
/dev/sda1 /mnt/dcam vfat users 0 0
/dev/sdb1 /mnt/dcam vfat users 0 0
/dev/sdc1 /mnt/dcam vfat users 0 0
/dev/sdd1 /mnt/dcam vfat users 0 0

...because each of the ports on my USB hub get a different sd device node. But I don't want to rely on this ugly hack.

Is there something I'm missing, or possibly an easier way to get the camera's Smart Media device to mount when connected? This machine runs GNOME, but I haven't found any GNOME panel for mounting hotplugged storage volumes. Does something like that exist for GNOME? Is there a way to configure gnome-vfs to fix this?
_________________
If tugboats were bigger, they'd be the ones getting tugged.
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Fri Aug 13, 2004 12:46 am    Post subject: Reply with quote

I think udev is what you're looking for. It can give your device the same name, no matter where or when you plug it in. And it can even run any script as soon as your device is detected.

See Decibels udev setup and writing udev rules for more info.
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