In the latest Interview Question series, there are four more wonderful, beautiful, questions being posed.
One of the questions involves "tmpfs" and "ramfs". I wanted to ask my own
question regarding these two items.
For starters, "tmpfs" and "ramfs" refer to filesystems. Below, I'll show you a
very simple example of how to create each of these:
tmpfs creation:
# mkdir -p /tmp/tmp_filesystem
# mount -t tmpfs -o size=10g tmpfs /tmp/tmp_filesystem
ramfs creation:
# mkdir -p /tmp/ram_filesystem
# mount -t ramfs -o size=10g ramfs /tmp/ram_filesystem
When I execute my old friend
# df -h
to see the filesystems that I have mounted, I see the tmpfs filesystem, but
not the ramfs filesystem.
My question: Why don't I see the ramfs filesystem in the output of this
command????
Note: The intended audience is RHCE and below!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.