Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Im not being able to run update manager as I get the error saying that there is not enough free space in the /tmp directory. I've practically cleaned out the tmp directory but the error persists.

Any help would be appreciated. here's df-h

/dev/loop0       13G   11G  952M  92% /
udev            2.0G  4.0K  2.0G   1% /dev
tmpfs           785M  920K  784M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            2.0G  584K  2.0G   1% /run/shm
/dev/sda6        20G   14G  6.4G  68% /host

overflow        1.0M   16K 1008K   2% /tmp

Thanks.

share|improve this question
    
where is your / ? Why is it on a /dev/loop ? –  josinalvo Oct 13 '12 at 14:53
    
Here, a simple reboot solved the issue. As @josinalvo explained, / was full and was increased on the fly: The disk was a virtual disk. –  koppor Feb 24 at 19:46

4 Answers 4

up vote 9 down vote accepted

What seems to have happened:

Your / was full, then ubuntu created a new partition, in ram memory, to use temporarily

Now, this 1*MB* partition is not big enough for the job, either.

What we can do:

1) increase the size of this partition just to do the upgrade

2) actually delete enough files in the HD that this partition is no longer needed.


To do 1:

open a terminal and run

sudo umount /tmp
sudo mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp

This should give you an 1MB partition (just like the one you had =P)

Now, to increase the size, you increase the "size" in that line, so that, with size=10485760, you'd get 10MB

Your goal is to find a number that is enough for the job, but leaves enough ram too


To do 2:

open a terminal and run

sudo umount /tmp

then clean up! Delete files in /tmp (now /tmp is the thing actually in your HD, rather than a virtual ram disk), run apt-cache clear, uninstall unused packages, delete files in your home folder and so on

share|improve this answer
    
This answer worked for me but I needed to kill some things before /tmp would umount. If you get a message that says /tmp is busy, then do fuser -m /tmp to find pids that are using /tmp, then ps -elf <pids>, stop or kill processes. Then umount /tmp. Also suggested on internet sudo umount overflow. –  gaoithe May 9 at 15:10

Looks like your / partition is full.You'll have to increase its size. There are tools available for this, for example gparted.

sudo apt-get install gparted

http://gparted.sourceforge.net

share|improve this answer
    
is there a 'safer' tool, apparently gparted is kinda tricky to handle especially for noobs –  KodeSeeker Oct 13 '12 at 8:47

I am pretty sure @user220420 was referring to /etc/fstab instead of /etc/mtab. I had lots of free GB in my root, however, Firefox wouldn't let me download anything from the internet. A small window would pop-up before finishing any download, telling /tmp had not enough space left. Within fstab, there's this line where you can increase tmp's folder size. It was set to 100M so I changed it to 1000M. After reboot, I right-clicked on /tmp (in root) and properties showed 1GB free (to make sure changes applied properly). That was it.

share|improve this answer
    
Let me tell you that this worked with other distros other than Ubuntu. I could accomplish this on Sabayon as well. –  user63070 Sep 26 at 18:34

Open up /etc/mtab in your favorite text editor with root privledges (ie “sudo vim /etc/mtab”). And increase the memory allocated to your /tmp folder. After restart Ubuntu will increase the space to /tmp, and fix this problem.

share|improve this answer
1  
1) You don't edit /etc/mtab - that file is handled by mount, 2) there is probably no entry fo /tmp in etc/fstab either. –  guntbert Nov 29 '13 at 20:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.