Linux UUID (Universally Unique IDentifier) 확인 하기


UUID는 리눅스에서 블록 디바이스의 식별자로 사용한다.


1, blkid


 # blkid

/dev/sda2: UUID="1ecd1eea-0aa6-4114-a113-56a34f814757" TYPE="ext4"

/dev/sda1: UUID="e6037198-fbb6-488e-8229-eb4ad575742e" TYPE="ext4"

/dev/sda3: UUID="e38604b0-6ccc-466b-a330-8bdf4eef2a79" TYPE="swap"

/dev/sda5: UUID="99869a61-eddd-4cc9-944f-3738e982f817" TYPE="ext4"



2, ls -la /dev/disk/by-uuid


 # ls -l /dev/disk/by-uuid

lrwxrwxrwx. 1 root root  10 2017-07-31 09:04 1ecd1eea-0aa6-4114-a223-56a34f814757 -> ../../sda2

lrwxrwxrwx. 1 root root  10 2017-07-31 09:04 99869a61-eddd-4cc9-944f-3738e982f817 -> ../../sda5

lrwxrwxrwx. 1 root root  10 2017-07-31 09:04 e38604b0-6ccc-466b-a330-8bdf4eef2a79 -> ../../sda3

lrwxrwxrwx. 1 root root  10 2017-07-31 09:04 e6037198-fbb6-488e-8119-eb4ad575742e -> ../../sda1    



+ Recent posts