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. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-26-2005, 11:51 AM
|
#1
|
Member
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156
Rep:
|
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.
Thanks,
NNP
|
|
|
05-26-2005, 11:58 AM
|
#2
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
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.
|
|
|
05-26-2005, 12:03 PM
|
#3
|
Member
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466
Rep:
|
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.
|
|
|
05-26-2005, 10:07 PM
|
#4
|
Member
Registered: Mar 2004
Location: Jakarta
Posts: 164
Rep:
|
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.....
|
|
|
05-29-2005, 11:44 AM
|
#5
|
Member
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156
Original Poster
Rep:
|
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.
Thanks,
NNP
Last edited by NNP; 05-29-2005 at 12:08 PM.
|
|
|
05-29-2005, 12:09 PM
|
#6
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep:
|
you need to add this to lilo.conf
Code:
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
|
|
|
All times are GMT -5. The time now is 07:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|