Re: Getting rid of Lilo.

From: John Culleton (john_at_wexfordpress.com)
Date: 08/08/04


Date: 8 Aug 2004 06:50:21 -0700

unruh@string.physics.ubc.ca (Bill Unruh) wrote in message news:<cf32st$9nc$1@nntp.itservices.ubc.ca>...
> john@wexfordpress.com (John Culleton) writes:
>
> ]after much weeping and gnashing of teeth I have convinced my computer
> ]to boot both Win 2000 and Linux, using the Win boot memo. Now I need
> ]to either modify or get rid of my former lilo menu. Trouble is, I
> ]can't. Here is my setup:
> ]/dev/hda1 Win 2000
> ]/dev/hda2 Linux
>

Problem solved. turns out LILO resides in the bootsect and when I
copied the bootsect of /hda2 to /hda1 that was before lilo was
updated. So I stripped lilo.conf down to just the Linux partition and
made the wait time 30 instead of the default 300.

Here is the rest of the drill:
1. Make /hda2 the boot partition via cfdisk.
2. Run lilo
3. "dd if=/dev/hda2 of=bootsect.lnx bs=512 count=1"
4. Copy the file bootsect.lnx to the /hda1 partition, either directly
(fat partition) or indirectly via floppy (ntfs partition.)
5. boot Linux via floppy and make /hda1 the boot partition via cfdisk.
6. Edit the file on /hda1 boot.ini to include a line for Linux. I
edited mine directly from Linux via Vim, but if ntfs is in play one
has to boot Windows,
"attrib -r boot.ini", edit the file and "attrib +r boot.ini"

Here is my Windows boot.ini:
=========================================================
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000
Professional" /fastdetect
C:\bootsect.lnx="Linux"
multi(0)disk(0)rdisk(1)partition(1)\WINNT="Microsoft Windows 2000
NTFS" /fastdetect
==========================================================
I have two Windows partitions (one fat, one ntfs) and I made the fat
one on hda1 the default. (I may experiment with making Linux the
default.)
I put the Linux boot line second on the list.

I still get an error message if I try to boot windows 2k via lilo.
Hence the above lashup.

John c.



Relevant Pages

  • Re: New to Linux
    ... > Since I have a large hard drive, I will probably repartition and give Windows ... Not only is it very doable to tri boot, ... linux partitions. ... About that boot partition, it's just another small linux partition with ...
    (Fedora)
  • fixing grub : mbr fix when windows install after linux
    ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
    (comp.os.linux.misc)
  • Help with copying a Windows98 partition?
    ... format on a FAT32 partition within Linux (preferably ... I've used Ghost to copy Windows 98 partitions ... GRUB only had entries to boot up Linux. ...
    (comp.os.linux.misc)
  • Re: Dual boot laptop problem
    ... |>> should see the boot.ini file in the root windows partition, ... |> Once he reinstalled Windows it wrote over the top of the MBR. ... |> taking care of the boot process. ... |>>> copy of the boot.ini file, so now I cannot get to my linux ...
    (RedHat)
  • My Solution to Securing Windows 98, ME Against Network Modification and Spying, using Linux.
    ... My Solution to Securing Windows 98, ME Against Network ... Modification and Spying, using Linux. ... partition, just in case I run into any uses that get confused at ...
    (comp.security.misc)