summaryrefslogtreecommitdiffstats
path: root/sys-utils
diff options
context:
space:
mode:
authorKarel Zak2012-04-19 14:40:06 +0200
committerKarel Zak2012-04-19 14:40:06 +0200
commiteb0eb262cb4d757983c83241c5fd93ec5ba6b374 (patch)
treea64671321784fccda1874b10066b008ddff911f8 /sys-utils
parentlsblk: add support for PARTUUID= and PARTLABEL= (diff)
downloadkernel-qcow2-util-linux-eb0eb262cb4d757983c83241c5fd93ec5ba6b374.tar.gz
kernel-qcow2-util-linux-eb0eb262cb4d757983c83241c5fd93ec5ba6b374.tar.xz
kernel-qcow2-util-linux-eb0eb262cb4d757983c83241c5fd93ec5ba6b374.zip
mount: (new) add support for PARTUUID= and PARTLABEL=
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
-rw-r--r--sys-utils/mount.818
-rw-r--r--sys-utils/mount.c5
2 files changed, 16 insertions, 7 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8
index 73fa367bc..56897e994 100644
--- a/sys-utils/mount.8
+++ b/sys-utils/mount.8
@@ -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
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index f5df087ea..a017f2f2d 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -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"