public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Missing IDE partition 3 of 3 on 2.5.34?
@ 2002-09-10  5:07 Rusty Russell
  2002-09-10 12:15 ` Helge Hafting
  0 siblings, 1 reply; 3+ messages in thread
From: Rusty Russell @ 2002-09-10  5:07 UTC (permalink / raw)
  To: Jens Axboe, andre; +Cc: linux-kernel

Hi guys,

2.5.33 was fine, but from the boot messages (dual x86 box):

	hda: IC35L020AVER07-0, ATA DISK drive
	ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
	hda: host protected area => 1
	hda: 39876480 sectors (20417 MB) w/1916KiB Cache, CHS=3323040/12/1
	 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3

But it doesn't seem to have registered the third partition (/usr):

	(none):~# cat /proc/partitions 
	major minor  #blocks  name

	   3     0   19938240 ide/host0/bus0/target0/lun0/disc
	   3     1     489951 ide/host0/bus0/target0/lun0/part1
	   3     2     128520 ide/host0/bus0/target0/lun0/part2
	   3     3   19318162 hda3

	(none):~# ls -l /dev/ide/host0/bus0/target0/lun0/
	disc   part1  part2  

Devfs issue?  IDE screwage?
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

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

* Re: Missing IDE partition 3 of 3 on 2.5.34?
  2002-09-10  5:07 Missing IDE partition 3 of 3 on 2.5.34? Rusty Russell
@ 2002-09-10 12:15 ` Helge Hafting
  2002-09-10 13:42   ` [PATCH] " Alexander Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Helge Hafting @ 2002-09-10 12:15 UTC (permalink / raw)
  To: Rusty Russell, Jens Axboe, andre; +Cc: linux-kernel

Rusty Russell wrote:
[...]
>          /dev/ide/host0/bus0/target0/lun0: p1 p2 p3
> 
> But it doesn't seem to have registered the third partition (/usr):
> 
>         (none):~# cat /proc/partitions
>         major minor  #blocks  name
> 
>            3     0   19938240 ide/host0/bus0/target0/lun0/disc
>            3     1     489951 ide/host0/bus0/target0/lun0/part1
>            3     2     128520 ide/host0/bus0/target0/lun0/part2
>            3     3   19318162 hda3
> 
>         (none):~# ls -l /dev/ide/host0/bus0/target0/lun0/
>         disc   part1  part2
> 
> Devfs issue?  IDE screwage?

I see the same thing.  Both of my IDE drives comes up without
the last partition. (Missing ide/host0/bus0/target0/lun0/part3
and ide/host0/bus1/target0/lun0/part7, loosing /usr and /usr/src
in my case.)

There's lots of updates in code that deals with partitions
and devfs, I couldn't find anything obvious wrong though.

Helge Hafting

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

* [PATCH] Re: Missing IDE partition 3 of 3 on 2.5.34?
  2002-09-10 12:15 ` Helge Hafting
@ 2002-09-10 13:42   ` Alexander Viro
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Viro @ 2002-09-10 13:42 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Helge Hafting, Rusty Russell, Jens Axboe, andre, linux-kernel



On Tue, 10 Sep 2002, Helge Hafting wrote:

> I see the same thing.  Both of my IDE drives comes up without
> the last partition. (Missing ide/host0/bus0/target0/lun0/part3
> and ide/host0/bus1/target0/lun0/part7, loosing /usr and /usr/src
> in my case.)
> 
> There's lots of updates in code that deals with partitions
> and devfs, I couldn't find anything obvious wrong though.

devfs side.  Fix:

--- C34/fs/partitions/check.c	Mon Sep  9 20:39:52 2002
+++ /tmp/check.c	Tue Sep 10 09:39:47 2002
@@ -327,7 +327,7 @@
 	devfs_auto_unregister(dev->disk_de, slave);
 	if (!(dev->flags & GENHD_FL_DEVFS))
 		devfs_auto_unregister (slave, dir);
-	for (part = 1, p++; part < max_p; part++, p++)
+	for (part = 1; part < max_p; part++, p++)
 		if (p->nr_sects)
 			devfs_register_partition(dev, part);
 #endif


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

end of thread, other threads:[~2002-09-10 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-10  5:07 Missing IDE partition 3 of 3 on 2.5.34? Rusty Russell
2002-09-10 12:15 ` Helge Hafting
2002-09-10 13:42   ` [PATCH] " Alexander Viro

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