On Thursday 08 February 2007, Michael Higgins wrote:
> Hello, list --
>
>
> # df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda3              20G   12G  7.5G  61% /
> udev                  236M  2.7M  233M   2% /dev
> shm                   236M     0  236M   0% /dev/shm
> /dev/hda5              14G   13G  1.3G  91% /home/col/dump
> /dev/hda6              14G   12G  2.0G  86% /home/col/music
>
> lbg2 col # fdisk /dev/hda
>
> Command (m for help): p
>
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 16 heads, 63 sectors/track, 155061 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
>
> What did I do wrong? It looks like my 80 GB drive is more like 50 GB.
> How did I 'lose' the capacity?

No, read it again. It doesn't say 50GB.

It says (line 1) that you have an 80G disk comprising 155061 cylinders 
(line 2), each of which are 516096 *bytes* long.

btw, lines 2 and 3 are bogus anyway, your drive doesn't look like that, 
and no drive on the market has looked like that for more than 10 years 
now. It actually means more something along the lines of 

"Your disk is 80GB big, and to make your life easier you can consider it 
to be made up of 155061 cylinders each 0.5M big. Other schemes exist 
but in actual fact it's really just a long string of 156301488 sectors, 
numbered sequentially, each one being 512 bytes long"

hth

alan


-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
-- 
gentoo-user@gentoo.org mailing list

Reply via email to