reactivating LILO after installing Windows 2000

reactivating LILO after installing Windows 2000

Post by Richard Silberste » Wed, 05 Sep 2001 10:04:04



Hi
I had a laptop happily in dual boot NT4 and RedHat 6.2
The Linux was installed on my second hard drive.
Recently I installed win2000 on the 1st drive, and now want to
resurrect the dual boot.
It seems as if all I had to do was edit c:\boot.ini and add the line
f:\bootsect.lnx="Linux"
(My 2nd drive has a FAT partition mounted as F:)
This adds the dual boot option to WIndows startup, but when I choose
Linux all I get is a hung machine with the message:
"Win2000 could not start because the following file is missing or
corrupt:
<windows 2000 root>\system32\ntoskrnl.exe
Please re-install a copy of the above file"

I read some of the wisdom on this list that suggests booting off a
floppy and effectively writing the bootsect to the floppy to copy onto
the boot hard disk. Can't I just copy from one disk to the other
(I can't get both my floppy and my 2nd HD in the machine at the same
time.)
Do I have to put the bootsect.lnx on the C: drive?
Does it matter if C drive is not FAT? Mine is NT5
Do I need to do something else?
help gratefully received
Richard Silberstein

 
 
 

reactivating LILO after installing Windows 2000

Post by Josep » Wed, 05 Sep 2001 12:15:05



> Hi
> I had a laptop happily in dual boot NT4 and RedHat 6.2
> The Linux was installed on my second hard drive.
> Recently I installed win2000 on the 1st drive, and now want to
> resurrect the dual boot.
> It seems as if all I had to do was edit c:\boot.ini and add the line
> f:\bootsect.lnx="Linux"
> (My 2nd drive has a FAT partition mounted as F:)
> This adds the dual boot option to WIndows startup, but when I choose
> Linux all I get is a hung machine with the message:
> "Win2000 could not start because the following file is missing or
> corrupt:
> <windows 2000 root>\system32\ntoskrnl.exe
> Please re-install a copy of the above file"

> I read some of the wisdom on this list that suggests booting off a
> floppy and effectively writing the bootsect to the floppy to copy
> onto the boot hard disk. Can't I just copy from one disk to the
> other (I can't get both my floppy and my 2nd HD in the machine at
> the same time.)
> Do I have to put the bootsect.lnx on the C: drive?
> Does it matter if C drive is not FAT? Mine is NT5
> Do I need to do something else?
> help gratefully received
> Richard Silberstein

You start the redhat 6.2 install, skip over to the boot loader
install part, and do what you did before. You must not install any
programs or format any partitions.

Or ...

Do the following:
Use some OS that you have access to , and download tom's root/boot
disk.

Follow the instructions and place it onto a floppy disk.
boot off that.

Mount your root partition, and locate the kernel that you usually
boot. This is normally in /boot

put a blank floppy into the floppy drive that just booted.

Next, change into the directory containing the kernel.

Let us assume the kernel is called "vmlinuz-2.2.14"

dd if=./vmlinuz-2.2.14 of=/dev/fd0

This will write out the kernel to the floppy. Note that this is not
the same as a "cp" or Copy operation. This is a raw dump operation.

Now boot off the floppy. Your linux system's kernel should be loaded
into memory and it should start booting as usual.

Next, check over the lilo.conf file and change your old nt4 entry to
match win2000.

re-run lilo.

hth

bye

 
 
 

reactivating LILO after installing Windows 2000

Post by Ujwal S. Sathya » Wed, 05 Sep 2001 12:43:29


I did this a few years ago with WinNT; it might work for Win2000 also,
but I CANNOT guarantee it.

So this is what I recollect:

1. You have to save the bootsector of your linux drive as a file and tell
the Win2000 bootloader where to find it. If lilo is installed on your
second hard drive (say /dev/hdb). From Linux, type:

dd if=/dev/hdb of=bootsect.lnx bs=512 count=1

Change /dev/hdb to wherever lilo was installed. You can look at the
boot=... line in /etc/lilo.conf.

2. Copy this file (bootsect.lnx) over to your Win2000 partition.

3. Now add the entry in the boot.ini:
C:\BOOTSECT.LNX="Linux"

Also, take a look at:

http://www.enterprisedt.com/publications/dual_boot.html

Ujwal



> Hi
> I had a laptop happily in dual boot NT4 and RedHat 6.2 The Linux was
> installed on my second hard drive. Recently I installed win2000 on the
> 1st drive, and now want to resurrect the dual boot.
> It seems as if all I had to do was edit c:\boot.ini and add the line
> f:\bootsect.lnx="Linux"
> (My 2nd drive has a FAT partition mounted as F:) This adds the dual boot
> option to WIndows startup, but when I choose Linux all I get is a hung
> machine with the message: "Win2000 could not start because the following
> file is missing or corrupt:
> <windows 2000 root>\system32\ntoskrnl.exe Please re-install a copy of
> the above file"

> I read some of the wisdom on this list that suggests booting off a
> floppy and effectively writing the bootsect to the floppy to copy onto
> the boot hard disk. Can't I just copy from one disk to the other (I
> can't get both my floppy and my 2nd HD in the machine at the same time.)
> Do I have to put the bootsect.lnx on the C: drive? Does it matter if C
> drive is not FAT? Mine is NT5 Do I need to do something else?
> help gratefully received
> Richard Silberstein