public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.12-rc3 fails to read partition table
@ 2005-04-24 14:37 Hubert Tonneau
  2005-05-05 16:16 ` Andries Brouwer
  0 siblings, 1 reply; 8+ messages in thread
From: Hubert Tonneau @ 2005-04-24 14:37 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 950 bytes --]

2.6.11 and 2.6.11.7 work fine.
2.6.12-rc1 2.6.12-rc2 and 2.6.12-rc3 fail to read partiton table on my laptop,
also 2.6.12-rc3 works fine on another box also running FullPliant.

The meaningfull part of the boot sequence log is:

With 2.6.11.x:
hda: 117210240 sectors (60011 MB) w/8192KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
 hda: hda1

With 2.6.12-rcx:
hda: 117210240 sectors (60011 MB) w/8192KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
 hda:
so with 2.6.12-rcx, the boot process ends with an unpleasant:
VFS: Cannot open root device "301" or unknown-bloc(3,1)

The partition table has been created by Pliant partition tool:
http://fullpliant.org/pliant/linux/storage/partition.pli
function 'partition_create' at line 52.
Since most of you are probably not awared of Pliant programming language,
neither FullPliant operating system,
I've attached 'dd if=/dev/hda of=/tmp/partition.bin bs=512 count=1'

[-- Attachment #2: partition.bin --]
[-- Type: application/octet-stream, Size: 512 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: 2.6.12-rc3 fails to read partition table
@ 2005-04-24 19:15 Hubert Tonneau
  0 siblings, 0 replies; 8+ messages in thread
From: Hubert Tonneau @ 2005-04-24 19:15 UTC (permalink / raw)
  To: linux-kernel

Hubert Tonneau wrote:
>
> 2.6.11 and 2.6.11.7 work fine.
> 2.6.12-rc1 2.6.12-rc2 and 2.6.12-rc3 fail to read partiton table on my laptop,
> also 2.6.12-rc3 works fine on another box also running FullPliant.

I tracked down the trouble to the following patch.
Partitions with type 0 are now ignored, and my hda1 single partition has been
unwisely set so.
The question might be: is it a good idea to introduce that extra constrain
in the middle of a stable serie ?

diff -urN linux-2.6.11/fs/partitions/msdos.c linux-2.6.12-rc3/fs/partitions/msdos.c
--- linux-2.6.11/fs/partitions/msdos.c	2005-03-01 23:38:12.000000000 -0800
+++ linux-2.6.12-rc3/fs/partitions/msdos.c	2005-04-20 17:03:15.000000000 -0700
@@ -114,6 +114,9 @@
 		 */
 		for (i=0; i<4; i++, p++) {
 			u32 offs, size, next;
+
+			if (SYS_IND(p) == 0)
+				continue;
 			if (!NR_SECTS(p) || is_extended_partition(p))
 				continue;
 
@@ -430,6 +433,8 @@
 	for (slot = 1 ; slot <= 4 ; slot++, p++) {
 		u32 start = START_SECT(p)*sector_size;
 		u32 size = NR_SECTS(p)*sector_size;
+		if (SYS_IND(p) == 0)
+			continue;
 		if (!size)
 			continue;
 		if (is_extended_partition(p)) {


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <3WVhg-283-17@gated-at.bofh.it>]

end of thread, other threads:[~2005-05-06 12:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-24 14:37 2.6.12-rc3 fails to read partition table Hubert Tonneau
2005-05-05 16:16 ` Andries Brouwer
2005-05-06  2:43   ` Andrew Morton
2005-05-06 11:14     ` Andries Brouwer
2005-05-06 11:47       ` Andrew Morton
2005-05-06 12:29         ` Andries Brouwer
  -- strict thread matches above, loose matches on Subject: below --
2005-04-24 19:15 Hubert Tonneau
     [not found] <3WVhg-283-17@gated-at.bofh.it>
2005-04-25  2:31 ` Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>

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