findfs
locate filesystems by label or UUID
TLDR
Find device by filesystem label
$ findfs LABEL=[label]
Find device by filesystem UUIDcopy
$ findfs UUID=[uuid]
Find device by GPT partition labelcopy
$ findfs PARTLABEL=[partition_label]
Find device by GPT partition UUIDcopy
$ findfs PARTUUID=[partition_uuid]
copy
SYNOPSIS
findfs tag=value
DESCRIPTION
findfs finds a filesystem by label or UUID and prints the device path. It searches all block devices for matching filesystem metadata.Used in boot scripts and mount operations to locate filesystems reliably.
PARAMETERS
LABEL=label
Search by filesystem labelUUID=uuid
Search by filesystem UUIDPARTLABEL=label
Search by GPT/MAC partition labelPARTUUID=uuid
Search by GPT partition UUID
CAVEATS
Part of util-linux. PARTUUID only available on GPT partition tables. Labels and UUIDs must be unique for reliable matching.