GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
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.
Now I am running two os on my computer. And I use lilo.
And my windows has more and more problems recently.
I want to reinstall my windows xp, so I would like to know what will happen after that, what I need to do for booting these two os again after reinstalling windows.
I have no experience with dual booting with XP, but with the older Windows OS's it was enough to have a linux-bootdisk, boot with it after installing Windows, mount the linux partition (if your bootdisk didn't do that allready) and run lilo.
Test the procedure before reinstalling windows... just to make sure.
Windows will replace your MBR (where lilo is probably stored) for sure. You have two possibilities then.
First is to do what MarsDude wrote in previous reply. (very simple and effective )
Second (little bit more complicated, but possible) is to use windows boot manager to boot both OSs. But you have to prepare for this before reinstalling windows. You should move lilo from MBR to root partition and save bootsector of your root partition to a file (using dd) and store it somewhere (e.g. on floppy). Then after windows reinstallation it is possible to configure windows boot manager to boot your linux using that stored file.
BTW, using this procedure you can boot any OS using windows boot manager. As alternative to dd on linux, you could use dskprobe.exe on windows to save bootsector.
Sorry, I forgot to say that I don't have a floppy drive on my computer.
brm, for your second option, what is windows boot manager?
Also, is there any way that I can boot to my linux after reinstallation without using floppy? For example, make a bootable CD rather than disk so that I can boot my machine.
Sorry, I forgot to say that I don't have a floppy drive on my computer.
Floppy was meant as an example. You can store it anywhere else. Only condition is, that this file must be available somewhere after your windows reinstallation. Anyway, if you use dskprobe.exe (should be part of windows support tools or can be downloaded from internet), you don't have any problem.
Quote:
brm, for your second option, what is windows boot manager?
Well, I am not sure, whether there is something really named "windows boot manager". Windows also has something like lilo to boot OS. And it can be configured to boot anything else. There is file boot.ini on your C: partition (it is hidden file). This file contains configuration of "windows boot manager".
If you are really interested in this option, I can write more details. But it is probably easier to configure lilo or grub (especially if you often do some changes). Using lilo or grub you don't need to save bootsector to file or do any similar strange things
oops, I thought it was ok, but now I have reinstalled my windows already, and I use slackware cd 2 to boot the computer, and I mount my file system to a folder, however, it is probably I boot from a dvd rom and when I run lilo, I have error, something like I can't write to the disk(dvd rom), the system will treat my current file system as dvd rom. Any idea how I can fix the mbr?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.