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 [2014/12/06 08:10] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Dealing with Low Disk Space ====== | ||
- | |||
- | ===== Linux ===== | ||
- | |||
- | < | ||
- | du -sh /* | ||
- | </ | ||
- | |||
- | ==== 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 ==== | ||
- | |||
- | This is a free tool to help you analyse where your disk space is currently being used: | ||
- | |||
- | 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: | ||
- | </ | ||
- | |||
- | ==== On New Systems ==== | ||
- | |||
- | If you are building new systems: | ||
- | |||
- | http:// | ||