In Ubuntu, it is found that the system uses a UUID to make a unique representation of the hard disk partition, such as:
#/DEV/SDA1
#UUID =45f8-9147/media/sda1 vfat defaults,utf8,umask=000 0 1
/DEV/SDA1/MEDIA/SDA1 vfat defaults,utf8,umask=000 0 1
#/DEV/SDA5
Uuid=5668d81168d7edad/media/sda6 ntfs-3g defaults,nls=utf8,umask=000 0 1
One advantage of doing this and using the/dev/sda5 method of direct reference partitioning is that when a new partition is added to the hard disk or the order of the partitions changes, the system is still able to load the partition to the correct mount point.
This is especially important for swap partitions, if the hard disk partitioning sequence changes, and fstab to the swap partition number to respond to the adjustment, will be the other partitions as swap. The result is terrible, and the data on this partition is probably going to be out of the cost.
By/dev/disk/uuid, the list of UUID here is actually some soft link file, which guarantees a unique encoding for each partition and increases the stability of the system.