Re: Symlinking /tmp to /var...
In article <39E7830F.623BA6DF@home.com>,
Ethan Vaughn <vaughne@home.com> wrote:
>Andreas Hetzmannseder wrote:
>>
>> Dear debian-users,
>>
>> The disk space for my root-partition is 40 MB, while I supplied 80 MB
>> for my /var-partition. I would like to make a symbolic link from /tmp,
>> which resides in the root partition, to /var.
>>
>> This was my plan:
>> 1. Copying /tmp to /var/tmp.root (with /var/tmp.root being created)
>
>Try this:
> cp -a /tmp /var
> mv /var/tmp /var/tmp.root
Don't do this. /var/tmp already exists, and by doing this you'll
remove it, potentially breaking a lot of applications
Simply do this:
# cd /var
# mkdir tmp.root
# chown root:root tmp.root
# chmod 2777 tmp.root
# cd /
# rm -rf tmp
# ln -s /var/tmp.root tmp
Alternatively symlink /tmp to the existing /var/tmp
Mike.
Reply to: