Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

General Questions • [Software] Setting a RAM Disk in Debian (and in Linux in general)

$
0
0
Can I also move the tmp dir to the RAM as I do in Windows?
There is two ways to do this.
1.
Run this commands and reboot

Code:

sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/sudo systemctl enable tmp.mount
On some distributions /tmp is mounted as tmpfs by default in such a way. State of this service will reveal that: systemctl status tmp.mount

2.
Edit /etc/fstab. Insert in it this line and reboot:

Code:

tmpfs /tmp tmpfs noatime,defaults,nodev,nosuid,mode=0755 0 0

Statistics: Posted by vng2022 — 2024-06-23 06:47 — Replies 6 — Views 124



Viewing all articles
Browse latest Browse all 3567

Trending Articles