Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a server from dell that came pre-configured with windows server 2003 on a 12gb system partition. After 2 years of running the system partition is almost out of space (I assume from all the windows updates) is there any commands/procedures to clean up unnecessary files to save some space, Or is my only option to re-size the partition ?

share|improve this question

5 Answers 5

up vote 4 down vote accepted

You can:

  • Run the Disk Cleanup Wizard to recover space from temp files, IE history, etc.
  • Stop the Windows Updates/Automatic Updates service, delete the contents of C:\Windows\SoftwareDistribution\, then restart the service.
  • Move the page file off to a seperate drive, or set it to a fixed size to conserve space
  • Clear off lingering user profiles (Right-click My Computer -> Properties -> Advanced -> User Profiles
  • Check for memory dumpp files at %SystemRoot%\Memory.dmp (from system crashes)
  • Check for lingering files in %systemroot%\servicepackfiles\
  • If there is additional space on the disk you could also use gParted LiveCD to resize the C: partition into additional space.
share|improve this answer

I like to use TreeSize Free It can quickly show you where the offending files/folders are.

(On a side note, I've always hated running into Dells with 12G partitions. SOOOOO annoying.)

share|improve this answer
    
Sequoiaview is another alternative that I like. –  Chris Thorpe Mar 2 '10 at 0:38
    
WinDirStat is my personal fave with a view that allows you to scan the contents of a whole drive in one glance. –  hurfdurf Mar 2 '10 at 1:40
    
TreeSize is great, however beware of its evil shell extension... –  squillman Mar 2 '10 at 2:24
    
It has a shell extension? Maybe the 8-yr-old version I use that just runs as an .exe didn't have that feature. –  Ward Mar 2 '10 at 3:55
    
@squllman yeah, I always just install the exe. I'm not a fan of third party shell extensions in general. Too often they cause problems. –  einstiien Mar 2 '10 at 6:44

Delete the "$NtUninstallKB*" folders from C:\Windows (you'll need to turn on show hidden files and folders to see these). Do not delete the $hf_mig$ folder. You might want to keep some of these with a datestamp within the last month in case you need to uninstall an update, deleting them will prevent you from doing this.

Move your swap file to another partition if you haven't already done so.

Check the size of user profiles on the server and delete anything that shouldn't be there. Redirect My Documents if required.

Some 3rd party software can generate a LOT of logging in Program Files so check out what's there and kill it too. While you're at that, see what else has been installed to C:\ and - where possible - uninstall it and reinstall elsewhere.

You should with servers aim to have nothing but the OS on C:\, and Windows Server 2003 is perfectly capable of living in less than 4GB if so.

share|improve this answer

Some of the usual suspects:

%systemroot%\servicepackfiles\
%systemroot%\$NTServicePackUninstall$\

%systemroot%\memory.dmp (if you have ever had a blue screen, there sometimes are large dump files)

If you have ever downloaded large files while logged on, these files may be saved in the local profile under C:\Documents and Settings\

share|improve this answer

Short term:

  • Delete all those "$NtUninstallKB*" folders from the %windir%.
  • If you use a web browser on that server delete whatever is in the cache and set the cache size to something really small.
  • Empty any and all temp folders (Windows cleans up after itself about as well as a teenage boy does).
  • Delete crash dumps, etc.

Longer term:

  • Repartition.

Repartitioning is by far the best option but obviously requires down-time.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.