I had a dual boot installation (Ubuntu 14 LTS and Windows 8.1). Then I wiped the hard drive partition that Ubuntu was installed on. After that the grub bootloader was still there when I turned my computer on. Today I merged, wiped, and formatted some partitions and when the pc tried to boot it displayed the grub rescue command line. I searched online for help but the Is command doesn't work. Can you please help me?
3 Answers
If you're just sticking with Windows, I would recommend making a usb boot disk to boot into windows and restore the boot partition. I would recommend the same with Linux if you are keeping that.
Well, I would NEVER recommend to delete any GRUB files. After you install Ubuntu, GRUB will be set as default. When you formatted those partitions, you removed essential GRUB files. First you need to know if the vmlinuz file is still in that partition.
On grub rescue prompt, type:
find vmlinuz
And then press ENTER.
If this file is still there, then after you run the command above something like (hd0,0) will be prompted. If it was deleted, some error message will appear.
Please post what happened after these instructions.
NOTE: There is a faster way to boot directly into Windows, but you will have to make this process every time you want to boot, and this may be very annoying. First you need to know two things:
1) How many HDs do you have? If the answer is 2 or more, you need to know in which HD Windows is.
2) How many partitions do you have in you Windows HD? You need to know in what partition Windows is.
Then you can run these commands in grub rescue:
root (hdx,y)
Replacing x with your Windows HD number (Important: in the grub rescue language, HD1 = hd0, then if your HD number is 3, you will type hd2) and replacing y with your Windows partition number.
makeactive
chainloader +1
boot
This should work to boot Windows, but, as I already said, it is not a definitive solution.
- 5,876
- 3
- 20
- 33