Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/tmp/ directory is out of space

Status
Not open for further replies.

booki

Programmer
Feb 6, 2005
3
0
0
GR
Hi,

I had a problem with Linux (Mandrake 9.2)today. It couldn't open the Window manager saying that the /tmp/ directory is out of space.I can access my data by the command promd but i have a black screen.I can't see the usual icons on my screen.Does anyone know what is going wrong?
 
It could be you have some run away logs or something. Is /tmp mounted to its own partition?

From the command prompt su to root and type "df" to get an idea of how much of your filesystems are in use. If /tmp is its own partition then run "cd /tmp" followed by "ls -al". See if there are any really big files right under the directory. If so, be sure to figure out what they are before deleting though so you can know the proper way to empty them.
 
A short way to create and use a ramdisk as your tmp on the fly:

$ su
# mkdir /dev/shm || echo failed to create dir, dont execute further
# size=$((32 * 1024*1024)) # 32 MB
# mount -t tmpfs none /dev/shm -o mode=777,size=$size

# cp -a /tmp /dev/shm
# mv /tmp{,.orig}
# ln -s /dev/shm/tmp /tmp


Could be used temporarely until you got space free.

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top