jason at jeetkunedomaster.net
Wed Nov 2 13:43:34 CST 2005
I have a few external storage devices, 2 hd's and a camera, all usb_storage.
And I find it very annoying to have them pop up on different names every
time, depending on how I plug them in or coming back from a suspend you never
know which one is going to get sda,sdb,sdc etc...
So I added a line to udev.rules to create symlinks based on vendor/model, no
matter what order I plug them in /dev/ST3120022A5 will always be partition #5
on that drive. Now sure there's a remote possibility that someone will have
exactly the same model/vendor but it's way less likely to happen than just
letting them get sda/b/c,etc... based on order of polling/plugin.
Isn't there some way this could be handled better in (k)ubuntu by default?
junfan at jkd:~$ cat /etc/fstab
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda5 / ext3 noatime,errors=remount-ro 0 1
/dev/hda1 /media/hda1 vfat defaults 0 0
/dev/hda6 /media/hda6 ext3 defaults 0 2
/dev/hda7 /home ext3 defaults 0 2
/dev/hda8 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/ST3120022A1 /media/ST3120022A1 vfat noauto,user,uid=junfan
/dev/ST3120022A5 /media/ST3120022A5 ext3
noauto,user,exec,noatime 0 0
/dev/ST3120026A1 /media/ST3120026A1 vfat noauto,user,uid=junfan
Line for udev:
| Ubuntu Linux
More information about the ubuntu-devel