Re: USB storage devices and /etc/fstab

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

 



On Dec 13, 2007 5:38 PM, Rick Stevens <rstevens@xxxxxxxxxxxx> wrote:
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.


I did  what's suggested with two partitions in my slave drive. But the partitions
won't mount.  When I boot the system an error occurs halting the boot process:
  "fcsk.ext3: Unable to resolve 'LABEL=/stor1"

Here's my fstab.
$ cat /etc/fstab
LABEL=/1          /           ext3    defaults    1 1
LABEL=/stor1    /stor1    ext3    defaults    1 2
LABEL=/stor2    /stor2    ext3    defaults    1 2

The devices seems to be properly labeled
# e2label /dev/sdb1
stor1
# e2label /dev/sdb2
stor2

The OS install process labeled root as "/1", does that have anything to do
with the problem?

why does it not work as expected?

~af


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux