File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes boot back to Linux after reinstall windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "boot back to Linux after reinstall windows" Watch "boot back to Linux after reinstall windows" New topic

boot back to Linux after reinstall windows

Alex Leung

Joined: Dec 08, 2003
Posts: 26
Hi, this is not the first time I have done this, but I didn't manage to solve the problem. This is the situation:
-In my computer I have Windows XP installed first,
-Then I install Linux 8.1,
-Everything is fine, since Linux created a boot option for windows xp after installation, so both linux and windows boot option appear if restart the computer.
-Recently I have to reinstall windows due to potential worm or virus exist in my windows. then after the installation of windows, linux boot option disappear, restarting the computer will go straight to windows xp, leaving no trace going into linux that's previous installed.
I wonder how to get back to linux? without reinstalling linux again?
Thank you.
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
Your window wipe out matser boot record on your box. Do you have a rescue disk sitting somewhere? If you use lilo, you can boot into linux with the rescue disk, and rerun lilo command to load master boord record.
Note: this can be very dangerous, potential wipe out your window and linux box. Make sure you read as many documentation as you can.
Greg Karpov

Joined: Feb 16, 2002
Posts: 24
I guess that you can also boot off your Linux installation CD and choose something like rescue mode and fix your MBR.Anyway, if you can afford reinstalling your systems from scratch, I'd recommend you to repartition your drive and create small /boot partition ( 25 - 150 Mb) at the beginning of your
disk and make it active with fdisk - you'll be able to reinstall Windows as many times as you want without any troubles as your Linux bootloader (Lilo or Grub) won't be in the MBR anymore.
If you still have troubles with your installation, please write more info - what Linux distro you use - 8.1 doesn't tells much - is it Mandrake 8.1 or SuSE 8.1 or something else, which bootloader, e.t.c - I'll try to help.Also you might find useful the forum at:
Good luck!
Alex Leung

Joined: Dec 08, 2003
Posts: 26
Thanks for the comments, I will try these ideas. I am using Red Hat 8.1, If I get stuck I will ask again. Cheers.
I agree. Here's the link:
subject: boot back to Linux after reinstall windows
It's not a secret anymore!