Re: fstab and LABEL=

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

 



Mark Haney wrote:
I'm a little confused about the LABEL= option in /etc/fstab. Let's say I have this line in my fstab:

LABEL=/home/archiv      /home/archive3          xfs     defaults        1 2

And I want to change the mountpoint of this to /archive instead of /home/archive3. Will I need to (or should I) edit the LABEL= to reflect the changes? Or can I just use the /dev/ instead?

In your case, you should change the 2nd field only, to reflect where to mount the partition. The first field only identifies which partition to mount, not *where* to mount it (in this case, the partition labeled "/home/archiv"). The LABEL is just an arbitrary string that's compared to the labels written onto the disk partitions themselves (with the 'e2label' command btw). It is popular to use as label the path where the partition should be mounted, but that's completely up to the sysadmin.

--
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