0

Recently, I bought a 250GB Samsung 840 EVO SSD. I wanted to migrate my system to it, so I copied my / and swap partition to it and ran boot-repair. The program told me I was in EFI mode so I made an EFI partition at the start of the disk and put the boot flag on it. I ran boot-repair again and this time it completed successfully. But when I rebooted and selected the SSD to boot from, my BIOS says:

This is not a bootable disk. Please insert a bootable floppy and press any key to try again ...

Then when I press a key I get:

error: no such partition.
Entering rescue mode...
grub rescue>

Sigh. How can I get my PC into a usable state, booting from the SSD?

Additional information: The live USB does not seem to want to boot besides in UEFI mode. My boot info script is at http://www.paste.ubuntu.com/9436761

Richard
  • 8,588

2 Answers2

0

Have you been booting UEFI before? In that case copy contents of the old EFI System Partition (ESP) to the SSD's ESP, and re-register the bootloader with efibootmgr, else install GRUB to the ESP (note that you need to have at least the grub-efi-amd64-bin package isntalled). Both should give you a ubuntu labeled entry in the firmware (aka BIOS) boot order that boots Ubuntu.

If that however does not work, then please try this: UEFI machine doesn't boot Ubuntu through NVRAM bootcatalog. How to fix?

Please also check the boot order, to determine how you ended up in grub rescue mode after pressing a key (is the old drive still conneced or something else?).

LiveWireBT
  • 29,597
0

Solved. I installed Ubuntu on the HDD, booted there and ran sudo update-grub. Now it works like a charm and I have an extra Ubuntu installation of I need one, or I can delete it if I want to.

Richard
  • 8,588