Linux下查看硬盘UUID和修改硬盘UUID(转)

查看硬盘UUID:

1、

ls -l /dev/disk/by-uuid

2、

blkid /dev/sda5

修改硬盘UUID:

1、新建和改变分区的UUID

sudo uuidgen | xargs tune2fs /dev/sda5 -U

2、将原有UUID写会到分区

tune2fs -U c1b9d5a2-f162-11cf-9ece-0020afc76f16 /dev/sda5

 

参考:

http://blog.csdn.net/rainday0310/article/details/6343038

posted @ 2017-09-03 23:20  EasonJim  阅读(52233)  评论(0编辑  收藏  举报