PDA

View Full Version : Permanent drive letters



Bungo Pony
March 25th, 2009, 03:08 AM
Is there any way to make a drive's letter permanent? For example, I have a USB stick with data on it. I would like it to ALWAYS be sda6, no matter which port I put it in. That way, I could selectively access the data on that particular drive whenever I need to and always find it, even if I have other USB sticks plugged in.

yabbadabbadont
March 25th, 2009, 04:48 AM
Not easily, if at all. It would take some fancy udev rules, probably based on the UUID of the filesystem on the stick (which would change if you ever reformat it). Your best bet is to make sure to assign a unique label to the USB stick(s). Then it(they) should show up with that label when inserted.

Polygon
March 25th, 2009, 05:08 AM
for me, if you label your usb stick (like actually give it a fat32 volume name), gnome will always mount it under that name (like /media/YOUR_NAME_HERE

otherwise, i think the best bet would to be to access the drive through UUID's, since thats the whole point of them.