Re: USB storage devices and /etc/fstab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-12-13 at 17:41 -0600, 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?

The easiest way is to label the filesystems and edit your /etc/fstab to
use the labels instead of the device names.  Find one of your devices
(assume it's at /dev/sda1):

	# e2label /dev/sda1 bugaboo

Then put a line such as:

LABEL=/bugaboo    /bugaboo        ext3    noauto,user,rw        1 2

in /etc/fstab.  That device should always mount at /bugaboo.  Note
that the hotplug system will mount it at /media/bugaboo if you plug it
in later.

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer             rstevens@xxxxxxxxxxxx -
- CDN Systems, Internap, Inc.                http://www.internap.com -
-                                                                    -
-     The trouble with troubleshooting is that trouble sometimes     -
-                             shoots back.                           -
----------------------------------------------------------------------


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux