[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: device UUID versus /dev



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joel Roth wrote:

> On Sun, Feb 08, 2009 at 08:51:12PM +0100, Abdelkader Belahcene wrote:
>>
>> What are the advantages by using
>> drives are now identified by UUID
>> over  than /dev/xxx;

> Your mounts in /etc/fstab will not be broken when 
> you delete a partition, or perform other operations
> that change the /dev/xxx assigned to particular
> partition.

On the other hand, if the drive dies and the replacement is newly
formated with the same partitions, the UUIDs will be different, but the
/dev names would be the same.

You can shoot yourself in the foot no matter which way you go. You still
need to think a bit if you futz with the system disk(s).

> Especially useful for USB drives, where you have
> no guarantee what the /dev/xxx will be when you plug them
> in.

And if you have, like I do, a system that sees external USB drives
before internal anythings, a reboot can be a very interesting experience
if you're using the /dev names. UUIDs make this problem go away.

The best solution I've found so far is to write my own UDEV rules that
look at the drive's manufacturer and model and create my own /dev names.
Then I use those in fstab. This got rid of my external USB problem and
allows for swapping in a new identical drive, but at the cost of being
very very careful about changing anything having to do with the disk
and/or fstab.

I'm hoping this is all in a huge state of flux, and that somebody
smarter than I am will figure out a simple and reliable solution to it all.

- --
Glenn English
ghe@slsware.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmPSzYACgkQ04yQfZbbTLavxwCgoEyRJfsen2C3DIzC+CGaDk84
NAgAn3EUgmqLBrsO5pRJqOqDInAbdqI/
=gzeb
-----END PGP SIGNATURE-----


Reply to: