2

I had one drive with Windows 8.1, Ubuntu 15.10 and Ubuntu 14.04. The windows was installed on different partition.

Then, I connect a SSD drive and install Windows 10 and format the Windows 8.1 partition. I have a USB with Ubuntu installation.

Could anyone tell what should I do in order to get the grub menu back and be able to choose which operating system to start?

gotqn
  • 2,077
  • 7
  • 30
  • 38

2 Answers2

3

Basic procedure that I personally would use

1 Boot the Ubuntu Live CD.

2 Press Ctrl-Alt-F1

3 sudo mount /dev/sda1 /mnt

4 sudo mount --bind /dev /mnt/dev

5 sudo mount --bind /proc /mnt/proc

6 sudo mount --bind /sys /mnt/sys

7 sudo chroot /mnt

8 sudo grub-install /dev/sda1

0

Press Ctrl-Alt-F1 then you need to login as root. Type nano fix.sh and enter

sudo mount /dev/sda1 /mnt1

sudo mount --bind /dev /mnt1/dev

sudo mount --bind /proc /mnt1/proc

sudo mount --bind /sys /mnt1/sys

sudo chroot /mnt1

sudo grub-install /dev/sda1

Then save it and type sh fix.sh