[nSLUG] Hard Disk question

George N. White III gnwiii at gmail.com
Mon Mar 3 18:57:37 AST 2008

On Mon, Mar 3, 2008 at 8:49 AM, J. Paul Bissonnette <jpaulb at eastlink.ca>

> I have a 80 GB HDD with 0 free space and 25982 file occupying 57.6
> GB........   22.4 GB seem to have evaporated. Anyway of recovering this
> space? I am using Debian Testing.

If 80GB was the advertised capacity of the drive, 22.4 GB is probably an
What does "df -k" give?

Many drive manufacturers use "little g" Giga's -- 1gB=1000*1000*1000 bytes,
although you
think it should be 1GB=1024*1024*1024.

There is more overhead when a filesystem is created, and some vendors (Dell)
use a
"hidden" partition with diagnostics and or restore data.  My 160gB disk

# fdisk -l /dev/sdb

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004f0ee

   Device Boot      Start         End          Blocks   Id  System
/dev/sdb1   *            1             13         104391    b  W95 FAT32
/dev/sdb2              14       19457   156183930   8e  Linux LVM

$ df /Data
Filesystem           1K-blocks      Used Available Use% Mounted on
                        149280940  44416316  97159232  32% /Data

so over 156 million 1-K blocks in the partition ends up as less than 150
blocks of formatted space.

George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nslug.ns.ca/mailman/private/nslug/attachments/20080303/e95446d4/attachment-0001.html>

More information about the nSLUG mailing list