Hello,
I'm trying to my disk space information (total and used) of my RAM
disk file system. I mounted the filesystem like so:
$ mount -t ramfs ramfs /tmp -o size=150m
That works file and everything is working as expected except for df!
When I try to get the disk information with df this is what I get:
$ df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/md2 5.0G 1.3G 3.4G 28% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
debugfs 0 0 0 - /sys/kernel/debug
udev 3.0G 188K 3.0G 1% /dev
devpts 0 0 0 - /dev/pts
/dev/md0 99M 15M 79M 16% /boot
/dev/md4 223G 269M 211G 1% /srv
ramfs 0 0 0 - /tmp
/dev/md5 276G 299M 261G 1% /srv/db
fusectl 0 0 0 - /sys/fs/fuse/connections
securityfs 0 0 0 - /sys/kernel/security
afuse 0 0 0 - /srv/mount
Note: I even have to use the -a option in order to see it with these
other dummy file systems or else it wouldn't show up which I find odd
because its not exactly a dummy file system in my opinion... anyways...
I tried everything I can think of to try to get it to work but no luck
so unless someone has a solution I'm open to any hacks or other
solutions. For example, using du to get the amount of space used and
trying to figure out what else I could do to get the total disk size.
Thank you,
- Jake
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]