查看磁盘分区UUID的四种方法(Helloblock写作)

查看磁盘分区UUID的四种方法Helloblock写作)

1、使用/dev/disk/by-uuid目录

[root@server ~]# ls -l /dev/disk/by-uuid

总用量 0

lrwxrwxrwx. 1 root root 10 8 19 00:45 bec50c5d-090c-47ad-83d5-25328b4ab7ec -> ../../sda1

2、使用blkid命令

[root@ server ~]# blkid -s UUID /dev/sda1

/dev/sda1: UUID="bec50c5d-090c-47ad-83d5-25328b4ab7ec"

3、使用tune2fs命令

[root@ server ~]# tune2fs -l /dev/sda1 |grep 'UUID'

Filesystem UUID: bec50c5d-090c-47ad-83d5-25328b4ab7ec

4、使用dumpe2fs命令

[root@ server ~]# dumpe2fs /dev/sda1 |grep 'UUID'

dumpe2fs 1.41.12 (17-May-2010)

Filesystem UUID: bec50c5d-090c-47ad-83d5-25328b4ab7ec

mail:[email protected]

QQ:1654294099


你可能感兴趣的:(linux,uuid)