LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Lilo - Writing to MBR - Curious Problem (https://www.linuxquestions.org/questions/linux-general-1/lilo-writing-to-mbr-curious-problem-17943/)

streamalot 04-07-2002 01:17 PM

Lilo - Writing to MBR - Curious Problem
 
Laptop - Windows2k and Red Hat 7.2 - 1 drive install
fdisk /mbr after install of 7.2 b/c of screw up
I now have to use a boot disk to start linux - not all bad
Updated to Lilo version 21.4.4

I am now trying to repair the lilo.conf file. When I run # /sbin/lilo, it appears to write to the mbr, but upon restart, nothing is changed?

Any ideas would be greatly appreciated!(Am i not writing to the MBR, if so why not?

Thanks

acid_kewpie 04-07-2002 01:33 PM

what does the output of lilo -v -v say? what does your lilo.conf say?

streamalot 04-07-2002 01:46 PM

/sbin/lilo -v -v output
 
/sbin/lilo -v -v output :::::

Lilo version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman
Reading boot sector from /dev/hdq
Merging with /boot/boot.b
Secondary loader: 11 sectors.
Mapping message file /boot/message
Message: 46 sectors.
Boot image: /boot/vmlinuz-2.4.7-10
Setup length is 10 sectors.
Mapped 1569 sectors.
Mapping RAM disk /boot/initrd-2.4.7-10.img
RAM disk: 646 sectors.
Added 2.4.7-10
Boot other: /dev/hda1, on /dev/hda, loader /boot/chain.b
Mapped 6 (4+1+1) sectors.
Added dos
Fatal: No images have been defined.
Removed temporary file /boot/map~

acid_kewpie 04-07-2002 01:53 PM

/dev/hdq??? presumably that should be hda...

streamalot 04-07-2002 01:59 PM

It is hda...see below
 
Lilo version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman
Reading boot sector from /dev/hda
Merging with /boot/boot.b
Secondary loader: 11 sectors.
Mapping message file /boot/message
Message: 46 sectors.
Boot image: /boot/vmlinuz-2.4.7-10
Setup length is 10 sectors.
Mapped 1569 sectors.
Mapping RAM disk /boot/initrd-2.4.7-10.img
RAM disk: 646 sectors.
Added 2.4.7-10
Boot other: /dev/hda1, on /dev/hda, loader /boot/chain.b
Mapped 6 (4+1+1) sectors.
Added dos
Fatal: No images have been defined.
Removed temporary file /boot/map~

isajera 04-07-2002 03:08 PM

are you sure you've got the kernel images spelled correctly in lilo.conf?

streamalot 04-07-2002 05:57 PM

I think so...
 
I think so. The problem is that when I run /sbin/lilo it is not writing to the MBR, at all. I am stumped. There is a good chance that I am not writing it to the correct place, but it seems correct.

streamalot 04-07-2002 06:11 PM

Here it is again
 
/sbin/lilo -v -v:::::::
LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Secondary loader: 11 sectors.
Mapping message file /boot/message
Message: 46 sectors.
Boot image: /boot/vmlinuz-2.4.7-10
Setup length is 10 sectors.
Mapped 1569 sectors.
Mapping RAM disk /boot/initrd-2.4.7-10.img
RAM disk: 646 sectors.
Added 2.4.7-10
Boot other: /dev/hda1, on /dev/hda, loader /boot/chain.b
Mapped 6 (4+1+1) sectors.
Added dos
Fatal: No images have been defined.
Removed temporary file /boot/map~

DMR 04-07-2002 09:43 PM

Post the contents of /etc/lilo.conf.


All times are GMT -5. The time now is 03:20 AM.