ที่ไปของ Good Space ทั้งหมด และ那些 Bytes 去哪了? Where's the Street-wise Nerd 来 Free Up My Disks? 无论如何 最近 我遇到一个 Rather Bizarre Disk Usage Problem on one of my Windows 7 Boxes 120GB SSD 突然 Running Short of Space 即使它 Supposed to be Only About 50% Utilized 我 Set About Exploring
The Obvious Choice for this Kind of Task 是 WinDirStat 我们见过在使用 约 18 个月前 它是 Simple, No-nonsense Tool 并且它 Will Display a Detailed Map 和 Listing of All the Files 和 Folders 除了在我 Case 它 Wasn't Really Helpful Presented Data Only Amounted to About 60GB 但有一个 Big Chunk, Labeled Unknown, Occupying 55GB of Its Own 我 No Idea What This Was 但它 Looked Like Something That Should Not Be There 所以我 Set About Exploring Some More
The Mystery Unfolds
有 Approximately a Million Different Answers 和 Solutions to This Potential Problem 如果您 Search Online for "Windows windirstat unknown file" 如您可能 Actually Done Just Before Landing on This Page 您将 See People Mentioning All Sorts of Wizardry Related to How Windows Works 和 Counts Its Disk Space 这 Makes It a Little More Difficult To Find the Right Solution
这就是为什么这篇文章也是关于 What NOT to Do Deleting Random Files 是 Big No Fiddling with System Files Should Not Be Done 我 Also Most Warmly Recommend You Backup Any Important Personal Data Before Commencing on a Data Freedom Journey 和 Only Then Slowly, Carefully Start Implementing Non-intrusive, Non-destructive Fixes First
One of the Recommendations 是 Running chkdsk Not Bad 但然后 它 Does Not Really Help Us Understand Why 或 How We May Have Ended Up with 55GB of Space Eaten by Some Mysterious Data Somewhere Before We Can Fix the Problem 我们 Need to Understand If It Is One In the First Place 和 Since WinDirStat Does Not Help Us Properly Identify the Unknown Files 我们 Need a Different Tool
TreeSize to the Rescue
I'm a Lumberjack, and I'm okay, I Disk All Night, and I Check All Day 无论如何 这个 Utility 有 Similar Functionality to WinDirStat 但它 Does It in a Slightly Different Manner, Plus Less Graphics 然而 它 Might Help Us Get a Better View of the Disk Usage
确实 TreeSize Reveals a Different Result Windows Usage 是 90GB 而不是 35GB 如 WinDirStat Reported 和它 Turns Out Most of It Is Located Inside System32\spool\drivers 这是一个 Rather Curious Result 因为没有 Reason 为什么您 Ought to Have 50GB Worth of Printer Drivers 同样 Curious 是事实 WinDirStat Did Not Reflect This Information 在它自己的 Report 中 Perhaps These Are Corrupt Files?
Browsing Through the x64 Directory 我 Soon Learned 有 Roughly 12,500 of These 每个 Containing the Exact Same Set of DLL 对于一些 Weird Reason 我有这些 Thousands of Instances of Drivers for a Particular Network Printer Absolutely Identical to One Another At This Point, Armed with Enough Knowledge 和 Intuition 我 Removed All of Them Apart from a Single Folder 我 Also Did Not Touch Any Other Directories 和 Files That Were Unrelated to the Network Device Finally 我 Verified the Printer Functionality Was Unaffected by My Delete Action
A Subsequent Scan with Both WinDirStat 和 TreeSize Showed Matched Values in Both Tools 如您 Would Expect 所以 Discrepancy Was Now Resolved The Former Had No More Complaints about Unknown Files 和 Disk Usage Was Down to About 60GB 和 There You Go, Problem Fixed!
结论
我不知道什么 Triggered the Weird Creation of 12,500 Folders Containing the Exact Same Driver Set 它 Must Have Been a Crazy Startup Script 或 Similar Error 显然 那些 Files Were Useless, 或 Maybe Even Created in a Non-standard Fashion 这就是为什么 WinDirStat Struggled with the Report 它不重要 我们解决了它
这篇文章 Might Not Necessarily Apply to Your Use Case 但 Principle 是 100% Valid 如果您遇到 Unknown, Inexplicable Data 确保您 Run At Least One More Check with a Different Tool 无论多 Weird Data Should Still Be Consistent 和如果 Reporting Tools Struggle To Give You a Unified View 那是 Your First Problem 希望这个指南教会您如何 Approach Similar Issues 在未来 Correlation, Consistency, Comparison between Good and Bad Systems 所有都是 Necessary Part of Healthy Problem Solving Take Care, and May Your Disks Be Free
Cheers.