[opensuse] How to get diskspace of my ramfs filesystem?
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: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 08 December 2007 04:09:30 am Jake Conk wrote:
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:
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
Is /tmp a reserved name, maybe another mount point? Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
ka1ifq wrote:
On Saturday 08 December 2007 04:09:30 am Jake Conk wrote:
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:
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
Is /tmp a reserved name, maybe another mount point?
There are no reserved names for either directories or files in any Unix or Linux system. That's a trait of Messy-DOS and related messy operating systems.
Mike
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
ka1ifq wrote:
On Saturday 08 December 2007 04:09:30 am Jake Conk wrote:
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
From the man mount page
Mount options for ramfs Ramfs is a memory based filesystem. Mount it and you have it. Unmount it and it is gone. Present since Linux 2.3.99pre4. There are no mount options. ~~ I'm guessing what you really want to use is tmpfs which actually does have a size option. Ramdisks are of a defined size (at least they were in kernel 2.4 or less, they have changed in 2.6 IIRC) and are only writeable by root (in 2.6), tmpfs on the other hand is user-writeable and size-defineable. Cheers Todd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Aaron Kulkis
-
Jake Conk
-
ka1ifq
-
todd@sohovfx.com