LILO woes

LILO woes

Post by Steve Jone » Sat, 26 Jan 2002 03:47:29



Hi,

I'm having a bit of trouble with LILO after re-installing RedHat 7.2. I
managed to botch the first attempt, so I reformatted the Linux partitions
and re-installed, assuming everything would be fine. For the most part it
is, but I am now unable to update my LILO configuration.

Rather than try to describe the problem, below is attached the output of
lilo -t -v:

--------start
LILO version 21.4-4 (test mode), Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman

Reading boot sector from current root.
Fatal: Can't put the boot sector on logical partition 0x305
---------end

From the looks of this, LILO is trying to install the new config on the '/'
partition of my disk, instead of the MBR where the current LILO config is.

Can anyone tell me why it's trying to do this, when the lilo.conf file
(attached below) clearly states that it should be installed on /dev/hda? For
extra information, I've also included the partition list of my disk taken
from fdisk.

Thanks in advance for any help on this.
Steve.

-------- lilo.conf start
prompt
timeout=50
default=Windows XP
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.7-10
 label=Linux
 read-only
 root=/dev/hda5
 append="hdc=ide-scsi"

other=/dev/hda1
 optional
 label=Windows XP
---------- lilo.conf end

---------- partition table start
   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       653   5245191    b  Win95 FAT32
/dev/hda2           654       656     24097+  83  Linux
/dev/hda3           657      5005  34933342+   f  Win95 Ext'd (LBA)
/dev/hda5           657      1501   6787431   83  Linux
/dev/hda6          1502      1570    554211   82  Linux swap
/dev/hda7          1571      3112  12386083+   7  HPFS/NTFS
/dev/hda8          3113      5005  15205491    b  Win95 FAT32

/dev/hda2 is '/boot'
/dev/hda5 is '/'

----------- partition table end

 
 
 

LILO woes

Post by rnich.. » Sat, 26 Jan 2002 09:24:05


Note: E-mailed *and* posted.


[SNIP]
:-------- lilo.conf start
:prompt
:timeout=50
:default=Windows XP
:boot=/dev/hda
:map=/boot/map
:install=/boot/boot.b
:message=/boot/message
:lba32
:
:image=/boot/vmlinuz-2.4.7-10
: label=Linux
: read-only
: root=/dev/hda5
: append="hdc=ide-scsi"
:
:other=/dev/hda1
: optional
: label=Windows XP
:---------- lilo.conf end
[SNIP]

You need quotes around both instances of "Windows XP".  Bummer that it
didn't get picked up as a syntax error.

--


 
 
 

LILO woes

Post by Steve Jone » Sun, 27 Jan 2002 04:26:46


Thanks for that. Should have spotted really. But then the RedHat installer
should have done as well.......

Steve.


> Note: E-mailed *and* posted.



> [SNIP]
> :-------- lilo.conf start
> :prompt
> :timeout=50
> :default=Windows XP
> :boot=/dev/hda
> :map=/boot/map
> :install=/boot/boot.b
> :message=/boot/message
> :lba32
> :
> :image=/boot/vmlinuz-2.4.7-10
> : label=Linux
> : read-only
> : root=/dev/hda5
> : append="hdc=ide-scsi"
> :
> :other=/dev/hda1
> : optional
> : label=Windows XP
> :---------- lilo.conf end
> [SNIP]

> You need quotes around both instances of "Windows XP".  Bummer that it
> didn't get picked up as a syntax error.

> --


 
 
 

1. LILO woes

Hi,
I've got a little problem right now in that LILO is giving me the old 'I
hate you' message (LI1010101010...)

I've run into this problem before, and know how it's supposed to be
fixed, but something must be different.  Maybe somebody can point out
something I'm overlooking.

I've got my linux partition on a SCSI hard drive in /dev/sda2.  My SCSI
controller is on my Sound Blaster 16 card, so I have to pass
aha152x=0x340,11,7,1 to the kernel so that the scsi drive is recognized.  
I know that LILO needs something recognized by BIOS to start up from, so
I've also got a 10 meg partition on an IDE hard drive /dev/hda1 devoted
to holding kernels.  

My lilo.conf file looks something like this (with certain parts ommitted
here):

append="aha152x=0x340,11,7,1"
boot = /dev/hda
compact
delay = 50
vga = normal
ramdisk = 0
.
.
.
image = /kernels/vmlinuz
root = /dev/sda2
label = linux

I'm using LILO 0.14, since 0.15 gives me warnings and doesn't work right
(never did).

What I have is /dev/hda1 mounted on /kernels and /dev/sda2 mounted on /.
I have copies of /boot, and also the /sbin/lilo stuff and /etc/lilo.conf
on the /kernels partition.  I used to be able to type lilo from
/kernels/sbin and I'd be set.  Now this doesn't seem to work.
What I mean by used to work, is it worked with my Slackware 2.0 setup.  I
reformatted /dev/sda2 and installed Slackware 2.1, and now it doesn't
work anymore.  I think I've got everything just like it was before, but
apparently something isn't right.  The only thing I can think of that's
different is that now (due to this problem) I have to boot from floppy
originally.  I use the bootdisk and type "mount root=/dev/sda2
aha152x=0x340,11,7,1" at the prompt, and all starts up as it normally
would.  I just can't get LILO to replace the need for the floppy.  

Does anyone have any suggestions on what could be wrong?  Is there a
better way to go about doing this?

Thanks,
Ed Daiga

2. Simple (Hopefully!) Termios Question

3. aha2940 and kernel/lilo woes

4. drivers for Asus 6600 GeForce256 32Mb AGP?

5. LILO Woes

6. IBM ThinkPad Parallel Port

7. LILO Woes with Redhat 6.2 (2.2.14 Kernel)

8. Ver 4.1 X-Server and ASUS V3800

9. LILO Woes

10. lilo woes.

11. LILO woes

12. LILO woes - NO SCSI but returns LI...

13. LILO woes on old hardware