How to list an UUID?

Derek Broughton news at pointerstop.ca
Wed Mar 28 14:08:54 UTC 2007


Ali Milis wrote:

> Hi,
> 
> May I know how find the UUID of a file-system and/or swap
> partition?

Any of the hal utilities should do it.

> BTW:
> Is there any specific reason: SWAP will always be recreated
> with a new UUID, even if SWAP already exists before?

Whenever you create a new filesystem (which in essence is what mkwswap does)
you get a new uuid.  Specifically, for swap partitions I use:

# mkswap -L swap /dev/...

and use the label "swap" wherever possible, instead of the uuid.
-- 
derek





More information about the kubuntu-users mailing list