Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-05-2004, 09:46 AM   #1
Registered: Nov 2003
Location: Halifax N.S.
Distribution: Mandrake 9.1
Posts: 35

Rep: Reputation: 15
Lilo lost, Install disk failing to restore Lilo on dual boot?

Hello Hello..happy hump day!

-Win2k @ Drive 1
-Mandrake 9.2 @ end of drive 2.

**History (short ver)
-Win2k on drive 1 also controling drive 1's MBR
-Mandrake 9.1 with lilo on mbr of drive 2.

Installed LiLo onto Drive 1 and now dual booting without
using Bios to switch drives.
All is good.

Installed HP Photosmart 7550 Printer on 2k.
2k freaked out and was forced to reinstall 2k (is true).
MBR's all freeked?????????????

Unable to boot far enough to get to CD-rom.
Boot from drive one just hung.
Boot from Drive two displayed "99 99 99 99........"
in loop.

Boot from 2k floppy disks gave blue screen and failed to do jack.
Boot from win98se 'magic boot disk' (for those who remember those )

fdisk /mbr
2k now responds and boots clean. Goodness love 98se

where's Lilo? Where's my mandrake gone to?
Ran rescue from Install CD's - no change
Did a reinstall of 9.1.... no change.
downloaded and installed 9.2..... no change.

Boot from drive 1 give me 2k fine.
Boot from drive 2 still gives me "99 99 99 99 99"

********just occured to me to try fdisk /mbr with drive 2 set as drive 1 (just to protect drive 1 i'll disconnect it for this bit....************

That said I have to leave here now before I can try that...
but does anyone have any ideas?

I'm spank'in new to linux...but half handy elsewise
Old 05-05-2004, 11:15 AM   #2
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
solution for lost lilo:

"Don't panic" :-)

Take a bootable linux cd (knoppix, first disrto-install cd, debain (net)setup cd whatever)

boot from the cd, login to the console (if you have a graphicel installer you might have to switch to a free console using ctr-alt-F1)

(I will use $: as a commandprompt indicator)
Become root (on many boot-cd you already are, on knopix do "sudo su")

$: cd /tmp
$: mkdir old-linux

try to remember on which partition you had your linux installed,
from your story I'll asume /dev/hdb1)

$: mount /dev/hdb1 /tmp/old-linux

$: chroot /tmp/old-linux

(the last command will virtually move your shell (and all paths) inside your old linux install)
from here you are free to do whetever you like (you even can do "mount proc", "/etc/init.d/networking start" and "startx", now you have your full linux install back.
But you want to fix lilo, so

$: /sbin/lilo

If lilo barks about /devices/disc0/blahBlah not found you must mount the devfs filesystem first,
usually like this
$: mount /dev
$: mount /devices

or implicit:
$: mount -t devfs devfs /devices
(else do "$: less /etc/fstab" here you see how and where you distro asumes devfs is mounted)

then call lilo again:
$: /sbin/lilo
$: exit

The last command will break out of your chroot-jail,
you are back in /tmp now.
umount your disk, reboot, done.

Was not that hard now was it.
Old 05-05-2004, 05:00 PM   #3
Registered: Nov 2003
Location: Halifax N.S.
Distribution: Mandrake 9.1
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks pankrat..

I'm at work right now....but I will give this a run once I get home tonight or tomorrow morning (see how bad work beats me :P) and let you know how it goes.

Thanks again for the attempt if nothing else.


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
dual boot with windows xp (two hd) and install Lilo (Suse 9.3) SUSE / openSUSE 0 05-05-2005 11:35 AM
Dual boot with Lilo not working after install Gates1026 Linux - General 3 02-17-2004 02:36 PM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 04:50 PM
Install Issue - Boot Disk, Lilo & Kernel Swampy Slackware 5 02-07-2003 07:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:39 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