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 17:05:54
Message-Id: 200901161756.52876.randy-andy-@web.de
1 Ok Leute,
2
3 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:
4
5 umount /dev/sda2
6 localhost andy # tune2fs -U random /dev/sda2
7 tune2fs 1.41.3 (12-Oct-2008)
8 localhost andy # ls -l /dev/disk/by-uuid/
9 insgesamt 0
10 lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
11 lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
12 lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
13 lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
14 lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
15 lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
16 lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
17 localhost andy # blkid /dev/sda1
18 /dev/sda1: UUID="47aff456-d0b2-4e2b-bfcf-3337ea462d8f" TYPE="ext3" SEC_TYPE="ext2"
19 localhost andy # tune2fs -U time /dev/sda2
20 tune2fs 1.41.3 (12-Oct-2008)
21 localhost andy # ls -l /dev/disk/by-uuid/
22 insgesamt 0
23 lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
24 lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
25 lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
26 lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
27 lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
28 lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
29 lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
30 localhost andy # uuidgen -r /dev/sda2
31 31c32de2-0e2d-4cf4-8a4e-a3f740678632
32 localhost andy # ls -l /dev/disk/by-uuid/
33 insgesamt 0
34 lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
35 lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
36 lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
37 lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
38 lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
39 lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
40 lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
41 localhost andy # tune2fs -U random /dev/sda2
42 tune2fs 1.41.3 (12-Oct-2008)
43 localhost andy # ls -l /dev/disk/by-uuid/
44 insgesamt 0
45 lrwxrwxrwx 1 root root 10 16. Jan 14:46 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
46 lrwxrwxrwx 1 root root 10 16. Jan 14:46 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
47 lrwxrwxrwx 1 root root 10 16. Jan 14:46 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
48 lrwxrwxrwx 1 root root 10 16. Jan 14:46 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda2
49 lrwxrwxrwx 1 root root 10 16. Jan 14:46 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
50 lrwxrwxrwx 1 root root 10 16. Jan 14:46 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
51 lrwxrwxrwx 1 root root 10 16. Jan 14:46 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
52 localhost andy #
53
54
55 Reboot tut Gut: (In Ermangelung besseren Wissens)
56
57 ls -l /dev/disk/by-uuid/
58 insgesamt 0
59 lrwxrwxrwx 1 root root 10 16. Jan 17:45 151fff84-9510-4c4c-ae5c-7bf2fd96b77a -> ../../sda3
60 lrwxrwxrwx 1 root root 10 16. Jan 17:45 19ff7453-4ce0-4822-b55a-b350caec751a -> ../../sda4
61 lrwxrwxrwx 1 root root 10 16. Jan 17:45 460140b6-ee6c-4f46-ac1f-2ca10d1a3d71 -> ../../sdc3
62 lrwxrwxrwx 1 root root 10 16. Jan 17:45 47aff456-d0b2-4e2b-bfcf-3337ea462d8f -> ../../sda1
63 lrwxrwxrwx 1 root root 10 16. Jan 17:45 62107dc0-2e38-41e6-b95d-b60b0b4b119c -> ../../sdc1
64 lrwxrwxrwx 1 root root 10 16. Jan 17:45 8244d90b-1641-4b60-982e-5318bfe937f9 -> ../../sda2
65 lrwxrwxrwx 1 root root 10 16. Jan 17:45 be1bf13c-accb-4d11-b409-ca7af349f4fb -> ../../sdc2
66 lrwxrwxrwx 1 root root 10 16. Jan 17:45 d894c28e-61b1-47a2-b009-e68ac3a6ea48 -> ../../sdb1
67 localhost andy #
68
69 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...
70
71 Bis denne,
72 Andy.