[NTLUG:Discuss] How does non-admin check for available disk space when...
Richard Geoffrion
ntlug at rain4us.net
Mon Jul 9 10:44:26 CDT 2007
Chris Cox wrote:
> Richard Geoffrion wrote:
>
>> there is no access to read the table of mounted filesystems?
>>
>> df doesn't work...so how does a regular user find out how much disk
>> space is available and/or in-use? Well the in-use could be du....
>>
> df DOES work. The better question is why doesn't yours
> work?? (puzzled)
>
the hosting provider doesn't allow me to get to the 'real' /etc dir ??
That's all I can figure.
rtcg at host155:/etc$ /bin/df
df: cannot read table of mounted filesystems: No such file or directory
Hence the reason why I was wondering if there was another utility (or
method) to read available disk space.
> But if it didn't work, you can see mounted
> file systems by cat /etc/mtab or cat /proc/mounts, you
> can get more info by cat /proc/partitions and
> cat /proc/diskstats, but a lot of that is meant
> to be read through various tools.
>
>
the /proc that I can see is empty.
> du is different from df. df is the better way to see the
> space available to a filesystem. du can be used to examine
> directory and file utilization for a directory, which doesn't
> have to mean the same filesystem,
>
> <snipping so that I don't OVER_REPLY>
>
du is to calculate the size of files - check!
'du -x' is good to keep 'du' on one file system - check!
I was just curious if there was another way to use du to calculate
usage. I'm probably out of luck on this issue.
--
Richard
More information about the Discuss
mailing list