I deleted the partition responsible for boot loading to the OS. And going forward when I start my PC up it only loops. Is there any link or procedure that can help me recover the partition or re-install GRUB

  • What partition did you delete exactly? Do you still have /boot and does it still contain initrd.img* and vmlinuz* and initramfs* files? – terdon May 28 '14 at 12:08
  • @terdon i think he deleted a separate grub partition which contains .efi files. – Avinash Raj May 28 '14 at 12:09
  • @AvinashRaj yes, that's what I want to check. – terdon May 28 '14 at 12:10
  • The partition i deleted was linuxswap (i believe thats the name of the partition) – ryekayo May 28 '14 at 12:11
  • 1
    linux swap? don't worry about that. – Avinash Raj May 28 '14 at 12:13

There is a tool to repair GRUB. Here is its documentation : Boot-Repair

If you have delete your linux-swap partition, boot on a live-CD, open gparted (or install it with sudo apt-get install gparted and open it).

In gparted, recreate a partition (type linux-swap), apply, and reboot.

  • How big would you set this partition to? – ryekayo May 28 '14 at 12:42
  • Same size as your RAM size (I have 4GB of RAM, my swap size is 4GB) – Dremor May 28 '14 at 13:02

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.