This following command is used to print the UUID for a device. This may be used with UUID= in /etc/fstab to name devices that works even if disks are added and removed. redhat uses this in /etc/fstab file.
Print UUID to a selected partition /dev/sda1
#blkid -o value -s UUID /dev/sda1
Print all UUIDs
#blkid -o value -s UUID
No comments:
Post a Comment