findfs
find a filesystem by label or UUID
see also :
blkid - fsck
Synopsis
findfs
LABEL=label
findfs
UUID=uuid
add an example, a script, a trick and tips
examples
source
devName=$(getParam media)
dev=`findfs LABEL=${devName}`
e2fsck -f $dev
/mount_data
/start
description
findfs
will search the disks in the system looking for a filesystem
which has a label matching label or a UUID equal to
uuid. If the filesystem is found, the device name for
the filesystem will be printed on stdout.
availability
The findfs command is part of the util-linux package and is
available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
see also
blkid
fsck
author
findfs
was originally written by Theodore Ts’o
(tytso[:at:]mit[:dot:]edu) and re-written for the util-linux package by
Karel Zak (kzak[:at:]redhat[:dot:]com).