my app saves a 1MB file and then another app reads it back. After that I want to sercure delete it. I thought about a ram drive because I know that even with a secure delete appl. something would remain on HDD or SSD. I can accept to lose the content of that file on shutdown. The fact is that I read about some bugs in some ram disk applications bug lists(ex.: imdisk) related to file corruption. Solved bugs but I'm wondering if ram disk apps are secure from file integrity point of view. On the other hand neither a normal disk is 100% secure. My temp file is absolutely important for me. I also protect my file through a sha1 or similar, but let's suppose for a moment that there is no protection, just to understand what is the best solution. Thanks Pupillo
Asked
Active
Viewed 101 times
-2
-
You should really rephrase your question. If you care about the quality of ramdisks in general or in imdisk in specific. – mfuchs May 04 '15 at 19:35
1 Answers
0
What storage place is best certainly depends on the hardware involved, amongst others their age, their MTTF and any previous failures encountered. I don't think it is possible to give a general answer.
Sounds to me like you are looking for an IPC mechanism, like shared memory. This would also avoid using file systems and their -- imo very rare -- bugs.
If you think about file corruptions you should also think what will happen on crashes of the involved applications. So you might have multiple problems:
- IPC
- Persistency on crashes
- Security concerncs, e.g. others reading the involved sections of RAM/HD

mfuchs
- 2,190
- 12
- 20
-
Let me simplify my question. I usually use my hdd /ssd to store a sensitive 1MB temp file. I'm thinking to move to a ram disk. Should I be MORE concerned about file integrity? No concerns about shutdown or crashes – user1952998 May 03 '15 at 10:58
-
I understood your question perfectly well but it does not make sense. You either want IPC, persistency or both. Using file systems for IPC is often a bad idea, independent of the used file system. So what do you care about? The quality of RAM, the quality of imdisk, ...? – mfuchs May 03 '15 at 18:30
-
I want only IPC but my app can handle only files. I'd prefer a ram disk to get my file wiped on shutdown, but I care about possible bugs in the ram disk driver. – user1952998 May 04 '15 at 07:52