LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 12-07-2008, 11:41 AM   #1
joe132
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"
root@ubuntu:/home/joe#



/ Johan
 
Old 12-07-2008, 12:04 PM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
man tune2fs See the -U option
 
Old 12-07-2008, 02:10 PM   #3
joe132
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, 03:16 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,045

Rep: Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970
[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, 05:39 PM   #5
joe132
LQ Newbie
 
Registered: May 2006
Distribution: Ubuntu, Fedora
Posts: 12

Original Poster
Rep: Reputation: 0
Hi

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, 09:25 PM   #6
Electro
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.
 
  


Reply


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 04:17 PM
Change Partition Number, does UUID change? aragon127 Linux - Software 1 11-24-2006 12:11 PM
How can I change the partitions' numbers ?? doraimom Linux - General 15 04-17-2006 12:36 PM
does anyone know how to change between different partitions under linux? kuertensun Linux - Newbie 20 06-12-2005 07:15 AM
Any way to change what partitions /home is on without reinstalling? DraaX Slackware 8 02-21-2005 11:32 AM


All times are GMT -5. The time now is 10:51 PM.

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