Using the installation CD to boot and repair the MBR in Mandrake 10
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
Using the installation CD to boot and repair the MBR in Mandrake 10
Hi all,
I have a dual boot PC with WinME and Mandrake 10.
My problem is that I have to reinstall WinME. I understand that this will erase the MBR, so I need a way to boot into linux
and repair the MBR (actually reinstall the LILO boot loader).
I tried creating a floppy boot disk, but (as you may know) the floppy sixe is not enough to host the necessary files.
So, I wonder if I could boot from the installation CD (maybe in rescue mode?) and then fix lilo, so I can have the dual boot choice again.
You can either chroot into your current Mandrake setup (after installing winme of course) and run "lilo" if it is lilo or "grub-install /dev/hda" if it's grub. Another method I sometimes use is to run the GUI installer, select upgrade but not select any packages. It runs as if it's updating the current Mandrake system but doesn't change anything and you get the option of installing a bootloader, so you can just choose the one you want.
boot from the MDK install CD (CD 1 or 2, whichever works for you), let it load, hit F1 for more options at the first screen. that will put you at a login prompt. type rescue, then choose the repair bootloader option. that will reinstall lilo & make MDK bootable again.
The chroot method is similar to what otish1000c described, but I'll give you a rough guide if it didn't work. You run your installation disk, press F1 for advanced options, type rescue. You will be asked a few questions e.g. "your mandrake root partition". When you are dropped in to a terminal type "chroot /mnt/sysimage" and then "cd /mnt/sysimage/sbin" then run "lilo" or "./lilo". Reboot your PC by using Ctrl-Alt-Del and lilo should be reinstalled.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.