linux 磁盘uuid获取

来源:互联网 发布:怎么看linux版本 编辑:程序博客网 时间:2024/06/06 00:05

ls -l /dev/disk/by-uuid/
总用量 0
lrwxrwxrwx 1 root root 10 2012-08-15 09:28 0af9bc87-c3c9-49eb-829e-caf572298cc7 -> http://www.cnblogs.com/sdb1
lrwxrwxrwx 1 root root 10 2012-08-15 09:27 3e8b5c85-3f5b-4864-b45e-03ff0073eb5f -> http://www.cnblogs.com/sda2
lrwxrwxrwx 1 root root 10 2012-08-15 09:27 4c644703-ea39-403d-8aa4-4d832e354477 -> http://www.cnblogs.com/sda4
lrwxrwxrwx 1 root root 10 2012-08-15 09:27 7003d3cd-38ba-40bf-9cb4-b25ed65d6160 -> http://www.cnblogs.com/sda3
lrwxrwxrwx 1 root root 10 2012-08-15 09:27 e46b5e4a-59e5-40a0-89fa-cda2c9137e88 -> http://www.cnblogs.com/sda5
lrwxrwxrwx 1 root root 10 2012-08-15 09:27 ff26eac0-cfab-4213-9f96-41dfd19f77bf -> http://www.cnblogs.com/sda1

 

或者

blkid /dev/sda1
/dev/sda1: UUID="ff26eac0-cfab-4213-9f96-41dfd19f77bf" TYPE="ext4"

原创粉丝点击