fdisk geometry issue
Hello,
After 12 hours fiddling with disk geometry issues, I give up :)
I want to fdisk an IDE WD800JB drive for use with Linux in a Sun. According to Western Digital, the geometry is [1]:
Cylinders 16383
Heads 16
Sectors/Track 63
Landing Zone 16383
WPC 16383
According to the Linux kernel (booted from Debian CD) the geometry is
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS5061/16/63, UDMA(66)
If I try to create a Sun disklabel using the WDC paramters, I end up with a disk that is too small:
Disk /dev/hda (Sun disk label): 16 heads, 63 sectors, 16383 cylinders Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System /dev/hda1 0 16282 8206128 83 Linux native /dev/hda2 u 16282 16383 50904 82 Linux swap /dev/hda3 0 16383 8257032 5 Whole disk
If I try to enter the linux kernel geometry, I get a "Value out of range" error because it only accepts a maximum of 65535 cylinders (linux reports 155061).
So I followed the suggestion of a previous mail on this list [2], I use the following figures:
cylinders: 155061 (5061/3)
heads: 48 (16*3)
With these values, fdisk reports the correct disk size.
HOWEVER, after booting 2.4.25 from the newly partitioned disk, 'df' shows a total disk size of about 2.2 petabytes! I didn't get any seeking errors yet, but it does look a bit fragile to me :)
goldstrike:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda1 2384623153927 16439106515 2247050084910 1% /
What am I doing wrong ?
Thanks!
Willem
[1] http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_sid=myER*16h&p_lva=&p_faqidi9&p_created37217622&p_spÏ9zcmNoPTEmcF9ncmlkc29ydD0mcF9yb3dfY250PTEmcF9zZWFyY2hfdGV4dD13ZDgwMGpiJnBfc2VhcmNoX3R5cGU9NCZwX2NhdF9sdmwxPTgyJnBfc29ydF9ieT1kZmx0JnBfcGFnZT0x&p_li[2] http://marc.theaimsgroup.com/?l=linux-sparc&m3929302422468&w=2
Quoted 5 lines · Willem de Groot
goldstrike:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda1 2384623153927 16439106515 2247050084910 1% /What am I doing wrong ?
Blerg, the Debian Woody 'df' is buggy. Nevermind.
Quoted 4 lines · Willem de Groot
cylinders: 155061 (=155061/3)
heads: 48 (16*3)With these values, fdisk reports the correct disk size.
BTW - I assume the cylinder count there is just a typo, but you got it right (51687) where it counts ;-)
- Dave
Signature · 5 lines
Uncle Cosmo, why do they call this a word processor? It's simple, Skyler. You've seen what food processors do to food, right? Please visit this link: http://rotter.net/israel