Linux - GeneralThis 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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.