Re: Partition Check Problem

From: Guest section DW (dwguest@win.tue.nl)
Date: Thu Apr 20 2000 - 12:37:07 EST


On Thu, Apr 20, 2000 at 06:57:20PM +0200, Roman Seidl wrote:

> > > I have severe Problems with an IDE Notebook HD. The Partition Table is
> > > corrupted (this happened in some combination of Linux and Win2k
>
> > No, I don't know what to do without patching the kernel.
> > What kernel do you have?

> I tried it with a common 2.2 kernel (redhat 6.1, redhat 6.2, corel
> linux, suse 6.2 and Mandrake 7)
>
> > [Long ago there was the possibility that the routine extended_partition()
> > would loop on a rotten partition table. But that was fixed by adding a
> > loopct check. Now there still is the problem that bread() may try to
> > read a block past the end of the disk and hang. Do you get I/O error
> > messages, or is this just a silent hang?]

> Its a silent hang - if i can access the partition table somehow ill try to
> grab it so one can maybe reconstruct what is happening.

OK. But 2.2 doesn't have this loopct check, so that might be your first attempt:
take linux/fs/partitions/msdos.c from a 2.3 source and compare with drivers/block/genhd.c
from a 2.2 source, and add in extended_partition() the check that prevents looping.
Maybe that suffices.

> What happens if the Partition tabel is not checked? Is /dev/hda aceessible
> as a normal block device or not?

Yes.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:17 EST