Gentoo Archives: gentoo-user-de

From: Andreas Klein <randy-andy-@×××.de>
To: Gentoo Mailing Liste <gentoo-user-de@l.g.o>
Subject: [gentoo-user-de] UUID - eindeutig zweideutig
Date: Fri, 16 Jan 2009 16:27:13
Message-Id: 200901161718.11745.randy-andy-@web.de
1 Hallöle,
2
3 Von wegen die uuid ist unique, ich hab das Problem das beim mir /dev/sda1 und sda2 die gleiche uuid tragen!
4
5 Musste daher meine fstab zumindest für diese beiden partitionen wieder auf /dev Benennung umstellen, da sonsten beide auf die gleichen Verzeichnisse gemounted wurden.
6 Kurioserweise zeigt ein #ls -l /dev/disk/by-uuid die erste partition /dev/sda1 überhaupt nicht an - wieso nicht?
7 #ls -l /dev/disk/by-id listet sie dagegen auf
8 Mittels # blkid /dev/sda1 bekomme ich sie dann endlich doch noch angezeigt und kann dadurch feststellen dass sda1, sda2 die gleiche uuid haben!
9
10 Seht selbst:
11
12 localhost andy # ls -l /dev/disk/by-uuid/
13 insgesamt 0
14 lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
15 lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
16 lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
17 lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
18 lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
19 lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
20 lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
21 localhost andy # blkid /dev/sda1
22 /dev/sda1: UUID="47aff456-d0b2-4e2b-bfcf-3337ea462d8f" TYPE="ext3" SEC_TYPE="ext2"
23 localhost andy # blkid /dev/sda2
24 /dev/sda2: UUID="47aff456-d0b2-4e2b-bfcf-3337ea462d8f" TYPE="ext3" SEC_TYPE="ext2"
25 localhost andy #
26
27 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?
28 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.
29 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.
30 Bitte erleuchtet mich, denn ich wandele im Tal der Dunkelheit... :-)
31
32 Gruß, Andy.
33
34 P.S. wen auch das noch zum Vergleich interessiert:
35
36 localhost andy # ls -l /dev/disk/by-id
37 insgesamt 0
38 lrwxrwxrwx 1 root root 9 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4302932 -> ../../sdb
39 lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4302932-part1 -> ../../sdb1
40 lrwxrwxrwx 1 root root 9 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035 -> ../../sda
41 lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035-part1 -> ../../sda1
42 lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035-part2 -> ../../sda2
43 lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035-part3 -> ../../sda3
44 lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-07TMA0_WD-WCAPW4540035-part4 -> ../../sda4
45 lrwxrwxrwx 1 root root 9 16. Jan 14:46 ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW4091121 -> ../../sdc
46 lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW4091121-part1 -> ../../sdc1
47 lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW4091121-part2 -> ../../sdc2
48 lrwxrwxrwx 1 root root 10 16. Jan 14:46 ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW4091121-part3 -> ../../sdc3
49 lrwxrwxrwx 1 root root 9 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4091121 -> ../../sdc
50 lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4091121-part1 -> ../../sdc1
51 lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4091121-part2 -> ../../sdc2
52 lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4091121-part3 -> ../../sdc3
53 lrwxrwxrwx 1 root root 9 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4302932 -> ../../sdb
54 lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4302932-part1 -> ../../sdb1
55 lrwxrwxrwx 1 root root 9 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035 -> ../../sda
56 lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035-part1 -> ../../sda1
57 lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035-part2 -> ../../sda2
58 lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035-part3 -> ../../sda3
59 lrwxrwxrwx 1 root root 10 16. Jan 14:46 scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW4540035-part4 -> ../../sda4
60 lrwxrwxrwx 1 root root 9 16. Jan 14:46 usb-Generic_2.0_Reader_-0_070112015146000745-0:0 -> ../../sdd
61 localhost andy #