4

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 ?

5 Answers 5

4

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.
3

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.)

5
  • Sequoiaview is another alternative that I like. Mar 2, 2010 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, 2010 at 1:40
  • TreeSize is great, however beware of its evil shell extension...
    – squillman
    Mar 2, 2010 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. Mar 2, 2010 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, 2010 at 6:44
2

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.

1

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\

1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .