Archive for May, 2008

UUID… Is it really better?

Posted in General on Monday, May 5, 2008 by Yatta

Ubuntu started using UUID’s from around Edgy Eft I believe. I must
admit though when I upgraded to Edgy. I noticed the change to UUID in
my /etc/fstab but I never paid it any mind; “If it ain’t broke don’t
fix it!!”. I’ve since did a network upgrade to Hardy from Gutsy… that
‘install’ messed up my partitions ūüė¶ !!!!!

First let me give you the wikipedia definition of UUID:

The intent of UUIDs is to enable distributed systems to uniquely
identify information without significant central coordination. Thus,
anyone can create a UUID and use it to identify something with
reasonable confidence that the identifier will never be unintentionally
used by anyone for anything else.

UUID is good for people who use alot of removable devices.By using UUID you¬† don’t have to worry about disk label issues. While normal desktop users who don’t really change or add hard drives to their up an running system will see UUID as just more headache in the *nix world.
Not sure where I picked up this info from but this is put as simply as possible I believe:

No matter if you change how the hd is connected to your system (for example primary/secondary master/slave for IDE) the UUID never changes, whereas the device node can change. Thus the association between mount point and partition is more robust when using UUIDs.

Which do you prefer:

UUID=855c621e-cc8b-4a2c-9b22-e01aa751b870    /media/layover    ext3     defaults           0          2


/dev/sda5 /media/unno ext3 defaults 0 2

If you are interested in finding out what your UUID is for a particular partition type:

sudo vol_id -u device