- 1 VMware Takes the Wraps Off vRealize Automation and vRealize Business
- 2 Microsoft Previews Hyper-V Containers for Windows Server 2016
- 3 Mirantis Led FUEL Project Gets Installed Under OpenStack Big Tent
- 4 Red Hat Enterprise Linux 7.2 Adds Security, DR Features
- 5 Docker Reaches Across Universes at Dockercon EU
Using UUID to Deal With Disks
OK, so, first, how do you find out the UUID of your disk? The command blkid can be used here's its output for one of my disks:
# blkid /dev/hda1 /dev/hda1: UUID="0ef96300-36c0-4575-8a1d-2d36ff4cd585" SEC_TYPE="ext2" TYPE="ext3"
You can also do this the other way around, starting from the UUID: findfs UUID=uuid will tell you which disk is associated with that UUID.
Once you have the UUID of a device, you can use it with mount by using the -U switch:
mount -U 0ef96300-36c0-4575-8a1d-2d36ff4cd585 /mnt/disk1
To assign a UUID to a disk, use tunefs. You can generate your own UUID with the command uuidgen. Then type:
tune2fs -U uuid /dev/sda2