LinuxCommandLibrary

xfs_admin

Modify XFS filesystem parameters

TLDR

Display label

$ sudo xfs_admin -l [/dev/sdX]
copy
Set label
$ sudo xfs_admin -L "[label]" [/dev/sdX]
copy
Display UUID
$ sudo xfs_admin -u [/dev/sdX]
copy
Set UUID
$ sudo xfs_admin -U [uuid] [/dev/sdX]
copy
Generate new UUID
$ sudo xfs_admin -U generate [/dev/sdX]
copy

SYNOPSIS

xfs_admin [OPTIONS] DEVICE

DESCRIPTION

xfs_admin modifies parameters of an XFS filesystem. It can change the label and UUID of unmounted XFS filesystems.
The filesystem must be unmounted before modifying parameters.

PARAMETERS

-l, --list

Display filesystem label
-L, --Label LABEL
Set filesystem label
-u, --uuid
Display filesystem UUID
-U, --UUID UUID
Set filesystem UUID (or "generate" for new)
-c 0|1
Enable/disable lazy-counters

CAVEATS

Changing UUID may affect fstab and boot configurations. Requires root privileges. XFS filesystems only.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community