Re: Booting Linux from NTLDR

Paolo Pierini (pierini@mi.infn.it)
Wed, 08 May 1996 09:24:21 +0200


(Robert Beazley) wrote:
>
> >>>Date: Sun, 05 May 1996 16:31:25 -0400
> >>>To: owner-linux-config@vger.rutgers.edu
> >>>From: Robert Beazley <beazley@ix.netcom.com>
> >>>Subject: Booting Linux from NTLDR
> >>>
> >>>Hello,
> >>>
> >>> I've been trying in vain to setup both LILO and NTLDR so that I can
> boot Linux from NTLDR. I believe I 'm doing everytnig properly but, there is
> still something wrong here. Without going into all of the details, I
> essentially have LINUX (SlackWare 1.3) installed onto a P120 with two EIDE
> 2gb hard drives (the 1st one for Windows NT and the 2nd for Linux) along
> with an assortment of other periphials. I have made the correct disk drive
> size geometry reference in "/etc/lilo.conf" using the keywords (append =
> "hd=3893,16,63 hd=3893,16,63") and linear. I have successfully installed
> LILO so that using a floppy, I can boot from the second partition "/" on
> the second disk drive -> "hdb2" (the 1st partition is MSDOS.) When I run
> "fdisk -l" I receive no errors. Therefore I am convinced that the LILO
> configuration is solid. Also, I know Windows NT boots just fine everytime.
> As per many references on "how to" correctly multi-boot with NTLDR,
> utilizing "bootpart V1.1" I have attempted to create a boot sector file to
> be placed into the Windows NT "boot.ini" file. The file is created, however
> it doesn't boot LINUX. Has anyone else experieneced this behavior? Any Ideas
> as to what may be happening here or what I may be doing wrong?
> >>>
> >>>Regards,
> >>>
> >>>Robert Beazley

Well, I have a setup where NT stays on my 1st HD and linux on the 2nd
hard disk.
(both are 540 MB hds).

What I essentially did is the reverse thing with respect to
what you are trying to do.
I had LILO take over the MBR on the Windows NT disk (no problem to NT),
and with Lilo I can fire off NTLDR. From what I understood it seems that
NTLDR stays on the disc partition, not on the MBR (good thing for LILO
to manage!).

In case you are interested, here is my lilo.conf

# Boots Linux and NT from LILO
#
# Start LILO global section
boot = /dev/hda
install=/boot/boot.b
#compact # faster, but won't work on all systems.
prompt
vga = normal # force sane state
ramdisk = 0 # paranoia setting
# End LILO global section
image = /vmlinuz.1.3.98
root = /dev/hdb1
label = Linux1.3.98
read-only # Non-UMSDOS filesystems should be mounted read-only for
checking
image = /vmlinuz.1.3.97
root = /dev/hdb1
label = Linux1.3.97
read-only # Non-UMSDOS filesystems should be mounted read-only for
checking
image = /vmlinuz.1.2
root = /dev/hdb1
label = Linux1.2
append = "sbpcd=0x230,SoundBlaster"
read-only # Non-UMSDOS filesystems should be mounted read-only for
checking
image = /vmlinuz
root = /dev/hdb1
label = Precompiled
read-only # Non-UMSDOS filesystems should be mounted read-only for
checking
other = /dev/hda1
label = NT
table = /dev/hda

When I choose NT from LILO, the NTLDR comes immediately out.

And, of course, you can have it as your default. In this way no LILO
diskette is
necessary.

Hope this helps!

Ciao, Paolo

-- 
Paolo Pierini: Istituto Nazionale di Fisica Nucleare
               Lab. LASA / Via Cervi, 201 / I-20090 Segrate (MI), Italy

Tel: x39-2-2392-560 pierini@mi.infn.it http://hptesla.mi.infn.it/staff/pp.html