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.
So by mounting or refering your hard disk by its UUID, you are guaranteed to mount the correct storage medium no matter where its connected on your system.
Here’s how to get your harddisk UUID number
Method 1: Ubuntu and Debian Way
sudo vol_id /dev/hda1
This command display harddisk extra information including its filesystem and uuid number.
Method 2: using /dev/disk/by-uuid/
Another method which works universally on modern GNU Linux operating system is :
ls -l /dev/disk/by-uuid
which will uuid of connected storage medium to your computer.
That’s all, now you can easily identify your storage disk UUID number without much problem anymore.
Keep updated with the latest posts, be a part of over 1,000 subscribers! : Subscribe to your email
You might also want to read...
- How to change uuid for a block device / hard drive partition in Linux
- A guide to install and boot 145 operating systems
- 06/06/06 – The year of the beast?
- Iptables rule to safeguard SSH server from crackers
- OpenOffice Premium – openoffice 2.0.3 with extra toppings!
- My Experimental PC Harddisk Layout
- Limiting the number of connections to SSH Server using Iptables