2002-09-13 20:58:00

by Cress, Andrew R

[permalink] [raw]
Subject: RE: 2.5.34 unable to mount root fs on 09:00 (smp,raid1,devfs,scsi )

Helge,

You've probably already checked this, but is CONFIG_BLK_DEV_MD=y ?
It won't work if you have a root mirror and this is a configured as a
module.

Andy Cress

-----Original Message-----
From: Helge Hafting [mailto:[email protected]]
Sent: Thursday, September 12, 2002 1:24 PM
To: Linux Kernel Mailing List
Subject: 2.5.34 unable to mount root fs on 09:00 (smp,raid1,devfs,scsi)

2.5.33 works. 2.5.34 and 2.5.34-bk3 won't mount the
root fs. The root fs is on /dev/md/1, composed
of 2 partitions on different scsi disks.

The RAID-1 setup is autodetected, so it don't look
like a hardware or scsi problem. Everything seems normal
until the root mount fail and the kernel hangs. Not
even sysrq works after that.

Helge Hafting
-


2002-09-13 21:32:45

by Gregoire Favre

[permalink] [raw]
Subject: Re: 2.5.34 unable to mount root fs on 09:00 (smp,raid1,devfs,scsi )

Hello,

Maybe what you suggest could be right ;-)

Martin Fahr send me that:

--- 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

Which I applied, and compiled and magically, I can now boot 2.5.34!!!
He also explained me that it could be because the fs is on the last
partition (which is my case)...

Hope it could be of some helps for other too ;-)

Gr?goire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]