public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [bug, 2.5.29, IDE] partition table corruption?
@ 2002-08-08  9:08 Adam J. Richter
  2002-08-08  9:24 ` Marcin Dalecki
  0 siblings, 1 reply; 28+ messages in thread
From: Adam J. Richter @ 2002-08-08  9:08 UTC (permalink / raw)
  To: mingo; +Cc: alan, Andries.Brouwer, dalecki, johninsd, linux-kernel

Ingo Molnar writes:
>Hi Inusing 2.5.29 (vanilla or BK-curr) i cannot use /sbin/lilo anymore to
>update the partition table.
>
>if i do it then the partition table gets corrupted and the system does not
>boot - it stops at 'LI'. (iirc meaning that the second-stage loader does
>not load?) Using a recovery CD fixes the problem, so it's only the
>partition info that got trashed, not the filesystem.
>
>i use IDE disks.
>
>this makes development under 2.5.29 quite inconvenient - i have to boot
>back into another kernel whenever loading a new kernel.

Hi Ingo,

	It might clarify things if you could identify:

	o the last version of 2.5 that worked for you,
	o the version of 2.4 that works for you,
	o the version of lilo that you are using for all of this.

	Back in May, I experienced some similar problem and discussed
it with John Coffman, the lilo maintainer, whom I am cc'ing.

	I'll just quote two parts of an email that he sent me during
our discussion.  It's a little more relevant to your message if I
quote them out of order:

| The head/sector mismatch check (fn 8h/fn 48h) has actually been in LILO
| since last year (22.0), and the (kernel/bios) check since 22.2.  It has
| only been seriously visible since the introduction of the 2.4.18 kernel.
| The IDE disk drivers are now reporting actual IDE disk geometry, rather
| than the mapped BIOS geometry, which was reported by all previous kernels.
| This change in the results returned by the IOCTL used to get the disk
| geometry has been extremely annoying.  It also leads to complaints about
| the format of the partition table.

	Earlier in that seem email, he indicated that he was
thinking about giving precedence to the BIOS geometry in future
versions of lilo (this was 22.3, and I believe the current version is
now 22.3.1):

| Actually, on serious reflection on the issue, there is no choice:  the
| value returned by (int 13h/fn 8h) should be used, if it is available.  This
| is the value used by the conversion routine (linear/lba32 -> geometric) in
| the boot loader (read.S).  Currently, the kernel value is given precedence;
| I am seriously reviewing this issue.

	I just wonder if this is the problem that you are experiencing
rather than anything that was new in 2.5.29.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: [bug, 2.5.29, IDE] partition table corruption?
@ 2002-08-08 18:22 Andries.Brouwer
  2002-08-08 22:36 ` John Coffman
  0 siblings, 1 reply; 28+ messages in thread
From: Andries.Brouwer @ 2002-08-08 18:22 UTC (permalink / raw)
  To: alan, martin; +Cc: Andries.Brouwer, adam, johninsd, linux-kernel, mingo

Oh please, stop this discussion.

Alan, you seem to think Marcin made this change. I did.
If something is wrong, tell me.

Marcin, you say many true things, many semi-true things,
and many false things. Life is easier if you let me
talk for myself.

Andries

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: [bug, 2.5.29, IDE] partition table corruption?
@ 2002-08-08 12:29 Andries.Brouwer
  0 siblings, 0 replies; 28+ messages in thread
From: Andries.Brouwer @ 2002-08-08 12:29 UTC (permalink / raw)
  To: alan, martin; +Cc: Andries.Brouwer, adam, johninsd, linux-kernel, mingo

> Its not a bug in lilo.

We disagree here.

> Its a bug in the new kernel.

We disagree again.

> Breaking backward compatibility arbitrarily is bad.

Of course.

> The kernel needs to know geometry anyway

Let me repeat: Geometry does not exist.
It is impossible to know something that does not exist.
I can boot seven different kernels on my present machine
and get seven different geometries for /dev/hda.
You see that even "backward compatibility" is a
dubious concept here. Compatibility with what?

Even the BIOS is not consistent, and different BIOS functions
report different geometries.

We have had layer upon layer of bandaids.
I think the time is long overdue to get rid of it all.

> for the folks who have force ide translation

Can you elaborate on what you mean by "force ide translation" ?

Andries

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: [bug, 2.5.29, IDE] partition table corruption?
@ 2002-08-07 18:43 Andries.Brouwer
  2002-08-08  7:46 ` Marcin Dalecki
  0 siblings, 1 reply; 28+ messages in thread
From: Andries.Brouwer @ 2002-08-07 18:43 UTC (permalink / raw)
  To: Andries.Brouwer, mingo; +Cc: alan, dalecki, linux-kernel

    > The funny thing is, I removed some stuff here in 2.5.30,
    > so I would understand things immediately if you reported this
    > about 2.5.30. But for 2.5.29 I do not immediately see why
    > you would see any changes.

    2.5.30 breaks as well.

    > Did you in the meantime find out what was wrong?

    nope. I still keep working it around.

    > Are things OK in 2.5.28 and wrong in vanilla 2.5.29
    > with the same version of LILO? (which version?)

    a fairly standard LILO from RH 7.3: linux-21.4.4-10.

    > Do you use the linear or lba32 options? The fix-table option?

    I use none of these options. I use a very simple setup, a proper /boot 
    partition, nothing complex or unexpected.

    > What corruption do you see in the partition table?

    nothing in the descriptors that i can tell from looking at fdisk output -
    but it would be pretty hard to recover the system via a pure rescue CD
    otherwise.

    > Do you use LVM?

    nope. Plain old IDE, ext3fs, 

    > What happens under 2.5.30?

    the same 'LI' message.

    I'll try Alan's suggestion of adding the 'linear' option.
    ...
    this actually did the trick - lilo no more messes up the bootup.
    So Alan's suspicion is right, there's something wrong about geometries
    in 2.5-current.

I always like to understand all the details - forgive me if I come
with further questions.

LILO without "linear" or "lba32" is inherently broken:
it will talk CHS at boot time to the BIOS and hence needs a geometry
and install time, and nobody knows the geometry required. So, if
LILO doesnt break, this is pure coincidence.

Since 2.5.30 many people will have a different geometry, so many
people will have to find grub or a recent LILO, or add "linear"
to their old LILO. This is all well understood - I just repeat it
a few times in the hope that that will reduce the amount of email.

But now you talk about vanilla 2.5.29, and I am surprised.
Could you send the kernel boot messages concerning that disk
(dmesg | grep hd) for 2.5.28 and 2.5.29 and 2.5.30?

And you talk about corruption, and I am surprised again.
Have you verified that there really was a difference?
Or do you only suspect corruption because LILO has problem?
(In that case I can assure you that there was no corruption.)

Andries


^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: [bug, 2.5.29, IDE] partition table corruption?
@ 2002-08-06 22:27 Andries.Brouwer
  2002-08-07 17:46 ` Ingo Molnar
  0 siblings, 1 reply; 28+ messages in thread
From: Andries.Brouwer @ 2002-08-06 22:27 UTC (permalink / raw)
  To: linux-kernel, mingo; +Cc: dalecki

Ingo Molnar writes:

> using 2.5.29 (vanilla or BK-curr) i cannot use /sbin/lilo anymore
> to update the partition table.

> if i do it then the partition table gets corrupted and the system
> does not boot - it stops at 'LI'.

The standard explanation is that LILO cannot find the second stage
loader, like you say, and that happens because it looks in the wrong
place. For example, because it stores CHS coordinates in the wrong
geometry. (But it can also happen because something changed in the
disk numbering.)

"Corruption" of the partition table is to be expected only if you
ask LILO to rewrite the (CHS part of) the partition table.

The funny thing is, I removed some stuff here in 2.5.30,
so I would understand things immediately if you reported this
about 2.5.30. But for 2.5.29 I do not immediately see why
you would see any changes.

Did you in the meantime find out what was wrong?

Are things OK in 2.5.28 and wrong in vanilla 2.5.29
with the same version of LILO? (which version?)

Do you use the linear or lba32 options? The fix-table option?

What corruption do you see in the partition table?

Do you use LVM?

What happens under 2.5.30?

Andries

^ permalink raw reply	[flat|nested] 28+ messages in thread
* [bug, 2.5.29, IDE] partition table corruption?
@ 2002-08-01 13:45 Ingo Molnar
  2002-08-01 13:48 ` Marcin Dalecki
  2002-08-01 15:12 ` Alan Cox
  0 siblings, 2 replies; 28+ messages in thread
From: Ingo Molnar @ 2002-08-01 13:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Marcin Dalecki


using 2.5.29 (vanilla or BK-curr) i cannot use /sbin/lilo anymore to
update the partition table.

if i do it then the partition table gets corrupted and the system does not
boot - it stops at 'LI'. (iirc meaning that the second-stage loader does
not load?) Using a recovery CD fixes the problem, so it's only the
partition info that got trashed, not the filesystem.

i use IDE disks.

this makes development under 2.5.29 quite inconvenient - i have to boot
back into another kernel whenever loading a new kernel.

	Ingo



^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2002-08-09  6:30 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-08  9:08 [bug, 2.5.29, IDE] partition table corruption? Adam J. Richter
2002-08-08  9:24 ` Marcin Dalecki
2002-08-08  9:31   ` Ingo Molnar
2002-08-08  9:34     ` Marcin Dalecki
2002-08-08 10:01       ` Ingo Molnar
2002-08-08 11:45         ` Andries Brouwer
2002-08-08 12:30       ` Alan Cox
2002-08-08 11:22         ` Marcin Dalecki
2002-08-08 13:23           ` Alan Cox
2002-08-08 12:18             ` Marcin Dalecki
2002-08-08 18:11               ` Alan Cox
2002-08-09  0:11                 ` Thunder from the hill
2002-08-09  6:27                   ` Marcin Dalecki
     [not found]     ` <3D523B25.5 <20020808181100Z315277-685+26763@vger.kernel.org>
2002-08-09  6:25       ` Marcin Dalecki
  -- strict thread matches above, loose matches on Subject: below --
2002-08-08 18:22 Andries.Brouwer
2002-08-08 22:36 ` John Coffman
2002-08-09  6:06   ` H. Peter Anvin
2002-08-08 12:29 Andries.Brouwer
2002-08-07 18:43 Andries.Brouwer
2002-08-08  7:46 ` Marcin Dalecki
2002-08-06 22:27 Andries.Brouwer
2002-08-07 17:46 ` Ingo Molnar
2002-08-07 17:51   ` Ingo Molnar
2002-08-01 13:45 Ingo Molnar
2002-08-01 13:48 ` Marcin Dalecki
2002-08-01 16:16   ` Alan Cox
2002-08-01 15:02     ` Marcin Dalecki
2002-08-01 15:12 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox