Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2001 15:18:35 -0700
From:      dannyman <dannyman@toldme.com>
To:        Uncle Dave <krabotnik@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: disk allocation
Message-ID:  <20010612151835.I99558@toldme.com>
In-Reply-To: <20010612212516.67683.qmail@web10604.mail.yahoo.com>; from krabotnik@yahoo.com on Tue, Jun 12, 2001 at 02:25:16PM -0700
References:  <20010612212516.67683.qmail@web10604.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 12, 2001 at 02:25:16PM -0700, Uncle Dave wrote:
> Hello,
> 
> I am having a disk allocation problem with my FreeBSD
> 4.0 server. All files, even as small as 1K are being
> allocated 512K of space on the hard drives. This is
> resulting in 5 gig of data using 15 to 20 gig of disk
> space. I am rapidly running out of space on the server
> and have been unable to find any reference to disk
> allocation or this sort of problem on the web or in
> the FreeBSD handbook. I would greatly appreciate any
> help you could provide. Thanks.

Can you provide some sample output?  Like:

0-15:16 dannyman@dell ~> dd if=/dev/zero of=test bs=1k count=1
1+0 records in
1+0 records out
1024 bytes transferred in 0.000307 secs (3335897 bytes/sec)
0-15:16 dannyman@dell ~> ls -l test
-rw-r--r--  1 dannyman  dannyman  1024 Jun 12 15:16 test

This writes a 1k file to disk, and then lists the file as 1024 bytes
large.  One byte ...

1-15:16 dannyman@dell ~> rm test
0-15:16 dannyman@dell ~> df -k .
Filesystem   1K-blocks     Used    Avail Capacity  Mounted on
/dev/da0s1f    1336978   994852   235168    81%    /usr
0-15:16 dannyman@dell ~> dd if=/dev/zero of=test bs=1k count=100
100+0 records in
100+0 records out
102400 bytes transferred in 0.021923 secs (4670880 bytes/sec)
0-15:17 dannyman@dell ~> df -k .
Filesystem   1K-blocks     Used    Avail Capacity  Mounted on
/dev/da0s1f    1336978   994964   235056    81%    /usr
0-15:17 dannyman@dell ~> ls -l test
-rw-r--r--  1 dannyman  dannyman  102400 Jun 12 15:17 test

Here we create a 100k file, we see just over 100k difference on the
partition, and a file size of 102,400 bytes ...

-danny

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010612151835.I99558>