]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: (new) add support for PARTUUID= and PARTLABEL=
authorKarel Zak <kzak@redhat.com>
Thu, 19 Apr 2012 12:40:06 +0000 (14:40 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Apr 2012 12:40:06 +0000 (14:40 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8
sys-utils/mount.c

index 73fa367bc41c91217c0b6900f963beb4e9ac507f..56897e9942f003a75b1b206ea76b50609517f3e6 100644 (file)
@@ -127,19 +127,25 @@ but there are other possibilities. For example, in the case of an NFS mount,
 may look like
 .IR knuth.cwi.nl:/dir .
 It is possible to indicate a block special device using its
-volume
+filesystem
 .B LABEL
 or
 .B UUID
-(see the \-L and \-U options below).
+(see the \-L and \-U options below) and
+partition
+.B PARTUUID
+or
+.B PARTLABEL
+(partition identifiers are supported for GUID Partition Table (GPT) and MAC
+partition tables only).
 
-The recommended setup is to use LABEL=<label> or UUID=<uuid> tags rather than
-.B /dev/disk/by-{label,uuid}
+The recommended setup is to use tags (e.g. LABEL=<label>) rather than
+.B /dev/disk/by-{label,uuid,partuuid,partlabel}
 udev symlinks in the /etc/fstab file. The tags are
 more readable, robust and portable. The
 .BR mount (8)
 command internally uses udev
-symlinks, so use the symlinks in /etc/fstab has no advantage over LABEL=/UUID=.
+symlinks, so use the symlinks in /etc/fstab has no advantage over the tags.
 For more details see
 .BR libblkid (3).
 
@@ -218,7 +224,7 @@ program does not read the
 .I /etc/fstab
 file if
 .I device
-(or LABEL/UUID) and
+(or LABEL, UUID, PARTUUID or PARTLABEL) and
 .I dir
 are specified. For example:
 .RS
index f5df087ea07cda3c12396f0276208b29d285c0b5..a017f2f2d842811f7de934680bb70e45736237ba 100644 (file)
@@ -614,7 +614,10 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
        " -L, --label <label>     synonym for LABEL=<label>\n"
        " -U, --uuid <uuid>       synonym for UUID=<uuid>\n"
        " LABEL=<label>           specifies device by filesystem label\n"
-       " UUID=<uuid>             specifies device by filesystem UUID\n"));
+       " UUID=<uuid>             specifies device by filesystem UUID\n"
+       " PARTLABEL=<label>       specifies device by partition label\n"
+       " PARTUUID=<uuid>         specifies device by partition UUID\n"));
+
        fprintf(out, _(
        " <device>                specifies device by path\n"
        " <directory>             mountpoint for bind mounts (see --bind/rbind)\n"