linux uuidÔõô»ñÈ¡
linux ÖÐµÄ uuid »ñÈ¡ÒªÁ죺ӲÅÌ»ò·ÖÇø uuid£ºsudo blkid | grep -e “uuid=” | cut -d”=” -f2Îļþϵͳ uuid£ºsudo findfs uuid »ò sudo blkid | grep -e “/dev/[a-z]+\d+” | cut -d”=” -f2ext2/ext3/ext4 ·ÖÇø uuid£ºsudo tune2fs -l /dev/[·ÖÇøÃû³Æ] | grep uuidwindows ntfs ·ÖÇø uuid£ºsudo ntfs-3
Linux ÖлñÈ¡ UUID
ÔÚ Linux ϵͳÖУ¬UUID£¨Í¨ÓÃΨһʶ±ð·û£©ÊÇÒ»¸ö 128 λµÄÊý×Ö£¬ÓÃÓÚΨһʶ±ð×°±¸¡¢·ÖÇø»òÎļþϵͳ¡£ÒÔÏÂÊÇÔõÑù»ñÈ¡ Linux ÖеIJî±ðÀàÐ굀 UUID£º
1. Ó²ÅÌ»ò·ÖÇø UUID
sudo blkid | grep -E "UUID=" | cut -d"=" -f2
µÇ¼ºó¸´ÖÆ
Õ⽫ÁгöËùÓÐÓ²Å̺ͷÖÇø¼°ÆäÏìÓ¦µÄ UUID¡£
2. Îļþϵͳ UUID
sudo findfs UUID
µÇ¼ºó¸´ÖÆ
Õ⽫ÕÒµ½²¢´òÓ¡³öÎļþϵͳ¼°Æä UUID¡£»òÕߣ¬Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ
sudo blkid | grep -E "/dev/[a-z]+\d+" | cut -d"=" -f2
µÇ¼ºó¸´ÖÆ
Õ⽫ÁгöËùÓÐÒѹÒÔØ·ÖÇøµÄ UUID¡£
3. Ext2/Ext3/Ext4 ·ÖÇø UUID
sudo tune2fs -l /dev/[·ÖÇøÃû³Æ] | grep UUID
µÇ¼ºó¸´ÖÆ
Õ⽫ÏÔʾÌض¨ Ext2/Ext3/Ext4 ·ÖÇøµÄ UUID¡£
4. Windows NTFS ·ÖÇø UUID
sudo ntfs-3g -s /dev/[·ÖÇøÃû³Æ] | grep "Volume Serial Number is"
µÇ¼ºó¸´ÖÆ
Õ⽫ÏÔʾ Windows NTFS ·ÖÇøµÄ UUID¡£
ÒÔÉϾÍÊÇlinux uuidÔõô»ñÈ¡µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡