Move polipo's cache directory to its own partitionFollow @ggarron
If you are running
polipo and run out of disk space you have two options, one is to reduce the space polipo is using in
/var/cache/polipo/ thus, fine tunning cache server or to change the cache directory to its own partition. Here we will see this second option
Once those steps are finished, we can start the process of moving the polipo cache directory, which is by default located at: /var/cache/polipo.
The polipo cache directory is: /var/cache/polipo/ The new formated partition is: /dev/sdb1/ The file system of the new partition is: ext3
you will have to modify this how to according to your data.
Mounting the new partition
sudo mkdir /media/cache
sudo mount -t ext3 /dev/sdb1 /media/cache
Copying the files
sudo cp /var/cache/polipo/* /media/cache/* -RChecking ownership and permissions For this to work, you will need to be sure that the ownership and permissions of the copied files are the same as the original ones. Use chown and chmod to change those parameters, you can modify this Home privacy tip to work for this purpose. Reconfiguring and restarting The last step is to edit the config file, be sure to have this line in /etc/polipo/config file.
diskCacheRoot = "/media/cache/polipo/"Modify as you need, and the restart polipo.
sudo /etc/init.d/polipo restart