findfs

find a filesystem by label or UUID

TLDR

Search block devices by filesystem label

>_ findfs LABEL=[label]
copy

Search by filesystem UUID

>_ findfs UUID=[uuid]
copy

Search by partition label (GPT or MAC partition table)

>_ findfs PARTLABEL=[partition_label]
copy

Search by partition UUID (GPT partition table only)

>_ findfs PARTUUID=[partition_uuid]
copy

SYNOPSIS

findfs NAME=value

DESCRIPTION

findfs will search the block devices in the system looking for a filesystem or partition with specified tag. The currently supported tags are:

LABEL=<label> Specifies filesystem label.

UUID=<uuid> Specifies filesystem UUID.

PARTUUID=<uuid> Specifies partition UUID. This partition identifier is supported for example for GUID Partition Table (GPT) partition tables.

PARTLABEL=<label> Specifies partition label (name). The partition labels are supported for example for GUID Partition Table (GPT) or MAC partition tables.

If the filesystem or partition is found, the device name will be printed on stdout.
The complete overview about filesystems and partitions you can get for example by

lsblk --fs

partx --show <disk>

blkid

EXIT STATUS

0

0 success

1 label or uuid cannot be found

2 usage error, wrong number of arguments or unknown option

ENVIRONMENT

LIBBLKID_DEBUG=all enables libblkid debug output.

AVAILABILITY

The findfs command is part of the util-linux package and is available from https:// www.kernel.org /pub /linux /utils /util-linux/ Linux Kernel Archive .

SEE ALSO

blkid(8), lsblk(8), partx(8)

AUTHOR

findfs was originally written by tytso@mit.edu Theodore Ts'o and re-written for the util-linux package by kzak@redhat.com Karel Zak .

Copied to clipboard
free 100$ digital ocean credit