You are not logged in.

#1 2012-05-08 19:06:03

GNA
Member
Registered: 2011-02-15
Posts: 57

[Solved]Ramdisk /tmp size is 0kb?

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 smile

Last edited by GNA (2012-05-14 21:18:44)

Offline

#2 2012-05-14 14:49:33

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [Solved]Ramdisk /tmp size is 0kb?

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

#3 2012-05-14 21:18:20

GNA
Member
Registered: 2011-02-15
Posts: 57

Re: [Solved]Ramdisk /tmp size is 0kb?

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 hmm .

Offline

Board footer

Powered by FluxBB