Re: fstab and LABEL=



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?
You do not need to use /dev.

I had a different partitioning so I had "LABEL=" in may fstab entires. I
edited them. You can do it so. I think /home/archive3 is not your home
directory.

Here is my suggestion:

1- Create a directory under / named archiv

2-Make a copy of your fstab as fstab.1

3-Edit the fstab as given below

/archiv /home/archive3 xfs defaults 1 2

4-Save the edited fstab

5-Run mount- a

If everhting is ok, you will get no error messages.

Goksin Akdeniz
--------
www.enixma.org

Attachment: pgpYdXfZ4rpT9.pgp
Description: PGP signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: use of label in fstab
    ... use of label in fstab ... > I made another partition /dev/sda5 and used e2label to label it dyndata, ... I don't generally mount by label & I don't use ext filesystems, ...
    (Ubuntu)
  • Re: HD error: BAD SUPER BLOCK
    ... >>to fstab and rebooted. ... sectors/track: 63 ... /kernel: ad6: cannot find label ... /kernel: ad6s1: cannot find label (no disk label) ...
    (freebsd-questions)
  • Re: fstab and LABEL=
    ... You can just use the /dev/hda style of fstab lines, ... it doesn't matter what the drives are actually labelled as. ... The label and the mount point don't have to be related. ... well have been seagate2 with that mountpoint, ...
    (Fedora)
  • Re: [kde] automounting IPOD
    ... xfs) filesystem that is to be mounted by its UUID or volume label ... changes the disk device name but not the filesystem volume label. ... If I add an fstab entry for /dev/sda2 with suitable options this ...
    (KDE)
  • Re: Debian AMD64 boots only at random: how to use labels/fstab/grub
    ... I'm only familiar with the ext/xfs filesystem commands which is what you appear to be using. ... If you have a disk with no label, you would need to add one. ... So, if you have a disk that is mounted on '/var', the default label will be '/var'. ... involves using lables in fstab and grub. ...
    (Debian-User)