2002-10-07 07:42:29

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: LILO probs

Please see below.
Rene (below) have tried to help me out here, but I still can't boot. / is on
hda5 and /boot is on hda1.

Any suggestions?

thanks

roy

On Sunday 06 October 2002 23:37, Rene Herman wrote:
> On Sunday 06 October 2002 21:59, you wrot
>
> > Disk /dev/hda: 16 heads, 63 sectors, 38792 cylinders
> >
> > Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> > 1 80 1 1 0 15 63 609 63 614817 83
> > 2 00 0 1 610 15 63 1023 614880 10486224 83
> > 3 00 15 63 1023 15 63 1023 11101104 4194288 83
> > 4 00 15 63 1023 15 63 1023 15295392 23806944 0f
> > 5 00 15 63 1023 15 63 1023 63 2097585 83
> > 6 00 15 63 1023 15 63 1023 63 1048257 83
> > 7 00 15 63 1023 15 63 1023 63 1048257 82
> > 8 00 15 63 1023 15 63 1023 63 19612593 83
>
> Looks perfectly normal. That "1023" is simply because the cylinder field is
> held in a 10-bit field, giving the famous 1024 cylinder-limit. With LBA
> addressing all partitions are created like this.
>
> I can see absolutely no reason why things wouldn't work. If you use lba32,
> you should be able to have /boot anywhere on the disk. /dev/hda1 falls
> completely within the 1024 limit, so if you put /boot there, you should
> even be able to boot *without* lba32. Example minimal /etc/lilo.conf:
>
> ===
> boot=/dev/hda
> lba32
> prompt
>
> image=/boot/vmlinuz
> root=/dev/root
> label=linux
> ===
>
> You do have boot=/dev/hda don't you? Not /dev/hda1 or something silly like
> that?
>
> Rene.

--
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.


2002-10-07 08:06:31

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Re: LILO probs

On Monday 07 October 2002 10:02, Hacksaw wrote:
> That partition table does not look normal to me. What was it produced with?

linux fdisk ... or ... no - it was the redhat installation. point is - the
disk was first installed in an old P90 whose BIOS found the disk as a
1024/16/63 (504 meg) disk, but linux overrode that, allowing me to use the
whole disk. I settled with boot from floppy, but I can't use that now.

roy
--
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.

2002-10-07 08:20:52

by Hacksaw

[permalink] [raw]
Subject: Re: LILO probs

> > Disk /dev/hda: 16 heads, 63 sectors, 38792 cylinders
> >
> > Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> > 1 80 1 1 0 15 63 609 63 614817 83
> > 2 00 0 1 610 15 63 1023 614880 10486224 83
> > 3 00 15 63 1023 15 63 1023 11101104 4194288 83
> > 4 00 15 63 1023 15 63 1023 15295392 23806944 0f
> > 5 00 15 63 1023 15 63 1023 63 2097585 83
> > 6 00 15 63 1023 15 63 1023 63 1048257 83
> > 7 00 15 63 1023 15 63 1023 63 1048257 82
> > 8 00 15 63 1023 15 63 1023 63 19612593 83

It's a very confusing table, but more importantly it seems to imply that
/dev/hda{5,6,7,8} all start at cylinder 63, and end in a variety of places.

If this is an accurate representation of the partition table on this disk, I
would suggest you recover what you can from it, and start over.

Better would be to have a look at the partition table with something that can
fix it, like fdisk, sfdisk or parted. Example:

sfdisk -l /dev/hda


--
If in doubt, consult tradition.
If still in doubt, consult your experience.
If still in doubt, consult your body.
http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD


2002-10-07 08:51:32

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Re: LILO probs

On Monday 07 October 2002 10:26, Hacksaw wrote:
> > > Disk /dev/hda: 16 heads, 63 sectors, 38792 cylinders
> > >
> > > Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> > > 1 80 1 1 0 15 63 609 63 614817 83
> > > 2 00 0 1 610 15 63 1023 614880 10486224 83
> > > 3 00 15 63 1023 15 63 1023 11101104 4194288 83
> > > 4 00 15 63 1023 15 63 1023 15295392 23806944 0f
> > > 5 00 15 63 1023 15 63 1023 63 2097585 83
> > > 6 00 15 63 1023 15 63 1023 63 1048257 83
> > > 7 00 15 63 1023 15 63 1023 63 1048257 82
> > > 8 00 15 63 1023 15 63 1023 63 19612593 83
>
> It's a very confusing table, but more importantly it seems to imply that
> /dev/hda{5,6,7,8} all start at cylinder 63, and end in a variety of places.
>
> If this is an accurate representation of the partition table on this disk,
> I would suggest you recover what you can from it, and start over.
>
> Better would be to have a look at the partition table with something that
> can fix it, like fdisk, sfdisk or parted. Example:
>
> sfdisk -l /dev/hda

hm

root@pbx /usr/src/asterisk># sfdisk -l /dev/hda

Disk /dev/hda: 38792 cylinders, 16 heads, 63 sectors/track
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 609 610- 307408+ 83 Linux
/dev/hda2 610 11012 10403 5243112 83 Linux
/dev/hda3 11013 15173 4161 2097144 83 Linux
/dev/hda4 15174 38791 23618 11903472 f Win95 Ext'd (LBA)
/dev/hda5 15174+ 17254 2081- 1048792+ 83 Linux
/dev/hda6 17255+ 18294 1040- 524128+ 83 Linux
/dev/hda7 18295+ 19334 1040- 524128+ 82 Linux swap
/dev/hda8 19335+ 38791 19457- 9806296+ 83 Linux

just lists the table

but - it works, but I need to boot off a floppy, and I really don't want to
start over reinstalling this.

any ideas how I can make LILO/GRUB work with this?

roy
--
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.

2002-10-07 09:23:20

by Denis Vlasenko

[permalink] [raw]
Subject: Re: LILO probs

On 7 October 2002 06:26, Hacksaw wrote:
> > > Disk /dev/hda: 16 heads, 63 sectors, 38792 cylinders
> > >
> > > Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> > > 1 80 1 1 0 15 63 609 63 614817 83
> > > 2 00 0 1 610 15 63 1023 614880 10486224 83
> > > 3 00 15 63 1023 15 63 1023 11101104 4194288 83
> > > 4 00 15 63 1023 15 63 1023 15295392 23806944 0f
> > > 5 00 15 63 1023 15 63 1023 63 2097585 83
> > > 6 00 15 63 1023 15 63 1023 63 1048257 83
> > > 7 00 15 63 1023 15 63 1023 63 1048257 82
> > > 8 00 15 63 1023 15 63 1023 63 19612593 83
>
> It's a very confusing table, but more importantly it seems to imply
> that /dev/hda{5,6,7,8} all start at cylinder 63, and end in a variety
> of places.

It's a sector offset, not a cylinder.
Also extended partition method of storing offsets is 'interesting' :-(
--
vda

2002-10-07 10:30:37

by jbradford

[permalink] [raw]
Subject: Re: LILO probs

> > > > Disk /dev/hda: 16 heads, 63 sectors, 38792 cylinders
> > > >
> > > > Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> > > > 1 80 1 1 0 15 63 609 63 614817 83
> > > > 2 00 0 1 610 15 63 1023 614880 10486224 83
> > > > 3 00 15 63 1023 15 63 1023 11101104 4194288 83
> > > > 4 00 15 63 1023 15 63 1023 15295392 23806944 0f
> > > > 5 00 15 63 1023 15 63 1023 63 2097585 83
> > > > 6 00 15 63 1023 15 63 1023 63 1048257 83
> > > > 7 00 15 63 1023 15 63 1023 63 1048257 82
> > > > 8 00 15 63 1023 15 63 1023 63 19612593 83
> >
> > It's a very confusing table, but more importantly it seems to imply that
> > /dev/hda{5,6,7,8} all start at cylinder 63, and end in a variety of places.
> >
> > If this is an accurate representation of the partition table on this disk,
> > I would suggest you recover what you can from it, and start over.
> >
> > Better would be to have a look at the partition table with something that
> > can fix it, like fdisk, sfdisk or parted. Example:
> >
> > sfdisk -l /dev/hda
>
> hm
>
> root@pbx /usr/src/asterisk># sfdisk -l /dev/hda
>
> Disk /dev/hda: 38792 cylinders, 16 heads, 63 sectors/track
> Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
>
> Device Boot Start End #cyls #blocks Id System
> /dev/hda1 * 0+ 609 610- 307408+ 83 Linux
> /dev/hda2 610 11012 10403 5243112 83 Linux
> /dev/hda3 11013 15173 4161 2097144 83 Linux
> /dev/hda4 15174 38791 23618 11903472 f Win95 Ext'd (LBA)
> /dev/hda5 15174+ 17254 2081- 1048792+ 83 Linux
> /dev/hda6 17255+ 18294 1040- 524128+ 83 Linux
> /dev/hda7 18295+ 19334 1040- 524128+ 82 Linux swap
> /dev/hda8 19335+ 38791 19457- 9806296+ 83 Linux
>
> just lists the table
>
> but - it works, but I need to boot off a floppy, and I really don't want to
> start over reinstalling this.
>
> any ideas how I can make LILO/GRUB work with this?

When you say, 'boot off a floppy', what do you mean:

1. Boot a raw kernel image from a floppy

or

2. Boot a floppy containing LILO/GRUB?

If you mean 1, you are accessing the hard disk with the BIOS.

If you mean 2, you are never accessing the hard disk with the BIOS.

John.

2002-10-07 11:22:37

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Re: LILO probs (SOLVED)

Hi

I hardcoded the actual disk geometry along with disk=0x80 in lilo.conf, and
now it works ;-)

roy

On Monday 07 October 2002 12:44, [email protected] wrote:
> > > > > Disk /dev/hda: 16 heads, 63 sectors, 38792 cylinders
> > > > >
> > > > > Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> > > > > 1 80 1 1 0 15 63 609 63 614817 83
> > > > > 2 00 0 1 610 15 63 1023 614880 10486224 83
> > > > > 3 00 15 63 1023 15 63 1023 11101104 4194288 83
> > > > > 4 00 15 63 1023 15 63 1023 15295392 23806944 0f
> > > > > 5 00 15 63 1023 15 63 1023 63 2097585 83
> > > > > 6 00 15 63 1023 15 63 1023 63 1048257 83
> > > > > 7 00 15 63 1023 15 63 1023 63 1048257 82
> > > > > 8 00 15 63 1023 15 63 1023 63 19612593 83
> > >
> > > It's a very confusing table, but more importantly it seems to imply
> > > that /dev/hda{5,6,7,8} all start at cylinder 63, and end in a variety
> > > of places.
> > >
> > > If this is an accurate representation of the partition table on this
> > > disk, I would suggest you recover what you can from it, and start over.
> > >
> > > Better would be to have a look at the partition table with something
> > > that can fix it, like fdisk, sfdisk or parted. Example:
> > >
> > > sfdisk -l /dev/hda
> >
> > hm
> >
> > root@pbx /usr/src/asterisk># sfdisk -l /dev/hda
> >
> > Disk /dev/hda: 38792 cylinders, 16 heads, 63 sectors/track
> > Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
> >
> > Device Boot Start End #cyls #blocks Id System
> > /dev/hda1 * 0+ 609 610- 307408+ 83 Linux
> > /dev/hda2 610 11012 10403 5243112 83 Linux
> > /dev/hda3 11013 15173 4161 2097144 83 Linux
> > /dev/hda4 15174 38791 23618 11903472 f Win95 Ext'd (LBA)
> > /dev/hda5 15174+ 17254 2081- 1048792+ 83 Linux
> > /dev/hda6 17255+ 18294 1040- 524128+ 83 Linux
> > /dev/hda7 18295+ 19334 1040- 524128+ 82 Linux swap
> > /dev/hda8 19335+ 38791 19457- 9806296+ 83 Linux
> >
> > just lists the table
> >
> > but - it works, but I need to boot off a floppy, and I really don't want
> > to start over reinstalling this.
> >
> > any ideas how I can make LILO/GRUB work with this?
>
> When you say, 'boot off a floppy', what do you mean:
>
> 1. Boot a raw kernel image from a floppy
>
> or
>
> 2. Boot a floppy containing LILO/GRUB?
>
> If you mean 1, you are accessing the hard disk with the BIOS.
>
> If you mean 2, you are never accessing the hard disk with the BIOS.
>
> John.

--
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.