Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This 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.


  Search this Thread
Old 01-31-2011, 05:05 AM   #1
Registered: May 2008
Posts: 227

Rep: Reputation: 30
Fixing LILO/MBR with Mandriva CD


I have a Mandriva One 2010.2 Live CD which I used to install Mandriva onto a hard drive. My boot loader is LILO.

The boot sector seems to be corrupted as I tried to run LILO to repair another drive. I must have somehow overwritten my boot sector in the process, and now it doesn't boot up.

How can I fix my MBR and get my LILO back up and running? I still have the Live CD

Old 01-31-2011, 07:33 PM   #2
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 800

Rep: Reputation: 79
You should boot with the live CD, and mount your root partition which contains your (corrputed) boot loader.
NOTE: this is an example; change sda1 to the appropriate partition.

As root, do:
# mount /dev/sda1 /mnt/
Now you can chroot to your root partition,
# chroot /mnt/
Check if it is the right partition with
# ls /mnt/
This should give you the root directories, i.e. /boot, /etc, /bin, /lib, etc.

And run lilo
# /sbin/lilo
to install the bootloader on to the MBR.

Hope this helps.
Old 01-31-2011, 10:38 PM   #3
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30

That didn't seem to work. Apparently lilo.conf no longer exists...

I've tried downloading the Mandriva Free 2010.2 DVD and boot up to the recovery mode, but it didn't work either - complained that no recovery CD was found. Doh.

If I re-install from Mandriva One to the existing partitions, will it overwrite my user files/applications/etc?

Is there any other way?


Edit: Nevermind I copied lilo.conf from an older Mandriva 2010.0 installation, editing the UUIDs and it worked. Thanks!

Last edited by galapogos; 01-31-2011 at 11:02 PM.


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
Fixing MBR with lilo with a non-boot drive galapogos Linux - Kernel 3 01-31-2011 03:04 PM
Re-Install Lilo on Mandriva mbr nicholls15 Linux - Newbie 2 01-13-2010 08:49 AM
fixing mbr on usb i_s Linux - Newbie 4 12-20-2007 05:50 PM
fixing my mbr bernstein Linux - General 7 06-30-2005 11:24 PM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 03:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:11 PM.

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