Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was running two separate partitions of Linux (Ubuntu and Linux Mint) and Windows XP when I deleted my Ubuntu partition through Easus partition manager on XP due to simple stupidity. This erased my Grub bootloader, but I managed to install Grub Legacy from my Linux Mint Live CD. However, I cannot access my XP partition, and when I try to update GRUB boot-loader through Linux Mint, I receive an error message. I cannot perform a clean install, so I need to know how can I fix my GRUB Boot-loader through Linux Mint, so that it can recognize my Windows XP partition.

share|improve this question
    
do you have a live cd or usb? –  Sam Nov 9 '12 at 1:59
    
I have a live cd. –  Mark Savage Nov 24 '12 at 18:06
add comment

2 Answers

I'd recommend you to use "boot-repair" which is a graphical program that lets you repair most grub-related issues such as yours.

Check out this guide on how to install it and use it to fix your bootloader. Although this guide is for ubuntu, Mint is based and completely compatible with ubuntu, so you are safe to follow that guide.

https://help.ubuntu.com/community/Boot-Repair#A2nd_option_:_install_Boot-Repair_in_Ubuntu

make sure to select your drive and your mint partition as your drive/boot partition

share|improve this answer
    
Thank you Sam for answering my question, but I have a problem when using Boot Repair. The error reads, "Please enable a repository containing the [grub2] packages in the software sources of The OS now in use - Linux Mint 13 Maya (sda5). Then try again." How can I solve this? –  Mark Savage Nov 24 '12 at 18:06
    
do you have internet connection when doing that? –  Sam Nov 24 '12 at 21:39
    
Yes, I do have an internet connection while using boot repair. –  Mark Savage Nov 25 '12 at 23:02
    
try to execute "sudo apt-get update" to update the repos list before running boot-repair –  Sam Nov 26 '12 at 1:17
add comment

Boot from a Ubuntu live CD/DVD/USB or whatever, open a command line, and run the command sudo grub-install /dev/sda (if you don't want GRUB on your primary hard drive, change sda to whichever hard drive you want it installed on). In your case, it should be sda

Source

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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