LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-19-2004, 03:28 AM   #1
dvela
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Rep: Reputation: 0
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.

Has anyone tried this?
Please HELP!
 
Old 08-19-2004, 03:48 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 08-19-2004, 03:58 AM   #3
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
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.

otis
 
Old 08-19-2004, 03:59 AM   #4
dvela
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks,
Can you please explain what you mean here
"You can either chroot into your current Mandrake setup ......."
 
Old 08-19-2004, 04:02 AM   #5
dvela
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks otish1000c.
I' ll try this
 
Old 08-19-2004, 09:17 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
chroot

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.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows / Mandrake 10.0 dual boot - MBR corrupted rdsmith4 Linux - General 1 08-25-2004 07:48 PM
I think I need a repair installation Teckno Linux - General 12 06-16-2004 06:43 PM
Mandrake Install Screwed up MBR; Need to Make Boot Loader CD paul_m_d Linux - Newbie 5 12-09-2003 03:36 AM
How to repair win-destroyed MBR without a floppy J_Szucs Linux - Newbie 7 12-25-2002 05:51 PM
installation repair? ray318 Linux - Software 1 04-22-2002 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:51 AM.

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