USB storage devices and /etc/fstab

Mikkel L. Ellertson mikkel at
Fri Dec 14 01:27:18 UTC 2007

J Taylor wrote:
> I have multiple USB storages devices that are assigned to different /dev/sd* 
> files.  My problem is that a given device does not always have the same file 
> name and I have to manually edit /etc/fstab to mount them.  Is there a way 
> around this?
> Thanks
One way is to let HAL mount them. For this to work, you will need to
remove the entries in /etc/fstab. If you do want to have entries in
/etc/fstab for them, use partition labels instead of device names.

LABEL=/backup        /backup          ext3    defaults        1 2

You can use e2label to label ext2/3 partitions. You can check the
list archives or ask here on how to label other types of partitions.


  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : 

More information about the users mailing list