Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* kernel detecting incorrect disk size
@ 2003-08-26 23:17 Eric
  2003-08-27  2:35 ` Jafir Elkurd
  0 siblings, 1 reply; 8+ messages in thread
From: Eric @ 2003-08-26 23:17 UTC (permalink / raw)


Debian Linux 3.0 Alpha is detecting my 200GB disks as 128GB and I don't
know why. From dmesg:
hda: Maxtor 6Y200P0, 131071MB w/7936kB Cache, CHS=16709/255/63, (U)DMA

I have a ev67 DP264 running Debian 3.0 kernel 2.2.20 with a custom kernel
(with RAID patches applied), however the stock kernel exhibited the same
problem. The two disks are Maxtor 200GB (6Y200P0). They're installed in a
master/slave configuration to the single on-board ATA interface.

I have tried partitioning a disk as both BSD & DOS; if I then make a fs on
either type of partition the actual space rendered is only ~128GB. If it
matters... prior to the custom compile during 'make menuconfig' I had
selected the new ATA driver. I wondered if that sufficent so I recompiled
after also selecting all the "bugfix" ATA support for various chipsets.
(Not sure which chipset the DP264 Tsunami uses.) No changes resulted and
Linux still reports the disks as 128GB.

TIA,

Eric


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: kernel detecting incorrect disk size
  2003-08-26 23:17 kernel detecting incorrect disk size Eric
@ 2003-08-27  2:35 ` Jafir Elkurd
  2003-08-27 14:05   ` Eric
  0 siblings, 1 reply; 8+ messages in thread
From: Jafir Elkurd @ 2003-08-27  2:35 UTC (permalink / raw)


Is it showing up in the BIOS with the proper size?  If it is, then you may
need a patch or a driver that supports 48bit LBA.  I don't think that Linux
does by default.


"Eric" <eric@cook.rm-this-word.met.edu> wrote in message
news:pan.2003.08.26.23.17.55.788359@cook.rm-this-word.met.edu...
> Debian Linux 3.0 Alpha is detecting my 200GB disks as 128GB and I don't
> know why. From dmesg:
> hda: Maxtor 6Y200P0, 131071MB w/7936kB Cache, CHS=16709/255/63, (U)DMA
>
> I have a ev67 DP264 running Debian 3.0 kernel 2.2.20 with a custom kernel
> (with RAID patches applied), however the stock kernel exhibited the same
> problem. The two disks are Maxtor 200GB (6Y200P0). They're installed in a
> master/slave configuration to the single on-board ATA interface.
>
> I have tried partitioning a disk as both BSD & DOS; if I then make a fs on
> either type of partition the actual space rendered is only ~128GB. If it
> matters... prior to the custom compile during 'make menuconfig' I had
> selected the new ATA driver. I wondered if that sufficent so I recompiled
> after also selecting all the "bugfix" ATA support for various chipsets.
> (Not sure which chipset the DP264 Tsunami uses.) No changes resulted and
> Linux still reports the disks as 128GB.
>
> TIA,
>
> Eric




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: kernel detecting incorrect disk size
  2003-08-27  2:35 ` Jafir Elkurd
@ 2003-08-27 14:05   ` Eric
  2003-08-27 17:02     ` Jayson Garrell
  0 siblings, 1 reply; 8+ messages in thread
From: Eric @ 2003-08-27 14:05 UTC (permalink / raw)


Can you be more specific, i.e. how may I check if SRM detects the disk
size properly? Also, to which linux were you referring? Kernel versions
2.2.x only, or all kernels, e.g. 2.4.x? Thanks,

Eric

On Tue, 26 Aug 2003 21:35:42 -0500, Jafir Elkurd wrote:

> Is it showing up in the BIOS with the proper size?  If it is, then you may
> need a patch or a driver that supports 48bit LBA.  I don't think that Linux
> does by default.
> 
> 
> "Eric" <eric@cook.rm-this-word.met.edu> wrote in message
> news:pan.2003.08.26.23.17.55.788359@cook.rm-this-word.met.edu...
>> Debian Linux 3.0 Alpha is detecting my 200GB disks as 128GB and I don't
>> know why. From dmesg:
>> hda: Maxtor 6Y200P0, 131071MB w/7936kB Cache, CHS=16709/255/63, (U)DMA
>>
>> I have a ev67 DP264 running Debian 3.0 kernel 2.2.20 with a custom kernel
>> (with RAID patches applied), however the stock kernel exhibited the same
>> problem. The two disks are Maxtor 200GB (6Y200P0). They're installed in a
>> master/slave configuration to the single on-board ATA interface.
>>
>> I have tried partitioning a disk as both BSD & DOS; if I then make a fs on
>> either type of partition the actual space rendered is only ~128GB. If it
>> matters... prior to the custom compile during 'make menuconfig' I had
>> selected the new ATA driver. I wondered if that sufficent so I recompiled
>> after also selecting all the "bugfix" ATA support for various chipsets.
>> (Not sure which chipset the DP264 Tsunami uses.) No changes resulted and
>> Linux still reports the disks as 128GB.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: kernel detecting incorrect disk size
  2003-08-27 14:05   ` Eric
@ 2003-08-27 17:02     ` Jayson Garrell
  2003-08-29  0:34       ` Eric
  0 siblings, 1 reply; 8+ messages in thread
From: Jayson Garrell @ 2003-08-27 17:02 UTC (permalink / raw)


Eric wrote:

> Can you be more specific, i.e. how may I check if SRM detects the disk
> size properly? Also, to which linux were you referring? Kernel versions
> 2.2.x only, or all kernels, e.g. 2.4.x? Thanks,
> 
> Eric
> 
> On Tue, 26 Aug 2003 21:35:42 -0500, Jafir Elkurd wrote:
> 
>> Is it showing up in the BIOS with the proper size?  If it is, then you
>> may
>> need a patch or a driver that supports 48bit LBA.  I don't think that
>> Linux does by default.
>> 
>> 
>> "Eric" <eric@cook.rm-this-word.met.edu> wrote in message
>> news:pan.2003.08.26.23.17.55.788359@cook.rm-this-word.met.edu...
>>> Debian Linux 3.0 Alpha is detecting my 200GB disks as 128GB and I don't
>>> know why. From dmesg:
>>> hda: Maxtor 6Y200P0, 131071MB w/7936kB Cache, CHS=16709/255/63, (U)DMA
>>>
>>> I have a ev67 DP264 running Debian 3.0 kernel 2.2.20 with a custom
>>> kernel (with RAID patches applied), however the stock kernel exhibited
>>> the same problem. The two disks are Maxtor 200GB (6Y200P0). They're
>>> installed in a master/slave configuration to the single on-board ATA
>>> interface.
>>>
>>> I have tried partitioning a disk as both BSD & DOS; if I then make a fs
>>> on either type of partition the actual space rendered is only ~128GB. If
>>> it matters... prior to the custom compile during 'make menuconfig' I had
>>> selected the new ATA driver. I wondered if that sufficent so I
>>> recompiled after also selecting all the "bugfix" ATA support for various
>>> chipsets. (Not sure which chipset the DP264 Tsunami uses.) No changes
>>> resulted and Linux still reports the disks as 128GB.

Well unless the ide controller is ATA133 you will never get the correct
drive size. You need to get a ATA133 pci controller, I have the maxtor
(rebranded promise card) and it is working fine in my AS 200 4/233 with
4x160G disks.

Jayson Garrell


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: kernel detecting incorrect disk size
  2003-08-27 17:02     ` Jayson Garrell
@ 2003-08-29  0:34       ` Eric
  2003-08-29  1:02         ` Mathieu Chouquet-Stringer
  0 siblings, 1 reply; 8+ messages in thread
From: Eric @ 2003-08-29  0:34 UTC (permalink / raw)


On Wed, 27 Aug 2003 10:02:58 -0700, Jayson Garrell wrote:

>>> "Eric" <eric@cook.rm-this-word.met.edu> wrote in message
>>> news:pan.2003.08.26.23.17.55.788359@cook.rm-this-word.met.edu...
>>>> Debian Linux 3.0 Alpha is detecting my 200GB disks as 128GB and I
>>>> don't know why. From dmesg:
>>>> hda: Maxtor 6Y200P0, 131071MB w/7936kB Cache, CHS=16709/255/63,
>>>> (U)DMA
[...]
>>>> I have tried partitioning a disk as both BSD & DOS; if I then make a
>>>> fs on either type of partition the actual space rendered is only
>>>> ~128GB.
[....]
>
> Well unless the ide controller is ATA133 you will never get the correct
> drive size. You need to get a ATA133 pci controller, I have the maxtor
> (rebranded promise card) and it is working fine in my AS 200 4/233 with
> 4x160G disks.
> 
> Jayson Garrell

Well, I believe you, but can you help me understand why please? I have
successfully used a 10GB drive on a PI-90 (x86) BIOS that wouldn't
understand anything larger than 2GB; the kernel stepped in and "fixed" it.
This must be different in this case, but I wonder how? I've tried
upgrading to 2.4.18, but it doesn't help. Passing the real drive geometry
(395136/16/63) to the kernel (with our without 'noprobe') doesn't work
either.

BTW, I have tried installing a Promise TX2 (Ultra 133 x 2 channel) card,
but SRM does not detect it. I wish I could find out which PCI ATA adapter
cards would work!

Eric


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: kernel detecting incorrect disk size
  2003-08-29  0:34       ` Eric
@ 2003-08-29  1:02         ` Mathieu Chouquet-Stringer
  2003-08-29 15:11           ` Eric
  0 siblings, 1 reply; 8+ messages in thread
From: Mathieu Chouquet-Stringer @ 2003-08-29  1:02 UTC (permalink / raw)


"Eric" <eric@cook.rm-this-word.met.edu> writes:
> Well, I believe you, but can you help me understand why please? I have
> successfully used a 10GB drive on a PI-90 (x86) BIOS that wouldn't
> understand anything larger than 2GB; the kernel stepped in and "fixed"
> it.

Because this limitation was a BIOS limitation not a driver one. In
your case it's the driver that doesn't know about LBA48 (note that an
ATA133 is absolutely not needed).

> This must be different in this case, but I wonder how? I've tried
> upgrading to 2.4.18, but it doesn't help. Passing the real drive geometry
> (395136/16/63) to the kernel (with our without 'noprobe') doesn't work
> either.

AFAIK the geometry is not really used by linux and it doesn't mean anything
anyway.

> BTW, I have tried installing a Promise TX2 (Ultra 133 x 2 channel) card,
> but SRM does not detect it. I wish I could find out which PCI ATA adapter
> cards would work!

Do you want to boot from it? Because if you don't, that shouldn't be an
issue.
-- 
Mathieu Chouquet-Stringer              E-Mail : mathieu@newview.com
       Never attribute to malice that which can be adequately
                    explained by stupidity.
                     -- Hanlon's Razor --


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: kernel detecting incorrect disk size
  2003-08-29  1:02         ` Mathieu Chouquet-Stringer
@ 2003-08-29 15:11           ` Eric
  2003-08-29 15:40             ` Mathieu Chouquet-Stringer
  0 siblings, 1 reply; 8+ messages in thread
From: Eric @ 2003-08-29 15:11 UTC (permalink / raw)


On Thu, 28 Aug 2003 21:02:41 -0400, Mathieu Chouquet-Stringer wrote:
> "Eric" <eric@cook.rm-this-word.met.edu> writes:
>> Well, I believe you, but can you help me understand why please? I have
>> successfully used a 10GB drive on a PI-90 (x86) BIOS that wouldn't
>> understand anything larger than 2GB; the kernel stepped in and "fixed"
>> it. [snip] This must be different in this case, but I wonder how? I've
>> tried upgrading to 2.4.18, but it doesn't help. [snip]
> 
> Because this limitation was a BIOS limitation not a driver one. In your
> case it's the driver that doesn't know about LBA48 (note that an ATA133
> is absolutely not needed).

I suppose you're implying the ide driver for Alpha is not the same as for
x86 linux and therefore doesn't necessarily support LBD48. Is that
correct? If so, I wonder why Jason Garrell's previous post stated, "I have
the maxtor (rebranded promise card) and it is working fine in my AS 200
4/233 with 4x160G disks". One assumes he's using linux and is therefore
using pretty much the same ide driver. Is it a case where if one has a
BIOS (on-card in this case) that can do LBA48 then that'll allow the
driver to work with the BIOS instructions directly, bypassing the
lack-of-LBA48-in-the-driver issue? TIA for helping me to better understand
this issue.

>> BTW, I have tried installing a Promise TX2 (Ultra 133 x 2 channel)
>> card, but SRM does not detect it. I wish I could find out which PCI ATA
>> adapter cards would work!
> 
> Do you want to boot from it? Because if you don't, that shouldn't be an
> issue.

No. So... are you implying that if I compile support for it in the kernel
that the OS will detect it at boot-time? That would be great. I did
compile in support for the PDC20268 (althouh the TX2 is a PDC20269). Maybe
it'll work. Please advise if I should try it again. It didn't work last
time, but then again I hadn't compiled in the non-default PDC20268 driver.
Thanks,

Eric


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: kernel detecting incorrect disk size
  2003-08-29 15:11           ` Eric
@ 2003-08-29 15:40             ` Mathieu Chouquet-Stringer
  0 siblings, 0 replies; 8+ messages in thread
From: Mathieu Chouquet-Stringer @ 2003-08-29 15:40 UTC (permalink / raw)


"Eric" <eric@cook.rm-this-word.met.edu> writes:
> I suppose you're implying the ide driver for Alpha is not the same as for
> x86 linux and therefore doesn't necessarily support LBD48.

The support for LBA48 is chipset dependant: some older chipsets can while
some can't, same with the new chipsets. Then, you have the driver: if the
driver doesn't know anything about LBA48 (which is needed for drive larger
than 1xx GB) obviously it won't work.

> Is that correct? 

I haven't look at the ide code so I can't confirm.

> If so, I wonder why Jason Garrell's previous post stated, "I have the
> maxtor (rebranded promise card) and it is working fine in my AS 200 4/233
> with 4x160G disks". One assumes he's using linux and is therefore using
> pretty much the same ide driver. 

Ok.

> Is it a case where if one has a BIOS (on-card in this case) that can do
> LBA48 then  that'll allow the driver to work with the BIOS instructions
> directly, bypassing the lack-of-LBA48-in-the-driver issue? TIA for
> helping me to better understand this issue.

Alright, so here is the thing: nowadays almost nothing uses the bios to
"talk" to the card. It is way too slow. The bios is only there to get the
card recognized by the computer during the boot process so you can boot
from it (ie ide or scsi cards) or get some output (video card). The end
result of that is even if the bios on the card knows about LBA48 it doesn't
mean the driver does.

> No. So... are you implying that if I compile support for it in the kernel
> that the OS will detect it at boot-time? That would be great. I did
> compile in support for the PDC20268 (althouh the TX2 is a PDC20269). Maybe
> it'll work. Please advise if I should try it again. It didn't work last
> time, but then again I hadn't compiled in the non-default PDC20268 driver.

Well the detection by SRM is only useful if you want SRM to be able to boot
from the devices connected to this card but it doesn't mean the OS (Linux
in our case) won't be able to us it. Known examples are video cards that
are unrecognized by SRM but work fine with XFree.

So if I get you correctly (and the quote from Jason Garrell) I assume the
driver knows about LBA48 so yes my understanding is that it should work.
So give it a shot and let us know.
-- 
Mathieu Chouquet-Stringer              E-Mail : mathieu@newview.com
       Never attribute to malice that which can be adequately
                    explained by stupidity.
                     -- Hanlon's Razor --


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-08-29 15:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26 23:17 kernel detecting incorrect disk size Eric
2003-08-27  2:35 ` Jafir Elkurd
2003-08-27 14:05   ` Eric
2003-08-27 17:02     ` Jayson Garrell
2003-08-29  0:34       ` Eric
2003-08-29  1:02         ` Mathieu Chouquet-Stringer
2003-08-29 15:11           ` Eric
2003-08-29 15:40             ` Mathieu Chouquet-Stringer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox