Re: Getting the free disk space and aquamon.
Re: Getting the free disk space and aquamon.
- Subject: Re: Getting the free disk space and aquamon.
- From: Sherm Pendley <email@hidden>
- Date: Fri, 20 Dec 2002 09:05:55 -0500
On Friday, December 20, 2002, at 06:25 AM, Jonathan Guy wrote:
I'm trying to figure out how to get the free disk space of the boot
"disk", NOT the boot "partition". Can anyone help on this one I've
racked my
brains for days over this one and haven't gotten anywhere.
One thing that works, but is a bit klunky, is to parse the output of the
"df" command. The first column lists the filesystem, which for most
physical media is /dev/diskXsY, where X is the disk number and Y the
slice (partition) number. The boot partition is the one mounted at "/" -
mount points are in the rightmost column. Once you've found the disk
number that the boot partition is on, you can add up the free blocks on
all partitions located on that drive.
One drawback to this method is that "df" only displays currently mounted
partitions. Partitions that aren't mounted for whatever reason therefore
won't be counted. That includes the hidden driver partitions used by
MacOS, and those with any "foreign" filesystems installed.
Also if anyone has the source code for "aquamon", a copy would be
very
much appreciated as all trace of it seems to have disappeared from the
web.
Which search engine did you try? I searched google.com for "aquamon,"
and the very first result linked to its home page. The second linked
directly to its download page. It's worth noting that the "Main download
site" link on the download page is apparently broken; I downloaded it
from the "Mirror one" link.
sherm--
UNIX: Where /sbin/init is Job 1.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.