← 返回命令列表

Linux command

xfs_admin 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

sudo xfs_admin -l [/dev/sdX]

Example

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

Example

sudo xfs_admin -u [/dev/sdX]

Example

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

Generate

sudo xfs_admin -U generate [/dev/sdX]

说明

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.

参数

-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

FAQ

What is the xfs_admin command used for?

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.

How do I run a basic xfs_admin example?

Run `sudo xfs_admin -l [/dev/sdX]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --list do in xfs_admin?

Display filesystem label