LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-29-2003, 09:32 AM   #1
fitzov
Member
 
Registered: Dec 2003
Distribution: debian, knoppix
Posts: 80

Rep: Reputation: 15
Question windows install after linux


hello,

I have set up a dual-boot system with lilo; mandrake 9.2/windows 2k. I just installed everything, and both systems are working fine. Now, I would like to wipe off 2K and install XP. I know that if I do this, the MBR will simply boot up windows and ignore linux. I would like to keep lilo as the boot-loader and simply add XP (and erase 2K) as an option after install. Does anyone have any experience with this?

Thanks.
 
Old 12-29-2003, 10:17 AM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
It ought to be as simple as modifying your /etc/lilo.conf and re-running LILO after you get XP installed. As long as you have a Linux boot CD, you should be able to mount your Linux drives to get access to everything you need (namely, /etc, /boot, and /sbin/lilo). You could also use a Linux rescue disk to boot your Linux install normally (I think by passing 'root=/dev/hdaX', with hdaX being the root partition of your Linux install), and then run LILO from there.
 
Old 12-29-2003, 10:31 AM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
I think that a slightly simpler way would be to just install the XP over the top of 2K, the XP install will overwrite your bootloader, but to get round that, you then just boot with the mandrake disc's (well the first one) and then when the option window opens to "enter for install, F1 (I think) for more options", then hit F1 and at the prompt type rescue, and follow the options to re-install LILO.

You can always modify the lilo.conf in the boot section of the mandrake control centre later i.e. make windows default if you want, change the label, etc etc

regards

John
 
Old 12-29-2003, 10:32 AM   #4
fitzov
Member
 
Registered: Dec 2003
Distribution: debian, knoppix
Posts: 80

Original Poster
Rep: Reputation: 15
well I hope it is that simple, but my understanding is that lilo is currently on the MBR (at least that is what I set when I installed linux), and XP will wipe it off MBR. In that case, editing (if it is even possible at that point) lilo.conf is like washing your car to make it run better.
 
Old 12-29-2003, 10:33 AM   #5
fitzov
Member
 
Registered: Dec 2003
Distribution: debian, knoppix
Posts: 80

Original Poster
Rep: Reputation: 15
post 4 is for post 2
 
Old 12-29-2003, 10:36 AM   #6
fitzov
Member
 
Registered: Dec 2003
Distribution: debian, knoppix
Posts: 80

Original Poster
Rep: Reputation: 15
thanks big john, I didn't know about the rescue/install lilo option. I'll give it a shot and then post an update.
 
Old 12-29-2003, 11:30 AM   #7
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Quote:
Originally posted by fitzov
well I hope it is that simple, but my understanding is that lilo is currently on the MBR (at least that is what I set when I installed linux), and XP will wipe it off MBR. In that case, editing (if it is even possible at that point) lilo.conf is like washing your car to make it run better.
Well, lilo.conf is only used when you actually run 'lilo'; it tells lilo where to find the boot images it needs, so it can properly situate itself in the MBR. After installing XP, the MBR will be overwritten as you know, but you will still have your Linux partition with lilo.conf and everything; all you have to do is get into it (using a boot or rescue disk) to run lilo again. The procedure that bigjohn suggests should work also; it just automates the procedure I suggested
 
Old 12-29-2003, 01:19 PM   #8
fitzov
Member
 
Registered: Dec 2003
Distribution: debian, knoppix
Posts: 80

Original Poster
Rep: Reputation: 15
ok, I think I get it. Anyway, the automated install procedure, while newbie-ish, works. Now to install a driver for the video card... thanks folks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows with Linux..can't boot windows or install imari1027 Mandriva 4 11-13-2004 02:00 PM
Copying a windows or linux install to a new hard disk using linux.... some_cs_student Linux - Software 7 05-24-2004 08:17 PM
Linux/Windows dual boot with Windows re-install dhowell1129 Linux - Newbie 6 04-25-2004 05:21 AM
On Windows and LInux dual boot - why install Windows first? yanar99 Linux - Newbie 13 12-18-2003 10:20 AM
Files from Windows Install to Linux Install Ehuwiko Linux - General 2 10-24-2003 03:57 PM


All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration