Using UUID to Deal With Disks
Download the authoritative guide: Data Center Guide: Optimizing Your Data Center Strategy
Download the authoritative guide: Cloud Computing: Using the Cloud for Competitive Advantage
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
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...