LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 04: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, 04:48 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
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, 04: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, 04: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, 05: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, 10:17 AM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:48 PM
I think I need a repair installation Teckno Linux - General 12 06-16-2004 07:43 PM
Mandrake Install Screwed up MBR; Need to Make Boot Loader CD paul_m_d Linux - Newbie 5 12-09-2003 04:36 AM
How to repair win-destroyed MBR without a floppy J_Szucs Linux - Newbie 7 12-25-2002 06:51 PM
installation repair? ray318 Linux - Software 1 04-22-2002 11:09 AM


All times are GMT -5. The time now is 08:31 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration