its not quite the answer you are looking for, but:
the command
Code:
find / -exec cat {} \; > /dev/null
would read every file on the disk, and output them to /dev/null (ie nowhere).
when you read a file on linux the kernel keeps a copy in memory. it will only be remove from the memory cache if the space is needed by running programs.
you might want to tune the find bit of them command (see man find), so that it skips things like /proc (which is in memory anyway)
the whole coping your root partition to a ram disk and then running from that is possible (as people have said some live cds do it). i am not sure how one does it though. try looking up pivot_root and initrd.
--
found this http://www.schnozzle.org/~coldwell/diskless/
Bookmarks