Solved

LILO in a loop

Posted on 1998-12-03
3
332 Views
Last Modified: 2013-12-15
Firstly I'm a LINUX novice. I installed RedHat Linux 5.1. As part of the installation I partitioned and formatted a second hard disk for LINUX (plus a FAT16 partition - seen as "D:" from DOS/Win98). I have Win98 on the DOS primary partition of my first disk. After I had LINUX installed and working I decided a dual boot would be nice. I created a lilo.conf file to boot to /dev/hda1 by default (label "apps" - Win98) and to /dev/hdb1 (label "linux" - for, you guessed it, LINUX). Then ran lilo which happily took over the boot sector on my first disk.
When I now boot I get the lilo prompt then "starting apps" and then this loops - lilo prompt, starting apps, lilo prompt and so on until I type linux.
When in linux I cannot mount /dev/hda1 but can happily mount all the logical partitions in the extended partition of this first disk. I can boot to dos from a floppy but again cant read the "C:" drive but can read the other logical partitions E, F and G.

I cannot get to WIn98 at all at the moment (some might say this is a good thing!) but I would really like to.

I think I want to remove/replace lilo from the boot sector of my primary disk but dont know how to. I 'm guessing that the primary partition is FAT32 (logical ones are FAT16) that could be causing the problem but I'm not sure.

Good luck and please be quick cos my wife wants to do some scanning and printing of word docs for an assignment and I'm in big trouble!
0
Comment
Question by:singlep2
  • 2
3 Comments
 

Author Comment

by:singlep2
ID: 1631754
Adjusted points to 300
0
 
LVL 5

Accepted Solution

by:
tfabian earned 300 total points
ID: 1631755
boot from a WIN95 floppy, and use the Win95 fdisk program to restore the master boot record..

the syntax is     fdisk /mbr


see url

http://www.windows-nt.com/multiboot/directboot.html

for details on how to remove LiLo from the MBR..

or see my previous (and still unanswered question) in this forum at url

  http://www.experts-exchange.com/Q.10099397

it deals with other LILO problems..
0
 

Author Comment

by:singlep2
ID: 1631756
Thanks tfabian.
"lilo -u"  was exactly what i was looking for. I find it strange that this wasn't mentioned in any of the places i looked - and i looked in a few !

I've managed to remove lilo and get my Win 98 working again. Happily booting to linux from a floppy but might try and do the "win98+linux, loadlin, bootsec, F4" solution so ican forget about floppies.

Thanks again !!    Paul.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question