A Universally Unique Identifier (UUID) is an identifier standard used in software construction, standardized by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE).
Modern Linux system uses UUID instead of traditional block name (/dev/hda1, /dev/hda5, /dev/sdb) to uniquely identify harddisk or other storage medium. This is because UUID is unique and never changes even if you switch the harddisk ordering.
There are 3 ways to check UUID for a disk
- ls -l /dev/disk/by-uuid
- blkid
- sudo vol_id /dev/hda1 (for ubuntu and debian)