4/35 Back in my Good Ol DOS days, i used to create a ram disk for fast
read/write scratch space. How would I do this under linux? -crebbs
\_ Aren't files supposed to be cached in RAM?
\_ Files are "cached" in RAM. However, they must exist on disk
first. What i want to do is create a partition of RAM, say
/ramdisk, which i can write files too, work on and which
will stay around untill I delete_them/turn_off_the_computer.
\_ This is what swapfs is for. I don't know if it
exists under linux or not. Yuo can usually mount it
as /tmp.
\_ Geeze, would you bozos get a clue before you give stupid
answers?
mkdir /ramdisk
mke2fs /dev/ram5 5000 (that's 5 megs)
mount /dev/ram5 /ramdisk -tom
\_ Why do you feel you need this? If you think it will make accessing
files in the ramdisk faster you are almost certainly wrong. I
suppose a ramdisk might be faster under weird situations. If you
think ramdisks are good just because they were under DOS, don't
bother. --Galen |