From owner-freebsd-questions Tue Jun 12 15:18:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dell.dannyland.org (dell.dannyland.org [64.81.36.13]) by hub.freebsd.org (Postfix) with ESMTP id AF25637B40A for ; Tue, 12 Jun 2001 15:18:28 -0700 (PDT) (envelope-from dannyman@toldme.com) Received: by dell.dannyland.org (Postfix, from userid 1001) id AA73A5BFA; Tue, 12 Jun 2001 15:18:35 -0700 (PDT) Date: Tue, 12 Jun 2001 15:18:35 -0700 From: dannyman To: Uncle Dave Cc: freebsd-questions@FreeBSD.ORG Subject: Re: disk allocation Message-ID: <20010612151835.I99558@toldme.com> References: <20010612212516.67683.qmail@web10604.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010612212516.67683.qmail@web10604.mail.yahoo.com>; from krabotnik@yahoo.com on Tue, Jun 12, 2001 at 02:25:16PM -0700 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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