Skip to content

estarq/ramdisk

Repository files navigation

RAMDisk

ramdisk

With RAMDisk you can use your RAM as a folder, maximizing speed and disk longevity.
Ramdisks are shared with all users and use a minimal amount of RAM needed to store your files.
In rare cases, when RAM is scarce, RAMDisk will utilize the swap partition to store new files.
All files disappear at shutdown!

How to install

To install run

git clone https://github.com/estarq/ramdisk
cd ramdisk
sudo python3 install.py

Tested on:
antiX, ArcoLinux, Elementary, EndeavourOS, Gecko, Kali, KDE neon, Kubuntu, Linuxfx, Lite, Lubuntu, LXLE, Mageia, Manjaro, Mint, MX Linux, OpenMandriva, openSUSE, Parrot, Peppermint, Pop!_OS, Q4OS, Raspberry Pi OS (Raspbian), Solus, SparkyLinux, Tails, Trisquel, Ubuntu, Ubuntu Budgie, Ubuntu Kylin, Ubuntu MATE, Ubuntu Studio, Xubuntu, Zorin

antiX - use terminal to run RAMDisk

Doesn't work on:
Debian, Devuan, Fedora, KaOS, PCLinuxOS, PureOS

How to remove

To remove run

sudo python3 remove.py

Details

Privileges required: yes (Polkit/PolicyKit + pkexec)
Ramdisk's path: /mnt/name
Ramdisk's access rights: rwxrwxrwx (777)
Ramdisk's filesystem: tmpfs
Automount: yes (/etc/fstab)

Ramdisk's size limits it's total (RAM + swap) capacity.

Dependencies

python3, python3-gi, python3-gi-cairo, gir1.2-gtk-3.0, adwaita-icon-theme

(no need for manual installation)