316 votes
Accepted

Why does emptying disk space speed up computers?

Here, I wrote a book by accident. Get some coffee first. Why does emptying disk space speed up computers? It doesn't, at least not on its own. This is a really common myth. The reason it is a ...
  • 10.1k
260 votes

How can I free up drive space from the Windows installer folder without killing Windows?

I created "PatchCleaner" to clean the windows installer directory of all orphaned files in one easy click. If you don't trust the app to do the right thing, use the move feature to put them somewhere ...
  • 3,167
94 votes

How can I free up drive space from the Windows installer folder without killing Windows?

You can compress the folder. You will regain between 10 and 20% of the space. Enable "Show system files" in Explorer options Right-click the installer folder Properties Click on Advanced On the ...
  • 951
89 votes

Why is CBS.log file size 20 GB

I had a cbs.persist.log file of 17 gb, as I was sure that it wasn't me filling up my ssd, I searched for unusual big files in the windows log directory. Could only think of a compression issue anyway....
  • 891
89 votes
Accepted

How to clean Windows\Installer folder in Windows 10?

There is a relatively new tool called PatchCleaner which detects and can delete old MSI/MSP files. From the PatchCleaner page: Windows Installer Directory When applications are installed and ...
58 votes
Accepted

My C Drive is full without reason

There are several things you could try: Get an overview about your disk space If you want general information about what is using disk space on your computer, you can use tools like WinDirStat which ...
54 votes
Accepted

How can Windows 10 function on as little as 32 GB of disk space?

Windows 10 uses CompactOS, which compresses Windows files, to make them smaller: Compact OS Compact OS installs the operating system files as compressed files. Compact OS is supported on both UEFI-...
47 votes

Cannot shrink C: partition: Not enough space

I got this error when trying to shrink by 150GB, but shrinking three times by 50GB worked fine.
  • 2,843
46 votes
Accepted

How do I get back unused disk space from Ubuntu on WSL2?

There's a WSL Github issue open on this topic. WSL will automatically grow the virtual disk (ext4.vhdx), but shrinking it to reclaim unused space is something that must currently be done manually. ...
  • 11.7k
39 votes

Can I delete the folder C:\ProgramData\Package Cache\?

For Visual Studio 2017, you can disable the package cache (even after Visual Studio is installed) by calling: "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vs_installer.exe" --nocache I ...
  • 910
37 votes
Accepted

Calculate how much disk-space would have been used

Taken from https://stackoverflow.com/questions/13418688/use-pipe-with-du-to-compute-size-of-stdin You can pipe it to wc -c to count the number of bytes that goes through the pipeline. Of course, ...
  • 1,648
35 votes
Accepted

Does this mean that Tor saves private information?

Does this mean that Tor saves your URLs? No. Does this mean that Tor has failed in its objective to not write data to disk? No. What It Does Mean What it means is that you haven't disabled your ...
  • 15.8k
32 votes

du which counts number of files/directories rather than size

I have found du --inodes useful, but I'm not sure which version of du it requires. On Ubuntu 17.10, the following works: du --inodes # all files and subdirectories du --inodes -s # summary du -...
  • 822
32 votes

My C Drive is full without reason

You can use an application called WinDirStat. It shows you graphically how space is organized on the disk, through colored blocks that vary in size - the heavier the file, the bigger the block. Here ...
  • 389
30 votes

How Much Disk Space is WSL Using On Windows?

Determine Disk Usage From Linux Using a tool like ncdu can make determining disk usage easy with a nice cli interface to it as well. Install ncdu sudo apt install ncdu Running ncdu So we do not ...
  • 843
28 votes

Calculate how much disk-space would have been used

The command pv is perfect for this. mysqldump | pv -b > /dev/null I think the above will give you the right command you want, it may need some adjusting such as pv -b | > /dev/null as I can't ...
27 votes

Why is CBS.log file size 20 GB

Just in case anyone wonders why this happens in the first place. I believe I have reproduced the special conditions (I'm sure there are other variations of these conditions that could cause the same ...
25 votes
Accepted

Cannot shrink C: partition: Not enough space

Try launching the Event Viewer to see which individual files are blocking the partition shrink. Once again, attempt to shrink the partition. You should get the "There is not enough space" ...
  • 384
22 votes

Why does emptying disk space speed up computers?

In addition to Nathanial Meek's explanation for HDDs, there is a different scenario for SSDs. SSDs are not sensitive to scattered data because the access time to any place on the SSD is the same. The ...
  • 1,301
22 votes
Accepted

Splitting into many .ZIP files using 7-Zip

Let's find out! 100 MB files (27 pieces): 7z a -tzip -v100M ./100m/archive ./kali-linux-xfce-2018.2-amd64.iso $ du ./100m/ 2677884 ./100m/ 10 MB files (262 pieces): 7z a -tzip -v10M ./10m/archive ...
17 votes

Does this mean that Tor saves private information?

No worries. It means that pages from Tor's working set have been paged out. Contrary to common belief, this does not happen when you run out of physical RAM, but much more regularly. A process' ...
  • 4,462
16 votes

How can Windows 10 function on as little as 32 GB of disk space?

I'm not sure what you have on your laptop but a clean Win 7 install is usually about 12GB's and Windows 10 is spec'd at 16GB's for 32 bit and 20GB's for 64 bit. All that extra on yours might be ...
  • 2,687
15 votes

How can I free up drive space from the Windows installer folder without killing Windows?

Sometimes $patchcache$ consumes a great deal of "Installer" folder. You can check how big is your "C:\Windows\Installer\$PatchCache$" folder (mine was 6GB after 1.5 years). Basically it boils down to ...
  • 318
15 votes

What is the approximate installation size of a "clean" Windows 10 Upgrade, post install and cleanup?

Microsoft says 20 GB for 64-bit OS. I did a clean install, 12GB. Then added office, 16GB. Then after a couple of days of windows update 50GB + 10GB in Recycle. 31 Gig in C:\Windows, 5 gig page ...
  • 258
15 votes

Splitting into many .ZIP files using 7-Zip

Every file has a file system overhead of unused logical sector space after the end-of-file, but this is eliminated if the split size is a multiple of the logical sector size (not necessarily true of ...
  • 17k
14 votes

Almost half of disk space unaccounted for on Windows 7 computer

Run WinDirStat in administrator mode (it's a right click option). Some files can't be seen without this. My culprit was MSSQL log files. One of them was 170GB.
  • 351
14 votes
Accepted

Why does my 500GB hard drive have a capacity of exactly 500,107,862,016 bytes?

The answer is IDEMA formula, as described in the IDEMA Standard LBA 1-03 specification (specs available here, or direct PDF download). LBA counts = (97,696,368) + (1,953,504 * (Advertised Capacity in ...
  • 7,854
12 votes

Can I delete the folder C:\ProgramData\Package Cache\?

YES you can delete this directory, if you have uninstalled Visual Studio. I found this directory after uninstalling Visual Studio in preparation for installing a SSD smaller than the hard drive I was ...
  • 1,540
12 votes

Why does emptying disk space speed up computers?

Somewhere inside a traditional hard disk is a spinning metal platter where the individual bits and bytes are actually encoded. As data is added to the platter, the disk controller stores it on the ...
12 votes
Accepted

In a .bat file, how can I test available disk space?

I suggest using a PowerShell script for that. wmic returns the size in bytes, batch is limited to number comparisons of signed 32-bit integers, far below 100GB. You would have to truncate the number ...
  • 6,908

Only top scored, non community-wiki answers of a minimum length are eligible