LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   3 Partitions have the same UUID - how change it ? (https://www.linuxquestions.org/questions/linux-hardware-18/3-partitions-have-the-same-uuid-how-change-it-688923/)

joe132 12-07-2008 11:41 AM

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

tredegar 12-07-2008 12:04 PM

man tune2fs See the -U option

joe132 12-07-2008 02:10 PM

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 ?

syg00 12-07-2008 03:16 PM

[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.

joe132 12-07-2008 05:39 PM

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"

Electro 12-07-2008 09:25 PM

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


All times are GMT -5. The time now is 05:16 AM.