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?
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
Press Ctrl-Alt-F1 then you need to login as root. Type nano fix.sh and enter
Then save it and type
sh fix.sh