LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Allocating space to the /tmp directory (https://www.linuxquestions.org/questions/linux-newbie-8/allocating-space-to-the-tmp-directory-947793/)

macanucaire 05-31-2012 11:03 AM

Allocating space to the /tmp directory
 
Hi - I'm new to Linux and have a problem. The machine I'm working runs Debian Linux Version 2.6.12.6-arm1 and, to install a piece of software on it, I need to copy a 122 MB file to the /tmp directory. It will not let me because it says there is not enough space.
df -h gives
Filesystem Size Used Avail Use% Mounted on
rootfs 9.3G 430M 8.9G 5% /
/dev/root.old 13M 11M 2.3M 83% /initrd
/dev/root 9.3G 430M 8.9G 5% /
tmpfs 100K 0 100K 0% /lib/init/rw
tmpfs 62M 0 62M 0% /dev/shm
tmpfs 10M 8.0K 10M 1% /tmp
/dev/sda1 190M 11M 170M 6% /boot
/dev/sda6 288G 49G 240G 17% /mnt/disk1


which looks to me like I have enough space in /tmp. Is it possible to change this and, if so, how?
Tom

suicidaleggroll 05-31-2012 11:09 AM

Your /tmp directory is located on tmpfs, which is volatile RAM. Currently only 10MB is allocated for /tmp, which is why you're getting the not enough space error. Assuming you have the RAM available, you can remount /tmp with more space:
Code:

mount -t tmpfs tmpfs /tmp -o size=200M,mode=1777,remount

syg00 05-31-2012 06:45 PM

Or not use tmpfs at all ?. Just let it go to disk - even if only temporarily.

macanucaire 06-01-2012 02:38 PM

suicidaleggroll's advice did the trick and I'm up and running. Thanks loads.

macanucaire 06-25-2012 02:39 AM

Another problem
 
Hi - The instructions to install the software on this machine said to enter

LC_ALL= /opt/ssods4/etc/init.d/rc.ssods start

and the software would automatically run when the machine is started. This does not happen. Each time I restart the machine I have to re-enter this line.
Anyone any ideas on what I did wrong?

Tom

chrism01 06-25-2012 08:17 PM

1. there should be no space around '='

2. you need to put this in a file somewhere; the manual should say where.


All times are GMT -5. The time now is 01:13 AM.