I have a HP computer and installed Ubuntu on it. I followed all the installation procedures as shown on the Ubuntu website. I installed it in order to dual boot into Windows 10. Now, my computer boots directly to Ubuntu. It does not even show the grub menu. I can get to see the grub menu only if I restart the computer while holding the "Windows" and shift key down. When I see the grub menu by using the shift key method, I see the following message when I choose Windows:
error:can't find the command 'drivemap'. error: invalid EFI file path Press any key to continue...
Due to some confusion in the installation instructions, I might have made a small error during the installation of Ubuntu and might have mistakenly created an extra EFI partition.
a) I looking to fix this dual boot issue. b) I am also fine if you can tell me how to delete Ubuntu and go back to using windows. ( I dont have any sort of windows installation CD or USB.
I did this for now: sudo gedit /etc/grub.d/40_custom Then added the following in 40_custom...
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "WINDOWS10 (on /dev/sda5)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root defca89a-1c4c-4e17-a2wf- fdp6c15bd69q
drivemap -s (hd0) ${root}
chainloader +1
}
Thank you