Can a Symbolic Link in Linux help with a low disk space problem?
Monday, October 5th, 2009 at
10:20
I am installing an RPM package for Vmware Update 2 and I am running out of space in /var/updates. I have lots of space elsewhere. Can I use a Symbolic link from /var/updates to (another directory) as a solution? Does it work this way?
Tagged with: rpm • running out of space • symbolic link • vmware
Filed under: rpm
Like this post? Subscribe to my RSS feed and get loads more!
is it because /var is on another partition?
yes anyway, you can move the real "bytes" somewhere else, and then create a symbolic lnk to that
(being root maybe!):
cd /var/updates
mv afileordir /mnt/bigpartition
ln -s /mnt/bigpartition/afileordir afileordir
normally symlink works, but sometimes they are not enough.
binding could help in these cases; eg suppose you need a whole directory from /var/updates being "mapped" somewhere else… you can add to fstab a line like
/mnt/bigpart/adir /var/updates/adir none rw,bind 0 0
where of course /mnt/bigpart/adir must exist (and is a dir); then you will see the /var/updates/adir exactly as if it were exactly there…