Reducing the size of /

Robert Huff roberthuff at rcn.com
Fri May 12 09:58:27 PDT 2006


bsd writes:

>  I have three partitions on my server and would like to reduce the  
>  size of / because I am getting quite full !
>  
>  Filesystem     Size    Used   Avail Capacity  Mounted on
>  /dev/ar0s1a    3.8G    2.8G    668M    81%    /
>  devfs          1.0K    1.0K      0B   100%    /dev
>  /dev/ar0s1d     60G    1.9G     53G     3%    /home
>  
>  What are the places I could start looking in to delete not so
>  usefull files, knowing that I am syncing using portsnat (and
>  previously cvsup).

	Try this:

	du -x / | sort -nr | head -n 50

	Look for anything that's bigger than it ought to be.
	(I run variations of that on each filesystem daily; at this
point I know what should be there, and if something changes I ask
"Why?".)


				Robert Huff


	




More information about the freebsd-questions mailing list