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

Re: How to obtain UUID of drives (squeeze udev lacks vol_id)

On Mon, 22 Mar 2010 18:51:15 -0400 (EDT), Ron Johnson wrote:
> On 2010-03-22 17:05, Paul E Condon wrote:
>> cmpq:~# blkid
>> /dev/hda1: UUID="990189bc-f7ce-41a6-9d8f-64a35349875e" TYPE="ext3" 
>> /dev/hda2: LABEL="HDA2" UUID="5a02e986-8aa3-4790-aa3f-41f7f565533f" TYPE="ext3" 
>> /dev/hda3: LABEL="HDA3" UUID="63025622-0210-49d4-89ff-f038e6c218b6" TYPE="ext3" 
>> /dev/hda5: TYPE="swap" 
>> /dev/hda6: LABEL="HDA6" UUID="12148027-bc0b-4260-853e-64a8d79c6fe7" TYPE="ext3" 
>> /dev/hdb1: UUID="29b36e91-32e7-46bd-b8d3-831f5dcbd337" TYPE="ext3" 
>> /dev/sda1: LABEL="WDMB-1" UUID="bc1d2170-d790-4952-bbee-c3c3efdd8413" TYPE="ext3" 
>> /dev/sdb1: LABEL="WDP-5" UUID="8c6c3be3-4a72-45cd-929f-2dec9f185427" TYPE="ext3" 
>> This is from a system that is running Lenny. Note that the swap partition doesn't
>> have either a label or a uuid, but I had specified labels each time I installed
>> a distro. 
> That's weird.

I have noticed that the version of mkswap that is included in the Debian Installer
does not support the specification of a label (-L option) or a page size (-p option).
I haven't tried the -U option.  But the version of mkswap that gets installed for
the production system supports both -L and -U.  You can give the swap partition
any desired label or UUID after installation by an appropriate swapoff, mkswap, swapon 
command sequence.

  .''`.     Stephen Powell    <zlinuxman@wowway.com>
 : :'  :
 `. `'`

Reply to: