0

I currently have a Windows 10 - Ubuntu 14.04.3 Dual boot on my PC. The other day I was creating a partition using Disk management from Windows, and then the software crashed. I had to force shut down and when I restarted, what is see is something in the lines No partition found and a grub rescue prompt.

So, I check for a solution online, and finally found one. It said that I should direct the grub rescue to the grub file in my Ubuntu partition and gave me some steps. So I followed. This is what I do to get to the boot loader now:

set root=(hd0,msdos6)
set prefix=(hd0,msdos6)/boot/grub/
insmod normal
normal

The problem now is: I have to do this every goddamn time I turn on this thing. How should I command grub rescue to automatically find the file like it normally does?

David Foerster
  • 36,264
  • 56
  • 94
  • 147

1 Answers1

2

Option 1:

Try running sudo update-grub. If that does not fix the problem, then try option 2:

Option 2:

  1. Create a file /etc/grub.d/windows10_custom
menuentry "Windows 10" {
set root=(hd0,msdos6)
set prefix=(hd0,msdos6)/boot/grub/
insmod normal
normal
}
  1. Run sudo update-grub

References

Ubuntu's guide to building custom menus for grub 2

Kenpachi
  • 1,223