Date: Fri, 25 Aug 2000 12:27:12 -0400 (EDT) From: Robert Gash <gashalot@gashalot.com> To: freebsd-questions@freebsd.org Subject: Disk usage reporting error Message-ID: <Pine.LNX.4.21.0008251212550.28762-100000@raq.tabernae.com>
next in thread | raw e-mail | index | archive | help
I recently installed FreeBSD 4.1 on a fileserver here at my place that has the nice feature of having a 61G Maxtor DiamondMax drive to store the data on. My problem is this: after creating the slices for the system (/ /usr /var /tmp) I then created a /data slice for the remaining disk space (about 52G). This is, of course, all UFS and is running "dangerously dedicated." The question I have relates to the disk usage displayed in `df`. The /data slice is approximately 52G in size. When I run the `df -h` command, it displays the size properly. However, I only have about 4GB worth of data on the partition right now (which is displayed properly in the "Used" column), yet df is reporting only 44G of space is available for use. For me this is more than enough, but I want to know where my "extra" 4GB of disk has gone in this instance, because 52 - 4 != 44. I know that you lose a good deal of space on large partitions to superblock backups and FS-related information, but should I be losing 4GB of space to this, and more importantly should df be deducting that from only the available amount instead of both "size" and "available?" Here's some diagnostic information for those of you who care (I know the compile date is a little early, I had neglected to ntpdate the system yet [bios battery dosen't keep time]): uname -a ------------------------------------------------------------- FreeBSD jamesbrown.dorm.gashalot.com 4.1-STABLE FreeBSD 4.1-STABLE #1: Sat Jan 1 06:08:53 EST 2000 gashalot@jamesbrown.dorm.gashalot.com:/usr/src/sys/compile/JAMESBROWN i386 ------------------------------------------------------------- df ------------------------------------------------------------- Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 254063 33139 200599 14% / /dev/ad0s1h 54877102 3976129 46510805 8% /data /dev/ad0s1f 254063 8 233730 0% /tmp /dev/ad0s1e 2032623 1326921 543093 71% /usr /dev/ad0s1g 254063 2306 231432 1% /var procfs 4 4 0 100% /proc ------------------------------------------------------------- df -h ------------------------------------------------------------- Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 248M 32M 196M 14% / /dev/ad0s1h 52G 3.8G 44G 8% /data /dev/ad0s1f 248M 8.0K 228M 0% /tmp /dev/ad0s1e 1.9G 1.3G 530M 71% /usr /dev/ad0s1g 248M 2.3M 226M 1% /var procfs 4.0K 4.0K 0B 100% /proc ------------------------------------------------------------- dmesg |grep ad0 ------------------------------------------------------------- ad0: 58623MB <Maxtor 96147U8> [119108/16/63] at ata0-master using UDMA33 ------------------------------------------------------------- Thanks for any help anybody can provide. -R -- Robert Gash - CS Major \ gashalot@gashalot.com - gte393u@prism Georgia Tech - Atlanta GA \ www.gashalot.com - www.techwreck.net "I can't complain, but sometimes I still do." -Joe Walsh 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?Pine.LNX.4.21.0008251212550.28762-100000>