0

Did a fresh install of 18.04 alongside Windows 10 (UEFI). Now my system boots only into grub2 commandline.

I am able to boot into both windows by executing

chainloader **(hd0,gpt1)**/efi/Microsoft/bootmfgw.efi

and ubuntu by executing

set prefix=(hd0,gpt6)/boot/grub
set root=**(hd0,gpt6)**
insmod linux
insmod normal
normal

I ran grub-install, boot repair several times after booting into ubuntu, but to no effect. I still keep booting into grub commandline.

Any help is appreciated. Boot repair pastebin - http://paste.ubuntu.com/p/64X9XmshBJ

Screenshot of gparted:

enter image description here

I have tried these, and it did not work:

  • grub-install with grub-efi-amd4

  • grub install from live usb

  • boot-repair from live usb or ubuntu

  • fresh install of 18.04 again lands in grub manual

1 Answers1

0

When using windows 10 on sda3 and you install and boot ubuntu 18.04

sudo blkid
 (read uuid from /dev/sda3, used below as uuid_read_above)

sudo nano /etc/default/grub
 (add line to the end of the file:)
    GRUB_PRELOAD_MODULES="part_msdos"
sudo update-grub

sudo nano /etc/grub.d/40_custom
 (add these lines to the end of the file:)
    menuentry "Windows 10" {
     insmod ntfs
     set root='(hd0,3)'
     search --no-floppy --fs-uuid --set uuid_read_above
     ntldr /bootmgr
     chainloader +1     
    }
sudo update-grub

sudo grub-install /dev/sda
sudo update-grub

exit and boot from hdd, should see menu with "Windows 10"