LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

findfs

locate filesystems by label or UUID

TLDR

Find device by filesystem label
$ findfs LABEL=[label]
copy
Find device by filesystem UUID
$ findfs UUID=[uuid]
copy
Find device by GPT partition label
$ findfs PARTLABEL=[partition_label]
copy
Find device by GPT partition UUID
$ 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 label
UUID=uuid
Search by filesystem UUID
PARTLABEL=label
Search by GPT/MAC partition label
PARTUUID=uuid
Search by GPT partition UUID

INSTALL

sudo apt install util-linux
copy
sudo dnf install util-linux
copy
sudo pacman -S util-linux
copy
sudo apk add util-linux-misc
copy
sudo zypper install util-linux
copy
brew install util-linux
copy
nix profile install nixpkgs#util-linux
copy

CAVEATS

Part of util-linux. PARTUUID only available on GPT partition tables. Labels and UUIDs must be unique for reliable matching.

SEE ALSO

blkid(8), lsblk(8), fstab(5)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid