Grub bootloader overwritten by WinXP bootloader, all other os' gone!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Grub bootloader overwritten by WinXP bootloader, all other os' gone!
I originally had Windows Vista installed multibooted with Ubuntu.
I was using grub as provided in the Ubuntu installation. It was working fine and gave me the option to choose my linux partition, vista, or vista recovery partition everytime I booted. But today I installed XP, which I found out due to a software compatability issue I had to have! After installing XP, it overwrote? the grub bootloader. Now, when I start my computer it loads directly into XP without giving me option to boot to Vista or Ubuntu. I need major help! I have to get back to my Vista partition at the least. Is their anyway I can re-install grub? or what is the best route?
Thanks!
First, I would update XP so it will support the newer NTFS. Thatway when you do get to boot Vista (and your XP drive is upgraded to the latest NTFS) XP will still be usable afterwards. Then dig out your Vista disk and restore the Vista boot sector and add XP to your boot.ini file in Vista. AFTER you have done all that then you should be able to restore your Grub using your Ubuntu CD or a SuperGrub disk.
I originally had Windows Vista installed multibooted with Ubuntu.
I was using grub as provided in the Ubuntu installation. It was working fine and gave me the option to choose my linux partition, vista, or vista recovery partition everytime I booted. But today I installed XP, which I found out due to a software compatability issue I had to have! After installing XP, it overwrote? the grub bootloader. Now, when I start my computer it loads directly into XP without giving me option to boot to Vista or Ubuntu. I need major help! I have to get back to my Vista partition at the least. Is their anyway I can re-install grub? or what is the best route?
Thanks!
Grub can be easily re-installed. Boot in using live cd. Check out the following link for further actions.....
Thanks so much guys for the quick replies!
CRTS: I used your link to re-install grub(which it did). I rebooted my computer and it showed me grub just as before I had install XP. I scrolled down and clicked on Vista which directed me back to the Windows XP bootloader. NO! But, also, since I now have Grub re-installed I also have access to my Vista Recovery Partition, and PRASIE THE LORD!!, that resotred the link from Grub to my Vista partition. YAY! Now the only other thing I need to figure out how to do is how to add Windows XP entry into grub. Thanks so much for yall's help!
There should be an example of windows XP in the config files (commented out).
In the future its always better to install Windows first and then Linux.
But if you did it the other way, its also possible to use the windows boot manager to load up xp, vista, or linux. just need to edit the windows loader, not sure about vista but i'm pretty sure its in msconfig with out re-installing grub.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.