FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-08-2009, 06:51 PM
Abdelkader Belahcene
 
Default device UUID versus /dev

Hi,

What are the advantages by using
drives are now identified by UUID
over than /dev/xxx;

thanks
bela


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-08-2009, 07:26 PM
Joel Roth
 
Default device UUID versus /dev

On Sun, Feb 08, 2009 at 08:51:12PM +0100, Abdelkader Belahcene wrote:
> Hi,
>
> 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.

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

cheers

> thanks
> bela

>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

--
Joel Roth


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-08-2009, 08:14 PM
ghe
 
Default 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

iEYEARECAAYFAkmPSzYACgkQ04yQfZbbTLavxwCgoEyRJfsen2 C3DIzC+CGaDk84
NAgAn3EUgmqLBrsO5pRJqOqDInAbdqI/
=gzeb
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-08-2009, 08:19 PM
Frederik Kriewitz
 
Default device UUID versus /dev

On Sun, Feb 8, 2009 at 10:14 PM, ghe <ghe@slsware.com> wrote:
> 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.

Have a look at /dev/disk/by-*


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-08-2009, 09:12 PM
Alex Samad
 
Default device UUID versus /dev

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

you don't have to worry about ordering. I prefer to LABEL. that way it
doesn't matter what order the disks are found they always load up
properly.

You could do the same with udev rules as well - change the name of the
device and name it in the order that you want in /dev/ but....

>
> thanks
> bela
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

--
"We demand rigidly defined areas of doubt and uncertainty!"
-- Vroomfondel
 
Old 02-09-2009, 02:50 AM
Arthur Marsh
 
Default device UUID versus /dev

Frederik Kriewitz wrote, on 2009-02-09 07:49:

On Sun, Feb 8, 2009 at 10:14 PM, ghe <ghe@slsware.com> wrote:

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.


Have a look at /dev/disk/by-*




Bug#514209: Acknowledgement (initscripts: doesn't fsck
/dev/disk/by-label with spaces)



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-09-2009, 09:12 PM
"Barclay, Daniel"
 
Default device UUID versus /dev

Title: Re: device UUID versus /dev







Alex Samad wrote:

> On Sun, Feb 08, 2009 at 08:51:12PM +0100, Abdelkader Belahcene wrote:

>> Hi,

>>

>> What are the advantages by using

>> drives are now identified by UUID

>> over* than /dev/xxx;

>

> you don't have to worry about ordering. I prefer to LABEL. that way it

> doesn't matter what order the disks are found they always load up

> properly.



Be careful if you ever do a raw copy of a partition's data to another

(e.g., to move a file system from one partition to another).* Since

file system UUIDs and labels are both written in the partition, right

after the copy you'll have two partitions/file systems with the same

UUID or label.* Be sure to delete or zero out enough of the old

partition before trying to re-mount the file system.





Daniel

--

(Plain text sometimes corrupted to HTML "courtesy" of Microsoft Exchange.) [F]
 

Thread Tools




All times are GMT. The time now is 10:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org