LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2012, 11:03 AM   #1
macanucaire
LQ Newbie
 
Registered: May 2012
Posts: 7

Rep: Reputation: Disabled
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
 
Old 05-31-2012, 11:09 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,508

Rep: Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102
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
 
Old 05-31-2012, 06:45 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,721

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Or not use tmpfs at all ?. Just let it go to disk - even if only temporarily.
 
Old 06-01-2012, 02:38 PM   #4
macanucaire
LQ Newbie
 
Registered: May 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
suicidaleggroll's advice did the trick and I'm up and running. Thanks loads.
 
Old 06-25-2012, 02:39 AM   #5
macanucaire
LQ Newbie
 
Registered: May 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-25-2012, 08:17 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
1. there should be no space around '='

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"No space left on device" error on /tmp. How to increase space on /tmp? anilp Linux - Newbie 12 01-24-2011 01:40 PM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
Allocating hard drive space Armon Linux - General 4 05-05-2005 08:26 PM
Need Help Allocating Space on my HD to install linux! chrishikel Linux - Newbie 6 09-10-2004 02:55 PM
allocating space for new partition ranger12002 Linux - General 12 07-20-2003 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration