Date: Sat, 9 Oct 2010 15:14:43 -0400 From: Robert Huff <roberthuff@rcn.com> To: Caleb Stein <caleb.stein@me.com> Cc: freebsd-questions@freebsd.org Subject: Re: Clean up / filesystem Message-ID: <19632.48931.515387.234675@jerusalem.litteratus.org> In-Reply-To: <op.vkbisimcesa1c5@win7x64.mshome.net> References: <op.vkakpz1j0i70i3@win7x64.mshome.net> <19632.463.52069.211565@jerusalem.litteratus.org> <op.vkbisimcesa1c5@win7x64.mshome.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Caleb Stein writes: > >> I'm constantly getting the message, ":/ write failed, filesystem > >> is full", so I did df, and it said that my / filesystem was at > >> 108%. What files can I delete to free some space? > > > > Start by checking the contents of /tmp. > > Any *.core in /root you don't recognize is suspect. > > After that? Try: > > > > du -x / | sort -n -r | head -n 40 > > > > Look in those directories. > > So is it safe to do "rm -rf /tmp/*"? No. Blanket deletes are almost never a good idea. _Look in the directories_. Understand what's there, and why. Do so regularly, and you'll get a feel for when something changes. The output of: du /usr | sort -n -r | head -n 30 is waiting for me every morning when I check e-mail. After about a month, I knew what directories should be there (the exact content fluctuates, depending on port builds etc.) and how big they should be, and could a) pick out when something was wrong and b) guess what might have caused it. Robert Huff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19632.48931.515387.234675>