Grub trouble after installing on external SSD
by captain rob from LinuxQuestions.org on (#5K1C8)
I installed Bodhi (Ubuntu) with live USB stick on my external SSD. During installation I didn't click on the partitions related to the partitions of the SSD on my my laptop. And I have no Windows.
What happened is that now my laptop cannot boot anymore. It complains very quick about boot order and shows only GRUB minimal bash. To my surprise i see when I bootup the external SSD a grub menu which allow me also to bootup the laptop.
I tried after booting into my laptop to update-grub and grub-install /dev/sdb but no success.
Boot-repair tool also didn't help.
Than I tried with the live USB disk these commands:
sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot/efi
sudo grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu --target=x86_64-efi --efi-directory=/mnt/boot/efi
But than I get an error /usr/lib/grub/x86-64-efi/modinfo.sh doesn't exist. However this file exist.
Booted into laptop harddisk via de external harddisk:
rob@Z1401:~$ No BootOrder is set; firmware will attempt recovery
lsblk -o +PARTUUID
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT PARTUUID
loop0 7:0 0 32.1M 1 loop /snap/snap
loop1 7:1 0 162.9M 1 loop /snap/gnom
loop2 7:2 0 301.1M 1 loop /snap/tele
loop3 7:3 0 55.4M 1 loop /snap/core
loop4 7:4 0 32.1M 1 loop /snap/snap
loop5 7:5 0 80M 1 loop /snap/iced
loop6 7:6 0 55.5M 1 loop /snap/core
loop7 7:7 0 65.1M 1 loop /snap/gtk-
loop8 7:8 0 64.8M 1 loop /snap/gtk-
loop9 7:9 0 61.7M 1 loop /snap/core
sda 8:0 0 447.1G 0 disk
Booted into external SSD disk gives these results:
rob@Rob-Z1401:~$ sudo efibootmgr -v No BootOrder is set; firmware will attempt recovery
rob@Rob-Z1401:~$ lsblk -o +PARTUUID
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT PARTUUID sda 8:0 0 447.1G 0 disk sda1 8:1 0 512M 0 part /boot/efi 06d8ebaa-9738-4dc2-83d0-e8749d2f1241 sda2 8:2 0 446.6G 0 part ddb55d34-58c4-4684-a5f0-d98e63833648 sdb 8:16 0 931.5G 0 disk sdb1 8:17 0 487M 0 part 36147f65-c662-499d-b7cd-0c34028d02e3 sdb2 8:18 0 3.8G 0 part [SWAP] 87304a62-7722-4652-8e18-4ffe9d60d650 sdb3 8:19 0 57.2G 0 part / 23a5a8c9-b0a5-4dfb-b9e4-a78a6bec8d12 sdb4 8:20 0 870G 0 part /home cd350b6c-086b-4ca1-803c-2b4b284a1d0a sr0 11:0 1 1024M 0 rom
What happened is that now my laptop cannot boot anymore. It complains very quick about boot order and shows only GRUB minimal bash. To my surprise i see when I bootup the external SSD a grub menu which allow me also to bootup the laptop.
I tried after booting into my laptop to update-grub and grub-install /dev/sdb but no success.
Boot-repair tool also didn't help.
Than I tried with the live USB disk these commands:
sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot/efi
sudo grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu --target=x86_64-efi --efi-directory=/mnt/boot/efi
But than I get an error /usr/lib/grub/x86-64-efi/modinfo.sh doesn't exist. However this file exist.
Booted into laptop harddisk via de external harddisk:
rob@Z1401:~$ No BootOrder is set; firmware will attempt recovery
lsblk -o +PARTUUID
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT PARTUUID
loop0 7:0 0 32.1M 1 loop /snap/snap
loop1 7:1 0 162.9M 1 loop /snap/gnom
loop2 7:2 0 301.1M 1 loop /snap/tele
loop3 7:3 0 55.4M 1 loop /snap/core
loop4 7:4 0 32.1M 1 loop /snap/snap
loop5 7:5 0 80M 1 loop /snap/iced
loop6 7:6 0 55.5M 1 loop /snap/core
loop7 7:7 0 65.1M 1 loop /snap/gtk-
loop8 7:8 0 64.8M 1 loop /snap/gtk-
loop9 7:9 0 61.7M 1 loop /snap/core
sda 8:0 0 447.1G 0 disk
Booted into external SSD disk gives these results:
rob@Rob-Z1401:~$ sudo efibootmgr -v No BootOrder is set; firmware will attempt recovery
rob@Rob-Z1401:~$ lsblk -o +PARTUUID
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT PARTUUID sda 8:0 0 447.1G 0 disk sda1 8:1 0 512M 0 part /boot/efi 06d8ebaa-9738-4dc2-83d0-e8749d2f1241 sda2 8:2 0 446.6G 0 part ddb55d34-58c4-4684-a5f0-d98e63833648 sdb 8:16 0 931.5G 0 disk sdb1 8:17 0 487M 0 part 36147f65-c662-499d-b7cd-0c34028d02e3 sdb2 8:18 0 3.8G 0 part [SWAP] 87304a62-7722-4652-8e18-4ffe9d60d650 sdb3 8:19 0 57.2G 0 part / 23a5a8c9-b0a5-4dfb-b9e4-a78a6bec8d12 sdb4 8:20 0 870G 0 part /home cd350b6c-086b-4ca1-803c-2b4b284a1d0a sr0 11:0 1 1024M 0 rom