Option to use /dev values instead of UUID values

NoOp glgxg at sbcglobal.net
Thu Mar 25 00:05:51 UTC 2010


On 03/24/2010 04:31 PM, Lou Katz wrote:
> On Wed, Mar 24, 2010 at 11:18:26AM -0700, NoOp wrote:
>> On 03/24/2010 10:57 AM, Lou Katz wrote:
>> ...
>> 
>> > 
>> > Anyone have a clue as to why this partition refuses to be UUID'd or LABEL'd?
>> > All the other partitions on this drive have UUIDs.
>> ...
>> 
>> $ sudo blkid
>> results in what?
> 
> Every partition except the one I'm trying to label being listed.
> 	$ sudo blkid
> 	[sudo] password for lou: 
> 	/dev/sda2: UUID="4E0C083C0C082197" LABEL="W2K" TYPE="ntfs" 
> 	/dev/sda3: UUID="B2DCD2EADCD2A83D" LABEL="XP-Root" TYPE="ntfs" 
> 	/dev/sda5: UUID="3bdf3983-9d86-4adb-85df-257942a33e5b" TYPE="swap" 
> 	/dev/sda7: UUID="19299e03-366c-4c76-b8fc-f650bd77f790" SEC_TYPE="ext2" TYPE="ext3" 
> 	/dev/sda8: UUID="d1e3679d-1a16-4154-95ad-e04edcedb271" TYPE="ext3" 
> 	/dev/sda9: UUID="300425e2-2fce-4421-a7a9-a956118b2c18" TYPE="ext2" 
> 	/dev/sda10: UUID="354d6e92-99f3-427f-867e-f02183bf0454" TYPE="ext3" SEC_TYPE="ext2" 
> 	/dev/sda11: UUID="48a4bc15-b0f9-4a46-a563-114a45477534" TYPE="ext3" SEC_TYPE="ext2" 
> 	/dev/sdb1: LABEL="WORK" UUID="631F-D2FD" TYPE="vfat" 
> 	/dev/sdb2: UUID="e704b2dd-3253-4c00-8025-b11eaa25ae33" TYPE="ext3" 
> 	/dev/sdb3: UUID="9b27509d-5528-4df6-a7b9-b7748cc19c17" TYPE="ext3" 
> 	/dev/sdb4: UUID="cebf1c58-8ccb-43f6-a6b4-f23e15a39211" TYPE="ext3" 
> 	/dev/sdg1: UUID="893dc90f-e09d-4aae-857f-28102c692518" TYPE="ext3" SEC_TYPE="ext2" 
> 	/dev/sdg2: UUID="46c6e755-f867-4653-a9a4-066c9869e5f0" TYPE="swap" 
> 	
> I've tried
> 	tune2fs -U time /dev/sda1
> 	and
> 	tune2fs -L boot /dev/sda1
> to no effect. The above blkid was run after the tune2fs. It also seems not to matter if /dev/sda1 is
> mounted or not when the tune2fs is run and when the blkid is run.

Very strange.
Perhaps:
$ sudo tune2fs -U clear /dev/sda1
$ sudo tune2fs -U random /dev/sda1
might do the trick?

However, regarding 'random':
<quote from man tunefs>
See  uuidgen(8)  for  more  information.  If the system does not
have a good random  number  generator  such  as  /dev/random  or
/dev/urandom,  tune2fs  will automatically use a time-based UUID
instead of a randomly-generated UUID.
</quote from man tunefs>
I've not used uuidgen before, so you might google it & review the man
page. Not sure if this will help, but might be worth a look:
https://help.ubuntu.com/community/UsingUUID






More information about the ubuntu-users mailing list