Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
a few weeks ago i installed gentoo on my box
then i installed winXP
this means now i have the winXP boot loader
because it's time to switch completely to linux i want to remove the whole windows stuff
but i have a little problem
i'm booting my installed gentoo using the gentoo CD
bootloaderoptions: gentoo root=/dev/hde3
and gentoo boots (yeah, that's cool ;-) )
now i want to replace the winXP boot loader with my lilo boot loader (i don't use grub because grub caused serious problems because grub thought my kernel was too big? but it doesn't matter, lilo worked before winXP)
because i think i just have to use the same configuration i used before setting up WinXP i only did:
/sbin/lilo
rebooted and voila THE XP boot loader comes up???
rebooting again
booting with gentoo CD
trying this:
/sbin/lilo -v
it sais that the MBR of /dev/hde has been updated
rebooting
the same stuff again
booting with gentoo CD
/sbin/lilo -M /dev/hde
/sbin/lilo -M /dev/hdg
(i have 2 40Gb harddisks primary on /dev/hde (=gentoo) secondary on /dev/hdg (=XP))
rebooting
AND I SEE THE DAMN XP boot loader!!!
so my question:
how can i remove the fu..... XP boot loader?
OK. Let's review lilo a bit. If you give the command: /sbin/lilo, with no parameters, it will write to the MBR of the disk it's on. If you have a system with xp on the master (read primary) disk, and Linux on the slave (read secondary) disk, when you give the /sbin/lilo command, lilo writes to the MBR of the secondary disk, not the primary!
So. How to fix this. First, determine where (which disk) xp is installed; that's obviously the primary. Then do /sbin/lilo <the disk xp is on> to write lilo to the MBR of that disk, and not the disk Linux is on.
From the contents of your post, lilo probably did install to the MBR of hde, but hde is not the primary, it's the secondary, Xp is on hdg, and since the xp bootloader keeps coming up, hdg is the primary.
Try /sbin/lilo /dev/hdg, or something along those lines to put lilo on the MBR of the primary hard drive.
I would suggest using grub as the bootloader of choice, but the principles in either case are basically the same. What you need to accomplish is:
Rewrite the master boot record (MBR), which currently points to the XP loader, so that it points to another boot loader, be it Lilo or Grub.
Arrange for XP to be invoked -- basically starting with its boot loader as though the "real" boot loader did not exist at all -- when that (ick!) operating-system is selected.
There are copious notes about how to start-up XP correctly with an alternate boot loader.
Even if you get yourself into a sticky-spot, the system can always boot from a CD-ROM, and this is why a Knoppix CD (which you download and burn...) is particularly useful. So if you find yourself with a munged MBR, you can fix it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.