commands.sh

xfs_admin

linux

Tune an XFS filesystem.

More info →

Options (4)

-l, --listboolean

Display the filesystem label

Example: sudo xfs_admin {{[-l|--list]}} {{/dev/sdX}}
-L, --Labelboolean

Set the filesystem label

Example: sudo xfs_admin {{[-L|--Label]}} "{{label}}" {{/dev/sdX}}
-u, --uuidboolean

Display the filesystem UUID

Example: sudo xfs_admin {{[-u|--uuid]}} {{/dev/sdX}}
-U, --UUIDboolean

Set the filesystem UUID (use with caution)

Example: sudo xfs_admin {{[-U|--UUID]}} {{uuid}} {{/dev/sdX}}

Examples (6)

Display the filesystem label

sudo xfs_admin [-l|--list] /dev/sdX

Set the filesystem label

sudo xfs_admin [-L|--Label] "label" /dev/sdX

Display the filesystem UUID

sudo xfs_admin [-u|--uuid] /dev/sdX

Set the filesystem UUID (use with caution)

sudo xfs_admin [-U|--UUID] uuid /dev/sdX

Generate a new UUID for the filesystem

sudo xfs_admin [-U|--UUID] generate /dev/sdX

Display help

made by @shridhargupta | data from tldr-pages