Ubuntu下查看uuid

查看uuid有以下几种方法:

1. sudo blkid
/dev/sda1: UUID="9ADAAB4DDAAB250B" TYPE="ntfs"
/dev/sdb1: UUID="B2FCDCFBFCDCBAB5" TYPE="ntfs"
/dev/sdb5: UUID="46FC5C74FC5C5FEB" TYPE="ntfs"
/dev/sdb6: TYPE="swap" UUID="2cec6109-5bcf-45a3-ba1b-978b041c037f"
/dev/sdb8: UUID="9ee6f22d-b394-422c-9b4a-1525a3220942" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb7: UUID="4bcb9381-6e25-4304-8743-f882039ff3ad" TYPE="ext3"

2. ls -l /dev/disk/by-uuid
lrwxrwxrwx 1 root root 10 2008-05-15 22:37 2cec6109-5bcf-45a3-ba1b-978b041c037f ->

../../sdb6
lrwxrwxrwx 1 root root 10 2008-05-15 22:37 46FC5C74FC5C5FEB -> ../../sdb5
lrwxrwxrwx 1 root root 10 2008-05-15 22:37 4bcb9381-6e25-4304-8743-f882039ff3ad ->

../../sdb7
lrwxrwxrwx 1 root root 10 2008-05-15 22:37 9ee6f22d-b394-422c-9b4a-1525a3220942 ->

../../sdb8

3. sudo vol_id /dev/sda1
ID_FS_USAGE=filesystem
ID_FS_TYPE=reiserfs
ID_FS_VERSION=3.6
ID_FS_UUID=be6d8295-a1c4-48e9-b68d-f4b043cd5f2c
ID_FS_UUID_ENC=be6d8295-a1c4-48e9-b68d-f4b043cd5f2c
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值