Re: /tmp Cannot write: No space left on device
Björn Lindström wrote:
>Kai Hendry <hendry@iki.fi> writes:
>
>
>
>>Filesystem Size Used Avail Use% Mounted on
>>/dev/hda1 6.5G 6.1G 0 100% /
>>/dev/hda6 21G 12G 7.8G 60% /home
>>tmpfs 252M 0 252M 0% /dev/shm
>>tmpfs 10M 72K 10M 1% /dev
>>
>>I'm not sure how my /tmp directory works. But I've noticed a couple
>>of times I run out of space on it.
>>
>>
>
>/tmp is just a directory on your root partition. 6.1 GB on your root
>partition seems like a lot to me. Maybe you can clean something out.
>
>
>
"du -h /tmp" should give you an idea of how much space /tmp is taking.
If it's significant, you can manually clean it out (you might want to
switch to single-user mode first) or reboot, which will clean it out
automagically.
This is one of the reasons I use more than one partition; I tend to have
separate partitions for /, /tmp, /usr, /usr/local, /var, and /home. In
your case, I'd consider moving the /var or /usr or /usr/local to your
/home partition, and then symlinking it back to the original location.
Say, for example, your /var directory typically runs around 800MB in
size; you could move it, which would free 800MB off the / partition:
mv /var /home
ln -s /home/var /var
--
Kent
Reply to: