From: Martin Rode <Martin.Rode@zeroscale.com>
To: linux-kernel@vger.kernel.org
Subject: New IBM IDE drive recognized as 40 GB but is 80 GB
Date: Tue, 19 Mar 2002 21:02:29 +0100 [thread overview]
Message-ID: <3C979955.22A4C79D@zeroscale.com> (raw)
Dear kernel hackers,
This problem is on a:
Linux version 2.4.18-pre3-ac1 (root@apu.pf-berlin.de) (gcc version 2.96
We have bought a new IDE hard drive:
hdb: IC35L040AVVA07-0, ATA DISK drive
This is wrongly recognized as 40GB (should be 80GB) drive:
>From dmesg:
====================
ide0: BM-DMA at 0xa800-0xa807, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xa808-0xa80f, BIOS settings: hdc:pio, hdd:pio
hda: 58633344 sectors (30020 MB) w/2048KiB Cache, CHS=3649/255/63,
(U)DMA
hdb: 80418240 sectors (41174 MB) w/1863KiB Cache, CHS=5005/255/63,
UDMA(33)
<----> this is wrong
But doing:
[root@apu /root]# cat /proc/ide/hdb/capacity
80418240 <--------------------------------- this is correct
[root@apu /root]#
shows the right capacity.
The CHS counts in dmesg are not the ones physically printed on the
drive. However, a kernel command line "hdb=16383/16/63" did not fix the
problem and resulted in the same GB count.
mke2fs on a fully allocated /dev/hdb1 shows 40GB to me.
Using LVM on the whole drive /dev/hdb same thing, only 40 GB.
What am I doing wrong?
Thanks for your help and a private cc, since I'm no subscriber.
Take Care,
;Martin
Below my kernel config (IDE relevant stuff):
Config:
=====================
[root@apu /root]# grep IDE /root/apukernel/linux/.config
# CONFIG_PARIDE is not set
# ATA/IDE/MFM/RLL support
CONFIG_IDE=y
# IDE, ATA and ATAPI Block devices
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_BLK_DEV_IDEDISK_VENDOR is not set
# CONFIG_BLK_DEV_IDEDISK_FUJITSU is not set
# CONFIG_BLK_DEV_IDEDISK_IBM is not set
# CONFIG_BLK_DEV_IDEDISK_MAXTOR is not set
# CONFIG_BLK_DEV_IDEDISK_QUANTUM is not set
# CONFIG_BLK_DEV_IDEDISK_SEAGATE is not set
# CONFIG_BLK_DEV_IDEDISK_WD is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDETAPE=m
CONFIG_BLK_DEV_IDEFLOPPY=m
CONFIG_BLK_DEV_IDESCSI=m
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not set
# CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
# CONFIG_AMD74XX_OVERRIDE is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_BLK_DEV_IDE_MODES=y
# Old CD-ROM drivers (not SCSI, not IDE)
# CONFIG_CD_NO_IDESCSI is not set
# CONFIG_INPUT_SIDEWINDER is not set
# CONFIG_VIDEO_DEV is not set
# CONFIG_VIDEO_SELECT is not set
[root@apu /root]#
next reply other threads:[~2002-03-19 20:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-19 20:02 Martin Rode [this message]
2002-03-20 0:38 ` Alan Cox
[not found] <no.id>
2002-03-19 20:47 ` Barry K. Nathan
2002-03-20 10:41 ` Martin Rode
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=3C979955.22A4C79D@zeroscale.com \
--to=martin.rode@zeroscale.com \
--cc=linux-kernel@vger.kernel.org \
/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
Powered by JetHome