Is it possible to make ram drive in android?

RAM drive
A RAM drive (also called a RAM disk) is a block of random-access memory (primary storage or volatile memory) that a computer's software is treating as if the memory were a disk drive (secondary storage). RAM drives provide high-performance temporary storage for demanding tasks and protect non-volatile storage devices from wearing down, since RAM...
Android Enthusiasts Stack Exchange
Is it possible to create a RAMDisk / Ramdrive for Android 4.x?
Is it possible to create an auto-growing tmpfs ramdisk on a rooted Android 4.x? If yes, how?
16 Replies
TomIO
TomIO7d ago
In short, no.
tomikun
tomikun7d ago
eeeh why noot
twaik
twaik7d ago
Because termux is a regular app and has no superpowers...
tomikun
tomikun6d ago
but it says with root
TomIO
TomIO6d ago
Let me rephrase the question. Why would you wanna make a ramdisk on Android? What is that gonna do for you?
tomikun
tomikun6d ago
nothing, just sounds funny
Amigaba375
Amigaba375OP6d ago
I want to make temporary files, but I don't want to write them on disk, because I heard that ssd has a limited number of writes. By ramdisk I mean a disk that keeps all files in it in ram, and doesn't actually write anything in permanent storage. I tried to get it with this termux command, but all I got is "bad system call" message: mount -t tmpfs -o size=500m tmpfs ./ramfolder
tomikun
tomikun6d ago
youre overthinking it if ur worrying about reads and writes also /data/local/tmp is a tmpfs that android mounts, you can use that
Amigaba375
Amigaba375OP6d ago
Doesnt look like I can access that with material files easily.
tomikun
tomikun5d ago
material files is a horrible file explorer imo use total/ghost commander
Amigaba375
Amigaba375OP5d ago
Ghost commander has weird permissions, what do they do? Dont see total commander on f-droid.
tomikun
tomikun4d ago
because its closed source shareware https://www.ghisler.com/android.htm
Catinette
Catinette4d ago
https://www.ghisler.com/android.htm you should install it from the website, playstore version has limitations
Amigaba375
Amigaba375OP4d ago
The unrestricted version is still available in our forum, Android section.
Whats the difference? Feels like I'll need root access to write anything to /data/local/tmp.
twaik
twaik4d ago
Root or adb access actually.
tomikun
tomikun4d ago
i assumed you were already using root

Did you find this page helpful?