Linux Disk Space Directory

by admin on June 14, 2010

Linux Disk Space Directory Linux Disk Space Directory
Can a Symbolic Link in Linux Help with a low disk space problem?

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?

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…



Related Blogs

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Leave a Comment

Previous post:

Next post:

</