Re: [PATCH] pdcraid and weird IDE geometry

Walt H
2003-07-18T13:41:41Z

Andries Brouwer wrote:
>
> I don't understand. Did you introduce some float? Remove it immediately.
>
> You just replace
>
> lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
> lba = lba * (ideinfo->head*ideinfo->sect);
> lba = lba - ideinfo->sect;
>
> by
>
> lba = ideinfo->capacity - 63;
>
> Then everything works for you, I suppose.
> Subsequently we wait for other people with the same hardware
> and see how the 63 varies as a function of their setup.
> (Or maybe you can go into the BIOS and specify different
> translations yourself?)
>
> (By the way, didnt your boot parameters lead to ideinfo->head = 16
> and ideinfo->sect = 63?)
>
> Andries
>
>

No, you're right. I was just trying to clarify the changes that I had
originally made. It seemed as there may have been some confusion that I
was doing more than the original. In my case, the simplified
ideinfo->capacity - ideinfo->sect should work just fine.
The boot parameters did take. The geometry was reported (correctly?) as
I had passed, but when trying to load the pdcraid module, access to the
disk failed with I/O errors. Seemed as if it was trying to read beyond
the end of the device. I used the identical geometry as reported by the
working drive.
Unfortunately, since this is the embedded FastTrak stuff, the BIOS
doesn't allow me to setup geometry for the drives.

I've just tried the simplified method and it works fine. I'll stick with
that on my end. Thanks for the help,

-Walt