You are not logged in.
Hello,
I used this guide to use a ramdisk for /tmp:
https://wiki.archlinux.org/index.php/Ramdisk
Now I encounter a strange error, if I use df on it, it returs size = 0kb. I can copy stuff there, but when I try to run scripts in it, they complain, because the size = 0kb...
Do you know why this happens?
Thanks for your help ![]()
Last edited by GNA (2012-05-14 21:18:44)
Offline
I do not know what you have done exactly but you shouldn't use a ramdisk like described on this page https://wiki.archlinux.org/index.php/Ramdisk for /tmp. For such ramdisk, you reserve a portion of the memory that you use as a fake disk and you put a normal file system on it. It will use the whole size of the disk no matter the size of the files you put in it. It is much better to use a tmpfs. It is a special filesystem that use only as memory the total size of the files that actually resides in it. It newer installation, it is done automatically, you should have this line in /etc/fstab:
tmpfs /tmp tmpfs nodev,nosuid 0 0
Offline
first, let me thank you for your reply.
I tried what you recommended, but the error persisted. When I tried it with pacaur and by hand it failed, but today I tried it with aurget and it worked like a charm. Strange
.
Offline