Re: LILO fatal error when writing MBR



JohnInSD At san DOT rr dot COM wrote:

You are specifying:

"change automatic"

and then you are specifying specific change rules.

Use one or the other, BUT NOT BOTH.

--John

That fixed it. Thanks, John!

Roby
Three years a linux user ... still a Gnubian.


On Tue, 30 May 2006 13:50:47 -0400, Roby <roby@xxxxxxxxxxxxxx> wrote:

I'm a grub user ... this is my first experience with lilo.
I'm trying to properly hide DOS and win2k from each other.
DOS can't read ntfs and the win2k partition is too far from
the front of the disk to be dos-addressable in any case, but
I would like to learn why the fatal error occurs.

Thanks!

lilo -v for the lilo.conf listed below says this:

LILO version 22.5.9, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 08-Apr-2004 and compiled at 00:18:50 on May 21 2004.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/hda
Warning: Kernel & BIOS return differing head/sector geometries for device
0x80
Kernel: 6781 cylinders, 16 heads, 63 sectors
BIOS: 846 cylinders, 128 heads, 63 sectors
Using BITMAP secondary loader
Calling map_insert_data
Mapping bitmap file /boot/bitmap/boot.bmp -> boot-shine256.bmp
Calling map_insert_file

Fatal: Repeated rule: disk 0x80, offset 0x1c2, 0x16 -> 0x06
-----------------------------------------------------------
Here's /etc/lilo.conf:

# LILO configuration file (Vector Linux)

# Start LILO global section
boot = /dev/hda
default = Linux
prompt
timeout = 300


==================================================
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
type = DOS16_big
normal = 0x06
hidden = 0x16

==================================================

First, comment out the above lines. Lilo knows about all the default
partition types.


###########################################################
# If I uncomment the next 3 lines lilo -v complaineth:
# "Fatal: Repeated rule : 0x80, offset 0x1c2, 0x16->0x06"
# type = NTFS
# normal = 0x07
# hidden = 0x17
##########################################################
bitmap = /boot/bitmap/boot.bmp

# Normal VGA console
vga = normal

# End LILO global section

# Partition 1 : DOS
other = /dev/hda1
label = DOS
table = /dev/hda
change
automatic
=================================
partition = /dev/hda3
# set = NTFS_hidden
deactivate
partition = /dev/hda1
set = DOS16_big_normal # comment out this line, too
activate
=============================


# Partition 1.1 : Win2k
other = /dev/hda3
label = Win2k
table = /dev/hda
change
automatic # this handles most of what you need.
partition = /dev/hda1
set = DOS16_big_hidden
deactivate
partition = /dev/hda3
# set = NTFS_normal
activate

# Partition 2: Linux GUI mode
image = /boot/vmlinuz
root = /dev/hda7
label = Linux
append = ""
read-only

# Partition 3: Linux TUI mode
image = /boot/vmlinuz
root = /dev/hda7
label = linux-tui
append = "2 "
read-only

# Partition 4: Linux GUI mode
image = /boot/vmlinuz
root = /dev/hda7
label = linux-gui
append = "5 "
read-only

# Partition 5: Linux
image = /boot/vmlinuz-sata-2.4.29
root = /dev/hda7
label = sata-2.4.29
append = ""
read-only

.