Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 12-07-2008, 12:41 PM   #1
LQ Newbie
Registered: May 2006
Distribution: Ubuntu, Fedora
Posts: 12

Rep: Reputation: 0
3 Partitions have the same UUID - how change it ?

Hi !

I have 3 partitions that have the same UUID ("10D8-132E"), see below.
Is it possible to rename them in any way without affecting the other partitions ?

root@ubuntu:/home/joe# blkid
/dev/hda2: LABEL="HDA2C" UUID="3D61-13E4" TYPE="vfat"
/dev/hda5: LABEL="HDA5D" UUID="4481-8F60" TYPE="vfat"
/dev/hdb5: LABEL="hdb5" UUID="bc577def-42a5-4c44-9417-33c94d74946f" TYPE="ext3"
/dev/hdb6: LABEL="HDB6" UUID="10D8-132E" TYPE="vfat" # <<<<< SAME UUID
/dev/hdb7: LABEL="HDB7" UUID="10D8-132E" TYPE="vfat" # <<<<< SAME UUID
/dev/hdb8: LABEL="HDB8" UUID="10D8-132E" TYPE="vfat" # <<<<< SAME UUID
/dev/hdb9: LABEL="boot" UUID="691e088b-33c0-4d63-9f16-6c8aaf2c909f" SEC_TYPE="ext2" TYPE="ext3"
/dev/hdb10: LABEL="hdb10" UUID="89504d45-bba8-4665-bab2-f809630b5d23" SEC_TYPE="ext2" TYPE="ext3"
/dev/hdb11: TYPE="swap" LABEL="SWAP-hdb11" UUID="bec4d83a-4ea7-4ae1-9e8b-24a4dd363e57"

/ Johan
Old 12-07-2008, 01:04 PM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,063

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
man tune2fs See the -U option
Old 12-07-2008, 03:10 PM   #3
LQ Newbie
Registered: May 2006
Distribution: Ubuntu, Fedora
Posts: 12

Original Poster
Rep: Reputation: 0
I am getting:

root@ubuntu:/home/joe# tune2fs -U clear /dev/hdb6
tune2fs 1.40.8 (13-Mar-2008)
tune2fs: Bad magic number in super-block while trying to open /dev/hdb6
Couldn't find valid filesystem superblock.

I guess tune2fs not works for vfat.

Do I need to format the partitions to ext2 or 3 ?
Old 12-07-2008, 04:16 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,630

Rep: Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393
[V]FAT doesn't support UUID - likewise NTFS. Don't rely on the generated by-uuid values.
If you can convert them to a native Linux filesystem type you will be safe to rely on the UUID.
Old 12-07-2008, 06:39 PM   #5
LQ Newbie
Registered: May 2006
Distribution: Ubuntu, Fedora
Posts: 12

Original Poster
Rep: Reputation: 0

I reformatted the partitions to ext3 and they got new UUID automatically.

/dev/hdb6: UUID="227eda48-9654-4f1c-a460-45a7996c985a" SEC_TYPE="ext2" TYPE="ext3" LABEL="hdb6"
/dev/hdb7: UUID="78b8c1c3-feae-453e-84c4-8630e4e9226c" SEC_TYPE="ext2" TYPE="ext3" LABEL="hdb7"
/dev/hdb8: LABEL="hdb8" UUID="e554fc21-0056-4805-a3e2-fc1a8ecc6416" SEC_TYPE="ext2" TYPE="ext3"
Old 12-07-2008, 10:25 PM   #6
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
UUID does not have to be used for mounting. I recommend using LABEL to have a predictable mounting.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two partitions are sharing one UUID. hpladd Linux - Hardware 1 07-28-2007 05:17 PM
Change Partition Number, does UUID change? aragon127 Linux - Software 1 11-24-2006 01:11 PM
How can I change the partitions' numbers ?? doraimom Linux - General 15 04-17-2006 01:36 PM
does anyone know how to change between different partitions under linux? kuertensun Linux - Newbie 20 06-12-2005 08:15 AM
Any way to change what partitions /home is on without reinstalling? DraaX Slackware 8 02-21-2005 12:32 PM

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration