Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usb hotplugging and changing device names
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
kevin_i_orourke
n00b
n00b


Joined: 22 Aug 2002
Posts: 28
Location: Cambridge, UK

PostPosted: Mon Sep 16, 2002 9:37 am    Post subject: usb hotplugging and changing device names Reply with quote

I've finally got USB all set up and working, my Zip 250 is recognised and my various other usb-storage devices can all be mounted and read.

The only remaining problem is the shifting device names. For example, if my Zip drive is plugged in at boot it will be /dev/sda (/dev/sda4 for the partition). If I then plug in my MP3 player it will be /dev/sdb, however if I had plugged in my digital camera before the MP3 player the camera gets /dev/sdb and the camera will be /dev/sdc.

How can I get consistent device names for my USB devices? At present my /etc/fstab entries don't work half the time because I didn't plug the devices in in the same order.

I've been thinking about a solution involving a script that gets run by hotplug, to find out what device the new USB device has been given and create a link to it. Has anyone out there already done something like this or is there a really simple solution I've missed?

I've got a reasonable amount of Unix/Linux experience but I'm new to devfs so I may have missed something everyone else knows about already.

Kev.
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