[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: lilo (linux only hd -> dos only hd), no solution possible?



Hi

I've been following this thread as I have W98 on /dev/hda and Debian on
/dev/hdb (Keep them nice and separate, I thought....) and I havn't
configured lilo yet, I'm still booting off a floppy. 

I was planning to sit down with the LILO manual (recommended reading) 
sometime and fix it up, but heretical thought occurs: You could get
loadlin and put something like this at the beginning of your autoexec.bat: 

choice c:/ld Enter l for a real OS or d for dross
if errorlevel 2 goto dos
if errorlevel 1 goto linux

:linux
echo Loading Linux
loadlin <kernel file and boot params here>
goto end

:dos
<rest of your autoexec.bat here>

:end

What vile things DOS batch files are, I never tried writing one before. It
seems to work but I havn't tested the loadlin part as my dual-boot box is
at home.  The purists will doubtless be reaching for the sick-bags but it
might just achieve what you want without endless fiddling about and/or
overwriting the MBR on /dev/hda. 

Hugh, Ducking and Running :->

==========================================================================
Hugh C. Pumphrey, Dept. of -    | Tel. 0131-650-6026,Fax:0131-650-5780
Meteorology, Univ. of Edinburgh | Replace 0131 with +44-131 if outside U.K
EDINBURGH EH9 3JZ, Scotland     | Email hcp@met.ed.ac.uk
======P=l=e=a=s=e==N=o=t=e==t=h=e==N=e=w==F=A=X==N=u=m=b=e=r==============



Reply to: