I had HDD where I had Ubuntu 18.04 installed and I installed Ubuntu 19.10 on M2 ssd. everything was working perfectly. I planned to replace HDD with another m.2 SSD. I did. after that when i booted my laptop it can't boot GRUB bootloader. so my guess is that, GRUB was installed in that HDD Which i replaced. so what is the solution? should i replace old hdd and do something to install grub in my m.2 ssd?
Asked
Active
Viewed 180 times
1 Answers
1
Return the HDD with the original GRUB bootloader.
Once it boots again, find its location, typically in the ESP if your PC uses UEFI; if not, typically it is in the MBR.
To confirm, open a terminal and run sudo lsblk /dev/sda and repeat for every other drive device on the system. The partition with /boot or /boot/efi is where the bootloader is now.
Now, run sudo grub-install /dev/sdX where sdX is the SSD you want to have GRUB live on. Some SSDs aren't named with the sd convention; that's why we check first, as some have names starting with nvm . For more detail, see http://manpages.ubuntu.com/manpages/bionic/man8/grub-install.8.html
K7AAY
- 17,705