Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-26-2005, 12:51 PM   #1
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Rep: Reputation: 30
Installing Windows (again)

When i partitioned my HD i left 30GB free just in case I needed Windows to do anything in the future. Well guess what... I do. Unfortunately though im not entirely sure what I should do as regards bootloaders.

LILO is my bootloader and its installed to the harddisk. As far as I know though when I reinstall windows XP it will install its own bootloader over LILO (it happened me before). Im curious as to whether there is anyway to prevent this and keep using LILO to boot both Mandriva and XP.

Old 05-26-2005, 12:58 PM   #2
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
As far as I know there is no way to prevent this. You need to have a bootable medium to get back into your system and then re-install lilo.
Old 05-26-2005, 01:03 PM   #3
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
never used Mandriva but in redhat/fedora you can get the installation CD/floppy and boot up into rescue mode then you can re-run lilo/grub to restore the boot loader.
Old 05-26-2005, 11:07 PM   #4
Registered: Mar 2004
Location: Jakarta
Posts: 164

Rep: Reputation: 30
yeah, you need a boot medium.... rescue cd/ floppy........
but in case you don't.......... there is another way......
You're using windows right now , right?
Try to extract 512 bytes from your linux root(/) partition.....(boot sector) --> just hope you did install lilo here too, not only on MBR
you can use some kind of disk tool / hex editor , etc....
I usually use Winhex.... it's great........
extract the 512 bytes to a file, call it c:\lilo.bin or any you like....
then just hope you can boot it from your windows boot loader
edit your c:\boot.ini file --> this file is hidden
append a line like this
c:\lilo.bin="Linux LILO"
save it and reboot.

hope it helps.....
Old 05-29-2005, 12:44 PM   #5
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
Ok, what i did is boot linux from a cd then enter rescue mode and reinstall LILO. I can now boot linux fine but I've Windows doesnt appear on the boot list of LILO. Does anyone know how i'd go about adding it?

EDIT: Ok, nevermind I found out how. In case anyone else is wondering, i booted into linux opened /etc/lilo.conf and at the end i added the lines

other = /dev/hda3 <--- this is the location of the partition the other OS is on
label = WinXP <-- this can be whatever you want
table = /dev/hda <--- contains the location of the device that has the partition table.

then i ran /sbin/lilo to write the changes.


Last edited by NNP; 05-29-2005 at 01:08 PM.
Old 05-29-2005, 01:09 PM   #6
Senior Member
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 153Reputation: 153
you need to add this to lilo.conf
other = /dev/hda1
  label = Windows2000
  table = /dev/hda
and then run lilo to update the changes, change /dev/hda1 to whatever partition your windows install is on

Nevermind, hadn't realised you already edited your own post


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
installing over windows jumico Linux - Newbie 6 04-17-2005 10:30 AM
Networking with windows/installing windows chepkutwo Linux - Networking 1 09-08-2004 09:30 AM
Installing Windows XP after installing Red Hat 9 BluePyre Linux - General 7 03-09-2004 04:37 PM
Installing windows thorman82 Mandriva 2 11-23-2003 11:51 AM
Installing Windows? kDwosk Linux - Newbie 3 09-05-2003 05:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:48 PM.

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