My eeepc is running out of space on the root drive. The /tmp directory has 385MB of information taking up space I need.
I would like to replace /tmp with a symlink to /home/tmp, which is on another partition, so that I don't have this problem in the future.
Any recommendations on how to accomplish this? It looks like the system is protecting /tmp and will not let me change it.
Do I need to boot a live image and make the change that way?
From a console mode boot, as root, I tried "ln -s /home/tmp tmp" but that did not seem to work.
TIA,
mikkl
Do you really have a
/home/tmp?
Normally all of your users would have a tmp folder in their home directories: i.e. a
/home/<username>/tmp (or
~/tmp) but I've never seen a
/home/tmp.
And this
~/tmp is often a symlink to your global
/tmp. If it is, you naturally can't also make the global
/tmp a symlink to
~/tmp. (That would mean taking recursion a bit too far.)
But if it isn't, then "ln -s ~/tmp
/tmp" should work --
after you've removed your old
/tmp.
But note that you have to change the permissions of
~/tmp afterwards. (The permissions of
/tmp or whatever
/tmp is pointing to should be 1777, or drwxrwxrwt -- and the folder should be owned by root.)
Edited for clarity.