public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Walt H <waltabbyh@comcast.net>
To: Nicklas Bondesson <nikomail@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
Date: Mon, 22 Dec 2003 18:07:26 -0800	[thread overview]
Message-ID: <3FE7A35E.9090507@comcast.net> (raw)
In-Reply-To: <BAY8-DAV18eeADZVX6Q0000db55@hotmail.com>

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

Nicklas Bondesson wrote:
> Actually the 2.4.18 seems to be the only one working. I'm sure someone out
> there have the proper fix for this. Who should I talk to in order to get
> this fixed? I'm willing to help out in any way I can.
> 
> /Nicke 

Well, not really sure. I thought Alan Cox did the original pdcraid.c for linux
some time back, but it really hasn't seen many changes. There were two general
Linux changes that took place back around 2.4.22 that might affect you. The
first, was the addition of the new Promise IDE driver, which you've got
configured. The second,  has to do with how Linux reports the geometry of a
drive. This change affected my setup which is why I wrote the patch for the
pdcraid driver. If your system makes it all the way through kernel booting
(which it seems to do), but can't mount the filesystem on the raid, it seems to
indicate the latter change affecting you also. The only other thing I can think
of, is to use my patch (attached) with patch -p1 < pdcraid.patch from your
/usr/src/linux and make sure that you've got both Promise drivers compiled in
your kernel. Recompile and see what happens. Outside of that, I'm stuck. Good luck,

-Walt

[-- Attachment #2: pdcraid.patch --]
[-- Type: text/plain, Size: 611 bytes --]

--- /usr/src/temp/linux-2.4.21-xfs/linux/drivers/ide/raid/pdcraid.c	2003-12-22 17:59:09.653139067 -0800
+++ linux/drivers/ide/raid/pdcraid.c	2003-07-21 20:47:14.000000000 -0700
@@ -361,7 +361,11 @@
 	if (ideinfo->sect==0)
 		return 0;
-	lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
-	lba = lba * (ideinfo->head*ideinfo->sect);
-	lba = lba - ideinfo->sect;
+	if (ideinfo->head!=255) {
+		lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
+		lba = lba * (ideinfo->head*ideinfo->sect);
+		lba = lba - ideinfo->sect; }
+	else {
+		lba = ideinfo->capacity - ideinfo->sect;
+	}
 
 	return lba;

  reply	other threads:[~2003-12-23  2:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-20 19:44 Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271) Walt H
2003-12-20 23:54 ` Nicklas Bondesson
2003-12-21  1:01   ` Walt H
2003-12-21 14:54     ` Nicklas Bondesson
2003-12-21 16:32       ` Walt H
2003-12-21 17:21         ` Nicklas Bondesson
2003-12-22  0:05         ` Nicklas Bondesson
2003-12-22  1:35           ` Walt H
2003-12-22 13:38             ` Nicklas Bondesson
2003-12-22 15:05               ` Walt H
2003-12-22 15:31                 ` Nicklas Bondesson
2003-12-22 23:22             ` Nicklas Bondesson
2003-12-23  0:59             ` Nicklas Bondesson
2003-12-23  2:07               ` Walt H [this message]
2003-12-23  3:18                 ` Nicklas Bondesson
2003-12-23  3:47                   ` Walt H
2003-12-23 13:41                     ` Nicklas Bondesson
2003-12-23 13:56                     ` Nicklas Bondesson
2003-12-23 15:05                       ` Walt H
2003-12-23 16:10                         ` Nicklas Bondesson
2003-12-24  0:54                           ` Walt H
2003-12-23 14:42                     ` Nicklas Bondesson
  -- strict thread matches above, loose matches on Subject: below --
2003-12-28 16:26 Nicklas Bondesson
2003-12-28 16:56 ` Marcelo Tosatti
2003-12-28 17:06   ` Nicklas Bondesson
2003-12-20 13:33 Nicklas Bondesson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FE7A35E.9090507@comcast.net \
    --to=waltabbyh@comcast.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nikomail@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox