User Tools

Site Tools


computing:disk_space_low

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:disk_space_low [2015/09/03 10:08]
gcooper
computing:disk_space_low [2019/07/27 14:09] (current)
gcooper
Line 11: Line 11:
  
 ==== Remove Old Kernels ==== ==== Remove Old Kernels ====
 +
 +=== CentOS ===
 +
 +http://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/
 +
 +<file>
 +yum install yum-utils
 +rpm -q kernel
 +package-cleanup --oldkernels --count=2
 +</file>
 +
 +=== Debian/Ubuntu ===
  
 :!: Uses ''aptitude'' package manager. :!: Uses ''aptitude'' package manager.
  
-Paste this ant the CLI then run ''rmkernel'' to remove all kernels except your running kernel. +Paste this at the CLI then run ''rmkernel'' to remove all kernels except your running kernel. 
  
 <file> <file>
Line 26: Line 38:
  
 ===== Windows ===== ===== Windows =====
- 
-**2012 R2 - SxS**: https://www.saotn.org/windows-server-2012-r2-disk-cleanup-dism/ 
  
 http://www.omegaprojex.com/index.php/2008/11/10/moving-shares-and-users-home-folders-to-a-new-server/ http://www.omegaprojex.com/index.php/2008/11/10/moving-shares-and-users-home-folders-to-a-new-server/
Line 34: Line 44:
  
 http://serverfault.com/questions/8187/whats-the-best-way-to-move-c-users-to-d-users-under-vista-w7 http://serverfault.com/questions/8187/whats-the-best-way-to-move-c-users-to-d-users-under-vista-w7
 +
 +==== Delete $Windows.~BT and $Windows.~WS Folders ====
 +
 +''$Windows.~BT'' and ''$Windows.~WS'' are temporary folders and can be safely deleted.
 +
 +<file>
 +takeown /F C:\$Windows.~BT\* /R /A 
 +icacls C:\$Windows.~BT\*.* /T /grant administrators:
 +rmdir /S /Q C:\$Windows.~BT\
 +</file>
 +
 +Now copy-paste the following and hit Enter to delete the contents of $Windows.~WS directory
 +
 +<file>
 +takeown /F C:\$Windows.~WS\* /R /A 
 +icacls C:\$Windows.~WS\*.* /T /grant administrators:
 +rmdir /S /Q C:\$Windows.~WS\
 +</file>
 +
 +==== Delete Old User Profiles ====
 +
 +<file>
 +cd c:\users
 +dir
 +wmic /node:localhost path win32_UserProfile where LocalPath="c:\\users\\user" Delete 2>>c:\windows\temp\wmic.err
 +</file>
 +
 +==== Disk Compression ====
 +
 +Compress the C: drive from the CLI:
 +
 +<file>
 +compact.exe /s /c /a /i <drive>:\*
 +</file>
  
 ==== Empty Recycle Bin for All Users ==== ==== Empty Recycle Bin for All Users ====
Line 56: Line 100:
 powercfg.exe -h off powercfg.exe -h off
 </file> </file>
 +
 +==== Change Pagefile Size ====
 +
 +By default, the pagefile will be as large as your system RAM.  While this is important for Suspend-to-RAM, it may not be very important for most workstations.
 +
 +**System Properties -> Advanced -> Performance Options -> Advanced**
  
 ==== Tools ==== ==== Tools ====
Line 67: Line 117:
 === ICSweep === === ICSweep ===
  
-  * Clean temp files+  * Cleans temp files 
 +  * Good for RDS servers 
 +  * Seems to work on 2012 R2 
 +  * Run as administrator
  
 http://www.ctrl-alt-del.com.au/files/ICSweep.zip http://www.ctrl-alt-del.com.au/files/ICSweep.zip
 +
 +<file>
 +c:\support\icsweep.exe /size
 +c:\support\icsweep.exe /all
 +</file>
  
 === SBS 2008 === === SBS 2008 ===
Line 114: Line 172:
 Cleanmgr.exe Cleanmgr.exe
 </file> </file>
 +
 +==== Windows 2012 and 2012 R2 ====
 +
 +**2012 R2 - SxS**: https://www.saotn.org/windows-server-2012-r2-disk-cleanup-dism/
 +
 +:!: The **Disk Cleanup Tool** is available in Windows Server 2012, if you **install the Desktop Experience feature**.
 +
 +:!: All existing service packs and updates cannot be uninstalled after this next command is completed. 
 +
 +Clean up all superseded updates:
 +
 +<file>
 +dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
 +</file>
 +
 +Clean up after service packs:
 +
 +<file>
 +dism.exe /online /Cleanup-Image /SPSuperseded
 +</file>
 +
 +===== Outlook =====
 +
 +==== Move Local Cache ====
 +
 +https://www.msoutlook.info/question/463
 +
 +https://www.howto-outlook.com/howto/movingostpstoutlookcomimap.htm
 +
 +=== Symlink Method ===
 +
 +Perhaps as an administrator:
 +
 +  - **Create a new directory/structure** on the destination disk drive to hold the user's local cache
 +    - **Adjust permissions** so that user, and administrators, can access the directory/contents
 +  - M**ove the user's .OST file** to the new location
 +  - **Create a symbolic link** from the old file/location to the new
 +  - **Start Outlook**
 +    - If any problems, close Outlook and check permissions
 +
 +As the user whose .OST file we are moving, create the symlink at a command prompt:
 +
 +<file>
 +mklink "C:\Users\<profile>\AppData\Local\Microsoft\Outlook\<username>@<domain.tld>.ost" "E:\Users\<username>\Mail\<username>@<domain.tld>.ost"
 +</file>
 +
computing/disk_space_low.1441296533.txt.gz · Last modified: 2015/09/03 10:08 by gcooper