running a report on multiple partitions

Not applicable

Good Morning,

In our environment, we have a Macintosh HD partition and a Data partition.

I'm trying to run a report on the Data partition size to get an idea of how much data the students are using.

I can see the information in casper in the gui under storage, but I have no idea how to run an advanced search on this and dump the results in a csv file?

Thanks in advance.

Mike Parker
It Dept.
Kambala (school)

4 REPLIES 4

sean
Valued Contributor

Mike,

Have a look at the 'du' command

For example, try:

du -ch -d 1 /Volumes/data

as a start to give you an idea.

c print out overall total
h human readable
d depth of sub directories to display

tlarkin
Honored Contributor

df may be faster, but du will work

Not applicable

I think his question was how to search/report on inventory using this information (which is already in Casper). I've encountered some information fields myself that should be searchable but aren't...

sean
Valued Contributor

Ah, I see. Yeah, you don't appear to be able to pull the partition info, but run a df or du, depending on what information you require, as an extension attribute and then you can do an advanced search on that.

Sean