0

I was running a dual-booted Ubuntu/Windows 8.1 PC. I deleted my Ubuntu partition so I could install Arch, but in doing so I also accidentally messed up Grub and deleted my Windows EFI partition. I spent some time trying to restore the EFI partition, but I'm wondering if I could fix all of this by reinstalling Grub. Is reinstalling Ubuntu the easiest way to fix this? I can't reformat the drive because I have important work there that I can't lose.

I'm at school right now so I won't be able to post any logs until around 3:30 CST. Any advice would be greatly appreciated.

Edit: My problem extends beyond deleting Ubuntu. I accidentally messed up my windows filesystem and now it won't boot. It starts up and says there is no OS. I believe the best way to fix this would be to reinstall Grub but I need some confirmation of this.

  • have yo tried this question171722 – Ravan Aug 21 '15 at 14:48
  • 2
    possible duplicate of How to remove Ubuntu and put Windows back on? – mikewhatever Aug 21 '15 at 14:53
  • Restoring Grub will not fix Windows issues. And grub just chain loads to the Windows boot files in the ESP - efi system partition, so those files must exist. Normally if Windows files deleted you can use your Windows repair flash drive or installer to repair/replace them. And if UEFI, you must have the ESP as a FAT32 formatted partition and with boot flag if creating with gparted. – oldfred Aug 21 '15 at 15:07
  • @oldfred I've been trying to restore the efi partition. My issue is whenever I try to add boot files there is an error about the files not being able to transfer (I'll find the specific error when I get home). I've been attempting a repair with my windows 8.1 install disk through the command line. From the forums I've read if I can fix that boot partition then it should work, but I can't fix the partition. – hawkman561 Aug 21 '15 at 19:52
  • You can try chkdsk on the FAT32 partition if you are in Windows or sudo fsck -t vfat /dev/sda1 if in Ubuntu. If sda2 change command to correct partition. If neither work you can backup, delete, recreate with gparted as FAT32 and add boot flag to make it the ESP again. Then restore all efi boot folders. – oldfred Aug 21 '15 at 19:56
1

Install Ubuntu again using bootable USB.

Check this link or link

0

Plug in a windows bootable pendrive or CD and then select the repair after you click the next then go to troubleshoot and then there will be an option for choosing command, go to command and type this: bootrec.exe/fixmbr press enter then it will show successful and then type : exit then start the windows.... Hope this works, cause mind does for the same problem i faced.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.