View Full Version : [ubuntu] [SOLVED] Changing the size of /tmp
October 2nd, 2008, 07:01 PM
How do I change the size of the /tmp directory, and how large should it be?
October 2nd, 2008, 07:03 PM
What is outputted when you type in df?
October 2nd, 2008, 07:18 PM
df give me the following:
October 2nd, 2008, 07:32 PM
I've never come across an "overflow" mount before. Are you using Wubi?
As for the size of it. It appears to be the size of your RAM.
1024 = 1GB. And 72% usage sounds about right with Linux and RAM, what with data being cached for later use.
Is there a reason why you need the /tmp directory?
Why not your /home folder?
October 2nd, 2008, 07:56 PM
I am not using WUBI, this is just a standard install.... Anyway, the reason I am asking about the size of /tmp is that I was trying to download an update to Gimp from their website, but as soon as I click the link (even before I select what to do with the file) I get an error msg that there is not enough free space in /tmp. I have never saved anything to that directory, so I don't know why it is giving me this msg...
October 2nd, 2008, 08:13 PM
As I said, it appears to be the size of your RAM. Do you have 1GB?
Nevertheless, two things you could try to gain space.
1) Sync and Drop Caches.
sudo sync; echo "3" | sudo tee /proc/sys/vm/drop_caches
Wait a minute, and try again.
2) Unmount the /tmp filesystem and create a symlink to your home folder.
mv /tmp/* ~/tmp -R
sudo umount /tmp
sudo ln -fs ~/tmp /tmp
As for why the /tmp directory is being mounted as an "overflow"... could you perhaps post your fstab file up?
October 3rd, 2008, 04:08 PM
Thanks for your help and suggestions... When it came down to it, a simple reboot resolved the download issue, though (yes, I feel like an idiot)...
June 20th, 2012, 01:14 PM
To finish this discussion:
in fact, the "overflow" filesystem appears when your previous filesystem for /tmp is full. To not lock the system, ubuntu creates a virtual filesystem ("overflow") to let the /tmp remain available.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.