[Eisfair] Wechsel des Bootloaders

Marcus Röckrath marcus.roeckrath at gmx.de
So Mai 16 09:22:15 CEST 2021


Hallo Nelson,

Nelson Matias wrote:

> Was sind das dann für UUIDs im erweiterten Modus?
> 
> eis # fdisk /dev/sdb
> 
> Welcome to fdisk (util-linux 2.34).
> Changes will remain in memory only, until you decide to write them.
> Be careful before using the write command.
> 
> Command (m for help): x
> 
> Expert command (m for help): p
> 
> 
> Device       Start       End   Sectors Type-UUID
>    UUID                                 Name Attrs
> /dev/sdb3  8587264 936577023 927989760
> 0FC63DAF-8483-4772-8E79-3D69D8477DE4
> F85540C3-2F88-4B36-8E8C-78B306C31271 root
> 
> eis # blkid
> 
> /dev/sdb3: UUID="9224a1cc-fbc8-4767-a76f-719f0894b4ce" TYPE="ext4"
> PARTLABEL="root" PARTUUID="f85540c3-2f88-4b36-8e8c-78b306c31271"
> 
> Wenn ich das richtig lese sind das die gleichen PARTUUID.
> 
> eis # ls -la /dev/disk/by-uuid
> total 0
> lrwxrwxrwx 1 root root  10 May 15 20:45
> 9224a1cc-fbc8-4767-a76f-719f0894b4ce -> ../../sdb3
> 
> Aber hier werden die Type-UUID verwendet. Das verstehe ich jetzt nicht.

Bin ich blind? Die UUID aus blkid taucht doch im fdisk überhaupt nicht auf.

Du brauchst aus der blkid-Ausgabe die UUID nicht die PARTUUID:

eis # blkid /dev/sda3
/dev/sda3: UUID="766b01c2-d5e3-4129-979d-f8e5e2558ae4" TYPE="ext3"
PARTUUID="10a3ad76-03"

eis # ls -l /dev/disk/by-uuid/
lrwxrwxrwx 1 root root 10 May 13 09:31 766b01c2-d5e3-4129-979d-f8e5e2558ae4
-> ../../sda3

eis # cat /boot/extlinux/extlinux.conf 
    APPEND root=UUID=766b01c2-d5e3-4129-979d-f8e5e2558ae4 raid=noautodetect
net.ifnames=1 consolebla

>     APPEND root=UUID=9224a1cc-fbc8-4767-a76f-719f0894b4ce

Genau die.

> Was passiert eigentlich, wenn ich 2 Platten im System habe mit gleichen
> UUIDs? Gibt es dann nur einen link in /dev/disk/by-uuid?

IMHO kann das nur Ärger machen. Der Link wird auf die zuletzt erkannte
Platte verweisen.

-- 
Gruß Marcus
[eisfair-Team]


Mehr Informationen über die Mailingliste Eisfair