Hej,
angeregt durch diesen thread habe ich auch mal experimentiert, mit erstaunlichem Resultat.
vorhandene EFI Installation auf einem Stick (sdd2, Cuttlefish)
Partition sdd2 verkleinert, 1:1 auf denselben Stick kopiert
UUID der Kopie geändert
/etc/fstab in der Kopie entsprechend angepaßt
blacktencate@t520-xx:~$ sudo blkid | grep 8294 [sudo] Passwort für blacktencate: /dev/sdd3: UUID="8294f06d-7ea2-41b3-b97e-c44f45add5e4" TYPE="ext4" PARTLABEL="Kopie" PARTUUID="032324a0-96c3-4e54-870b-b767c71f1ad5" blacktencate@t520-xx:~$ sudo blkid | grep fb4a /dev/sdd2: UUID="fb4ac3ba-50e4-486e-8a4e-16cfc911a1b9" TYPE="ext4" PARTUUID="533dac6a-1741-46b6-873c-bb2eadfe1fad" blacktencate@t520-xx:~$ cat /media/blacktencate/8294f06d-7ea2-41b3-b97e-c44f45add5e4/etc/fstab | grep UUID=82 UUID=8294f06d-7ea2-41b3-b97e-c44f45add5e4 / ext4 errors=remount-ro 0 1 blacktencate@t520-xx:~$ cat /media/blacktencate/fb4ac3ba-50e4-486e-8a4e-16cfc911a1b9/etc/fstab | grep UUID=fb UUID=fb4ac3ba-50e4-486e-8a4e-16cfc911a1b9 / ext4 errors=remount-ro 0 1 blacktencate@t520-xx:~$
Ein sudo update-grub
im System sdd2 erkennt auch das neu hinzugekommene auf sdd3,
A B E R schreibt
... menuentry 'Ubuntu 18.10 (18.10) (auf /dev/sdc3)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-8294f06d-7ea2-41b3-b97e-c44f45add5e4' { insmod part_gpt insmod ext2 set root='hd2,gpt3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt3 --hint-efi=hd2,gpt3 --hint-baremetal=ahci2,gpt3 8294f06d-7ea2-41b3-b97e-c44f45add5e4 else search --no-floppy --fs-uuid --set=root 8294f06d-7ea2-41b3-b97e-c44f45add5e4 fi linux /boot/vmlinuz-4.18.0-18-generic root=UUID=fb4ac3ba-50e4-486e-8a4e-16cfc911a1b9 ro quiet splash $vt_handoff initrd /boot/initrd.img-4.18.0-18-generic } ...
womit dann natürlich das System auf sdd2 gebootet wird *grrrr*
Erst ein 40_custom
... ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry 'Ubuntu 18.10 (18.10) (auf /dev/sdc3)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-8294f06d-7ea2-41b3-b97e-c44f45add5e4' { insmod part_gpt insmod ext2 set root='hd2,gpt3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt3 --hint-efi=hd2,gpt3 --hint-baremetal=ahci2,gpt3 8294f06d-7ea2-41b3-b97e-c44f45add5e4 else search --no-floppy --fs-uuid --set=root 8294f06d-7ea2-41b3-b97e-c44f45add5e4 fi linux /boot/vmlinuz-4.18.0-18-generic root=UUID=8294f06d-7ea2-41b3-b97e-c44f45add5e4 ro quiet splash $vt_handoff initrd /boot/initrd.img-4.18.0-18-generic } ### END /etc/grub.d/40_custom ### ...
mit entsprechend korrigierte UUID bootet dann auch das "richtige" System.
Habe ich da noch irgendwo einen Denkfehler? Oder ist os-prober
buggy?
Gruß black tencate