0

I recently built myself a new computer, and I managed to extract the old HDD and SSD and put them into my new computer.

When I changed the BIOS settings to boot into Linux, it showed a correct grub screen.

However, it would not boot anything, including Windows, which I had previously confirmed worked on its own (It was complaining about my activation key, though).

I have a Live USB that I could boot into, and I first mounted my Ubuntu drive and chrooted into it. I then ran grub-mkconfig and update-grub, and now it won't even boot into grub.

Linux is on the HDD (/dev/sdb4), and windows is on the SSD (/dev/sdb?).

Can you help me get linux to boot? (eg. give me commands to run in order to restore grub?)

5
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Jun 20 at 16:14
  • Is the original dual-boot installation a UEFI or BIOS (inc. CSM/Legacy) setup? Your new computer is certainly UEFI. Linux can be easily changed from Legacy to UEFI mode. Windows must be re-installed. Commented Jun 20 at 17:50
  • ... and although many bootloader problems can be corrected from a live-session, the way you did it only makes things worse as you found out. From a live session you can chroot and then run commands. Commented Jun 20 at 18:21
  • @ChanganAuto I mounted my normal linux drive and then chrooted into it. Commented Jun 20 at 19:14
  • If so check all the other aforementioned situation and update your question accordingly. Commented Jun 20 at 19:14

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.