There is an update to this post available: UUIDs and Linux: Everything you ever need to know.
The Universally Unique Identifier can be used to identify a device independent form its mount point or device name. This is more and more important as many devices today support hot-plugging or are external anyway. Therefore it makes sometimes sense to access a device (for example in
fstab) not by device name but by the UUID.
There are several ways to get the UUID. The first one uses the
/dev/ directory. While you are on is you might want to check other
by-* directories, I never knew of them.
Another way to get the uuid by usage of the tool
There you also get the label and other information. Quite usefule.
Btw., if you wonder how “unique” this unique is, here a quote from Wikipedia:
1 trillion UUIDs would have to be created every nanosecond for 10 billion years to exhaust the number of UUIDs.
Thanks to Linux By Examples for the initial howto.
'서버 등 운영체제(OS) > Linux' 카테고리의 다른 글
|CentOS 7 로케일 변경 (0)||2016.06.28|
|CentOS7 MRTG Install (0)||2016.06.27|
|yum update or yum install fails with package conflict between 64 bit and 32 bit package architectures ? (0)||2016.06.17|
|CentOS 저장장치(HDD) 추가 하기 (0)||2016.06.17|
|Unfinished transactions remaining - yum-complete-transaction (0)||2016.06.17|