* [gentoo-user-de] UUID - eindeutig zweideutig
@ 2009-01-16 16:18 Andreas Klein
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Klein @ 2009-01-16 16:18 UTC (permalink / raw
To: Gentoo Mailing Liste
Hallöle,
Von wegen die uuid ist unique, ich hab das Problem das beim mir /dev/sda1 und sda2 die gleiche uuid tragen!
Musste daher meine fstab zumindest für diese beiden partitionen wieder auf /dev Benennung umstellen, da sonsten beide auf die gleichen Verzeichnisse gemounted wurden.
Kurioserweise zeigt ein #ls -l /dev/disk/by-uuid die erste partition /dev/sda1 überhaupt nicht an - wieso nicht?
#ls -l /dev/disk/by-id listet sie dagegen auf
Mittels # blkid /dev/sda1 bekomme ich sie dann endlich doch noch angezeigt und kann dadurch feststellen dass sda1, sda2 die gleiche uuid haben!
Seht selbst:
localhost andy # ls -l /dev/disk/by-uuid/
insgesamt 0
lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
localhost andy # blkid /dev/sda1
/dev/sda1: UUID="47aff456-d0b2-4e2b-bfcf-3337ea462d8f" TYPE="ext3" SEC_TYPE="ext2"
localhost andy # blkid /dev/sda2
/dev/sda2: UUID="47aff456-d0b2-4e2b-bfcf-3337ea462d8f" TYPE="ext3" SEC_TYPE="ext2"
localhost andy #
Ich hätte ja ne Idee wie's dazu kommen konnte: Vielleicht weil ich mal mit DD und auch mal mit partimage eine Kopie von sda1 auf sda2 erstellt habe?
Wie kann ich denn nun eine neue uuid einer der beiden partitionen zuordnen ohne die darauf befindlichen daten zu zerstören oder sichern /wiederhestellen zu müsen.
In der man page von uuid steht was von uuid_generate und auch was von e2fsprogs, aber ich finde keine Parameter in deren Hilfen wie ich das umzusetzten habe.
Bitte erleuchtet mich, denn ich wandele im Tal der Dunkelheit... :-)
Gruß, Andy.
P.S. wen auch das noch zum Vergleich interessiert:
localhost andy # ls -l /dev/disk/by-id
insgesamt 0
lrwxrwxrwx 1 root root 9 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4302932 -> ../../sdb
lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4302932-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035 -> ../../sda
lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035-part4 -> ../../sda4
lrwxrwxrwx 1 root root 9 16. Jan 14:46 ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW4091121 -> ../../sdc
lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW4091121-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW4091121-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW4091121-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 9 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4091121 -> ../../sdc
lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4091121-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4091121-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4091121-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 9 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4302932 -> ../../sdb
lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4302932-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035 -> ../../sda
lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035-part4 -> ../../sda4
lrwxrwxrwx 1 root root 9 16. Jan 14:46 usb-Generic_2.0_Reader_-0_070112015146000745-0:0 -> ../../sdd
localhost andy #
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-user-de] UUID - eindeutig zweideutig
@ 2009-01-16 16:56 Andreas Klein
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Klein @ 2009-01-16 16:56 UTC (permalink / raw
To: Gentoo Mailing Liste
Ok Leute,
hab's hinbekommen, weiß nur leider nicht genau welcher der u.a. Befehle zum Erfolg geführt hat weil sich die geänderte uuid erst nach einem reboot aktualisiert hat. Meine Daten sind jedenfalls noch da. Folgendes hatte ich ausprobiert:
umount /dev/sda2
localhost andy # tune2fs -U random /dev/sda2
tune2fs 1.41.3 (12-Oct-2008)
localhost andy # ls -l /dev/disk/by-uuid/
insgesamt 0
lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
localhost andy # blkid /dev/sda1
/dev/sda1: UUID="47aff456-d0b2-4e2b-bfcf-3337ea462d8f" TYPE="ext3" SEC_TYPE="ext2"
localhost andy # tune2fs -U time /dev/sda2
tune2fs 1.41.3 (12-Oct-2008)
localhost andy # ls -l /dev/disk/by-uuid/
insgesamt 0
lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
localhost andy # uuidgen -r /dev/sda2
31c32de2-0e2d-4cf4-8a4e-a3f740678632
localhost andy # ls -l /dev/disk/by-uuid/
insgesamt 0
lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
localhost andy # tune2fs -U random /dev/sda2
tune2fs 1.41.3 (12-Oct-2008)
localhost andy # ls -l /dev/disk/by-uuid/
insgesamt 0
lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
localhost andy #
Reboot tut Gut: (In Ermangelung besseren Wissens)
ls -l /dev/disk/by-uuid/
insgesamt 0
lrwxrwxrwx 1 root root 10 16. Jan 17:45 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
lrwxrwxrwx 1 root root 10 16. Jan 17:45 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
lrwxrwxrwx 1 root root 10 16. Jan 17:45 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
lrwxrwxrwx 1 root root 10 16. Jan 17:45 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda1
lrwxrwxrwx 1 root root 10 16. Jan 17:45 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
lrwxrwxrwx 1 root root 10 16. Jan 17:45 8244d90b-1641-4b60-982e-5318bfe937f9 -> ../../sda2
lrwxrwxrwx 1 root root 10 16. Jan 17:45 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
lrwxrwxrwx 1 root root 10 16. Jan 17:45 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
localhost andy #
Geschafft, wie ihr seht ist die UUID von sda2 nun anders als vorher. So, und nun trag ich dass mal hübsch in meine fstab ein...
Bis denne,
Andy.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-16 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16 16:56 [gentoo-user-de] UUID - eindeutig zweideutig Andreas Klein
-- strict thread matches above, loose matches on Subject: below --
2009-01-16 16:18 Andreas Klein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox