fstab and LABEL=

Denis Leroy denis at poolshark.org
Fri Oct 20 15:21:34 UTC 2006


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.




More information about the fedora-list mailing list