LinHES Forums http://forums.linhes.org/ |
|
HOWTO recover Master Boot Record (MBR) from 'L 99 99 99 99' http://forums.linhes.org/viewtopic.php?f=11&t=19663 |
Page 1 of 1 |
Author: | nickread [ Sun Mar 08, 2009 3:15 am ] |
Post subject: | HOWTO recover Master Boot Record (MBR) from 'L 99 99 99 99' |
Just had a MBR failure on my KM5.5 installation, which led to an error message on startup that looked like this "L 99 99 99 99 ..." from LILO. A bit of googling led me to the correct diagnosis and some hints as how to fix it, but nothing quite applied. I did not have a recovery diskette http://www.knoppmythwiki.org/index.php?page=RecoveryDiskette but was able to fix it using the installation CD: 1. Boot from Installation CD 2. Choose 'Quit' from the main menu to drop into the command prompt 3. Mount your hard drive so you can read from it. Mine was a standard KM install, so this was done by Code: mount /dev/hda1 /mnt/hda1 4. Copy your LILO configuration file to the current /etc directory Code: cp /mnt/hda1/etc/lilo.conf /etc 5. Remove the link to the current /boot directory (linked to /UNIONFS/boot) Code: rm boot 6. Link to the boot directory on your hard drive Code: ln -s /mnt/hda1/boot boot 7. Restore your hard drive's master boot record (MBR) Code: lilo -v 8. Reboot your PC (it will prompt you to remove the CD) Code: reboot
And that should be it. I've written this from memory so hopefully nothing is missing. I did mess around editing the lilo.conf file before I realised I just needed to point it to the correct /boot directory, but I don't think any of the changes I made were relevant. Hope this helps someone! |
Author: | cliffsjunk [ Sun Mar 15, 2009 12:08 am ] |
Post subject: | |
Here;s how I did it a couple times (on R5.5): Quote: boot from KM 5.5 CD
choose to go to the command prompt mount /media/hda1 edit /media/hda1/etc/lilo.conf (I used vi, but nano is probably there too) --and tweak all of the file paths (that don't start with /dev) from /whatever to /media/hda1/whatever, run "lilo -C /media/hda1/etc/lilo.conf" Note that you should put lilo.conf back the way it was once you get it booting. http://knoppmyth.net/phpBB2/viewtopic.php?t=18672 Cliff |
Author: | nickread [ Sun Mar 15, 2009 5:09 am ] |
Post subject: | |
Yes I was trying for that originally then realised all that editing wasn't needed (before and after) |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |