Skip to contentSkip to conversation

Missing IDE partition 3 of 3 on 2.5.34?

DISCUSSION Rusty Russell 3 participants 3 messages Sep 10, 2002

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

Rusty Russell wrote:
[...]

Quoted 12 lines
         /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
Quoted 4 lines
        (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

#2 lore raw
Quoted 7 lines · Helge Hafting

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:

tmp/check.c renamed from fs/partitions/check.c +1 -1
@@ -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