Ramdisk to emulate a hard drive on Linux Fedore
Posted on 2011-10-13
Currently I am using the statistical package R, but mostly prepare my data with C. The passing of data from C to R is very cumbersome, so I have simply been communicating from R to C via leaving messages on the hard drive. From R I save a file (write.table function) then call a C program without passing paramters, but C loads a file, does what it needs to do, write something down and then R reads it back via read.table. It is not eloquent but it works. It would be nice to speed things up with a RAM drive that would for all intents and purposes be an extension of the hard drive.
I have tried to figure out the one which comes with Fedora but instructions are way to cryptic for me and some kind of error always pops up. I do not need the drive to be invisible. I would rather it not autoboot. I need about 8mb of memory reserved for data. All I need to store are .txt files and do not need to run programs from the file.
just want to be able to do something like
FILE *inFile = fopen( "./root/myRAMDISK/myfile.txt", "r");