← 返回命令列表

Linux command

findfs 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Find device by filesystem label

findfs LABEL=[label]

Find device by filesystem UUID

findfs UUID=[uuid]

Find device by GPT partition label

findfs PARTLABEL=[partition_label]

Find device by GPT partition UUID

findfs PARTUUID=[partition_uuid]

说明

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.

参数

LABEL=_label_
Search by filesystem label
UUID=_uuid_
Search by filesystem UUID
PARTLABEL=_label_
Search by GPT/MAC partition label
PARTUUID=_uuid_
Search by GPT partition UUID

FAQ

What is the findfs command used for?

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.

How do I run a basic findfs example?

Run `findfs LABEL=[label]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does LABEL=_label_ do in findfs?

Search by filesystem label