This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:windows:low_disk_space [2015/02/26 13:57] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Dealing with Low Disk Space ====== | ||
- | ===== Linux ===== | ||
- | |||
- | < | ||
- | du -sh /* | ||
- | |||
- | rm -rf /tmp/* | ||
- | rm -rf /var/tmp/* | ||
- | </ | ||
- | |||
- | ==== Remove Old Kernels ==== | ||
- | |||
- | :!: Uses '' | ||
- | |||
- | Paste this ant the CLI then run '' | ||
- | |||
- | < | ||
- | rmkernel () { | ||
- | local cur_kernel=$(uname -r|sed ' | ||
- | local kernel_pkg=" | ||
- | local meta_pkg=" | ||
- | sudo aptitude purge $(dpkg -l | egrep $kernel_pkg | egrep -v " | ||
- | } | ||
- | </ | ||
- | |||
- | ===== Windows ===== | ||
- | |||
- | http:// | ||
- | |||
- | http:// | ||
- | |||
- | http:// | ||
- | |||
- | ==== Empty Recycle Bin for All Users ==== | ||
- | |||
- | For Windows 7 or Server 2008 enter this command: | ||
- | |||
- | < | ||
- | rd /s c: | ||
- | </ | ||
- | |||
- | For Windows XP, Vista, or Server 2003 enter this command: | ||
- | |||
- | < | ||
- | rd /s c:\recycler | ||
- | </ | ||
- | |||
- | ==== Tools ==== | ||
- | |||
- | **TreeSize Free** is a very useful tool for finding the problem: | ||
- | |||
- | http:// | ||
- | |||
- | This is a short script that is probably best used as an emergency 'free space now' tool: | ||
- | |||
- | < | ||
- | @echo off | ||
- | rem Script to clean up disk space on SBS 2008 servers | ||
- | rem Downloaded from SBSfaq.com | ||
- | rem V1.0 - March 28th, 2010 | ||
- | rem Certificate Services Logs | ||
- | net stop " | ||
- | del c: | ||
- | del c: | ||
- | del c: | ||
- | net start " | ||
- | rem IIS Log Files | ||
- | Del C: | ||
- | </ | ||
- | |||
- | **CleanUp** may be useful to clean up Windows Profiles: | ||
- | |||
- | https:// | ||
- | |||
- | ==== On New Systems ==== | ||
- | |||
- | If you are building new systems: | ||
- | |||
- | http:// | ||
- | |||
- | ==== Windows 2008 and R2 ==== | ||
- | |||
- | https:// |