Regular Member
加入日期: Jan 2017
文章: 85
|
壓縮磁碟後反而空間不足?
今天同事問我
無法複製檔案的問題 硬碟是250GB SSD 全部資料夾容量只占200GB 剩4X多GB 從隨身碟複製10GB進去 卻出現空間不足 查看後發現同事有開磁碟壓縮 自己做實驗 win10環境 設定一個1GB RAMDISK 打開磁碟壓縮 複製一堆檔案約650MB進去 複製快結束時出現空間不足 無法複製 經查看 已複製進去約598MB 磁碟大小 391MB 剩下約50MB還沒複製 理論上沒有空間不足的問題 打開RAMDISK磁碟內容 發現 已使用空間約 0.99GB 可用空間 只剩5.46MB 全選檔案查看內容或用Treesize查看 全部檔案加起來也只有約600MB左右 當然解決方法就是不要用磁碟壓縮 不過 怎麼會這樣呢? 有人知道嗎? 謝謝。 |
|||||||
2020-08-27, 10:25 AM
#1
|
Junior Member
加入日期: Apr 2002 您的住址: 台中市
文章: 796
|
__________________
燦坤卡號:35171847 |
||
2020-08-27, 03:45 PM
#2
|
Regular Member
加入日期: Jan 2017
文章: 85
|
引用:
謝謝回答 我用RAMDISK也是一樣 所以不是這問題 |
|
2020-08-27, 07:52 PM
#3
|
Senior Member
加入日期: Sep 2001 您的住址: K
文章: 1,444
|
看這篇
https://docs.microsoft.com/en-us/ar...tfs-compression 最下面有提到出現磁碟已滿的問題(注意第3點) Disk full error during a backup read operation or file copy… 1. NTFS determines which compression unit is being accessed. 2. The compression unit’s entire allocated range is read. 3. If the unit is not compressed, then we skip to step 5. Otherwise, NTFS would attempt to reserve (but not allocate) the space required to write the decompressed CU back to disk. If insufficient free space exists on the disk, then the application might get an ERROR_DISK_FULL during the read. 4. The CU would be decompressed in memory. 5. The decompressed byte range would be mapped into cache and returned to the requesting application. 6. If part of the CU is altered in cache… ----a. The reserved disk space from step 3 would become allocated space. ----b. The CU contents would be compressed and flushed back to the newly allocated region (the LCN location will usually not change). ----c. Any recoverable disk space within the CU would be freed. 此文章於 2020-08-27 09:54 PM 被 substar999 編輯. |
2020-08-27, 09:53 PM
#4
|
Regular Member
加入日期: Jan 2017
文章: 85
|
|
2020-08-27, 11:32 PM
#5
|