On Mon, 2004-08-30 at 11:10, Darryl Clarke wrote: > > I have a lot of USB drives that I deal with and I'm getting quite > annoyed that whenever I switch drives the /dev/sdX association changes > too. I started on /dev/sda and now I'm currently on /dev/sdp and I > have to edit my fstab every time I switch drives around.
Are you running a 2.6 kernel? If so, use udev with hotplug. With udev you can create naming rules which will provide you with stable names for use in /etc/fstab. udev works off of information exporting by the kernel drivers to the sysfs filesystem (usually mounted on /sys). For example, I use the following udev rule (all one line) to create a symlink called "ipod" in the /dev/ directory to the data partition on my iPod when it's plugged in: BUS="scsi", SYSFS{model}="iPod", KERNEL="sd?3", NAME="%k", SYMLINK="ipod" Hope that helps, -- steven -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]