On Wed, 4 May 2011 14:22:37 -0600 (MDT)
"Matthew Walker" <[email protected]> wrote:

> On Wed, May 4, 2011 2:19 pm, Spencer Gibb wrote:
> > On Wed, May 4, 2011 at 2:16 PM, Matthew Walker
> > <[email protected]> wrote:
> >
> >> Stick with UUIDs, for sure. They eliminate several possible
> >> headaches.
> >>
> >
> > So, UUID's don't change with the new hardware?  If that's the case,
> > great!
> 
> Moving to a new filesystem will change the UUID, but you're changing
> everything else anyway. (It may also be possible to specify the UUID
> when your format the filesystem. I'm not positive of that.)
> 
> Remember, UUIDs are labels of the filesystem, not directly tied to
> the underlying partition.

Correct.

To change an extfs file system's UUID to some pre-determined value,

tune2fs -U <UUID> /dev/<dev>

Where <dev> is the partition, e.g. sda3.

To get the UUID of a partition,

blkid -o value -s UUID /dev/<dev>

-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to