2002-09-10 05:37:03

by Rusty Russell

[permalink] [raw]
Subject: Missing IDE partition 3 of 3 on 2.5.34?

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.


2002-09-10 12:09:15

by Helge Hafting

[permalink] [raw]
Subject: Re: Missing IDE partition 3 of 3 on 2.5.34?

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

2002-09-10 13:37:27

by Alexander Viro

[permalink] [raw]
Subject: [PATCH] Re: Missing IDE partition 3 of 3 on 2.5.34?



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