Bug 147307 - -g (geometry) "sectors" reported invalid
Summary: -g (geometry) "sectors" reported invalid
Alias: None
Product: Fedora
Classification: Fedora
Component: hdparm
Version: rawhide
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-02-06 23:53 UTC by Jan Kratochvil
Modified: 2007-11-30 22:10 UTC (History)
0 users

Clone Of:
Last Closed: 2005-06-09 11:47:48 UTC

Attachments (Terms of Use)

Description Jan Kratochvil 2005-02-06 23:53:41 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6)

Description of problem:
Linux kernels detects disk/partition size correctly but hdparm(8)
reports wrong number.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. cat /sys/block/hda/size
2. hdparm -g /dev/hda

Actual Results:  398297088

 geometry     = 24792/255/63, sectors = 203928109056, start = 0

Expected Results:  398297088

 geometry     = 24792/255/63, sectors = 398297088, start = 0

Additional info:

It may be a bug in Linux kernel instead. Using: kernel-2.6.10-1.760_FC3
The same bug applies to fc3 hdparm package.

Comment 1 Jan Kratochvil 2005-02-07 18:32:27 UTC
I checked this bug is really a Linux kernel bug.
Reposted as Bug 147373.

Comment 2 Jan Kratochvil 2005-06-04 06:57:33 UTC
Not a kernel bug, it is really a hdparm(8) bug, sorry.
Bug is still present in Fedora/devel hdparm-5.9-3 - 200GB drive:

# hdparm -g /dev/hda

 geometry     = 24792/255/63, sectors = 203928109056, start = 0

while when I use .tar.gz hdparm-6.1 it is fixed:
/tmp/hdparm-6.1# ./hdparm -g /dev/hda

 geometry     = 24792/255/63, sectors = 398297088, start = 0

Probably the best fix is hdparm package update to 6.1...

Note You need to log in before you can comment on or make changes to this bug.