无法缩小 Windows 启动 NTFS 磁盘:错误(5):无法在 inode 中映射属性 0x80,输入/输出错误

arc*_*rty 1 partitioning gparted ntfs

Ubuntu 12.04 LTS,截至 2012 年 7 月 3 日的所有更新

gksudo gparted 将 /dev/sda2 从 367GB 缩小到 307GB

GParted 0.11.0 --enable-libparted-dmraid

Libparted 2.3

Shrink /dev/sda2 from 367.00 GiB to 307.00 GiB  00:32:57    ( ERROR )

calibrate /dev/sda2  00:00:00    ( SUCCESS )

path: /dev/sda2
start: 20,484,096
end: 790,142,975
size: 769,658,880 (367.00 GiB)
check file system on /dev/sda2 for errors and (if possible) fix them  00:00:53    ( SUCCESS )

ntfsresize -P -i -f -v /dev/sda2

ntfsresize v2012.1.15AR.1 (libntfs-3g)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 394065338880 bytes (394066 MB)
Current device size: 394065346560 bytes (394066 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 327950 MB (83.2%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 389998 MB 0
Multi-Record : 394061 MB 386464
$MFTMirr : 314823 MB 1
Compressed : 394064 MB 1019521
Sparse : 330887 MB 752454
Ordinary : 393297 MB 706060
You might resize at 327949758464 bytes or 327950 MB (freeing 66116 MB).
Please make a test run using both the -n and -s options before real resizing!
shrink file system  00:32:04    ( ERROR )

run simulation  00:32:04    ( ERROR )

ntfsresize -P --force --force /dev/sda2 -s 329640837119 --no-action

ntfsresize v2012.1.15AR.1 (libntfs-3g)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 394065338880 bytes (394066 MB)
Current device size: 394065346560 bytes (394066 MB)
New volume size : 329640829440 bytes (329641 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 327950 MB (83.2%)
Collecting resizing constraints ...
Needed relocations : 13300525 (54479 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
Updating $BadClust file ...
Updating $Bitmap file ...
ERROR(5): Could not map attribute 0x80 in inode 1667593: Input/output error
========================================
Run Code Online (Sandbox Code Playgroud)

Windows 现在已成功运行 chkdsk(在启动时)多次

小智 5

当分区使用了 555TB 时,我在尝试将 931GB 分区缩小到大约 600GB 时遇到了类似的错误。

直接缩小到 600GB 的尝试和缩小到 610GB 的尝试都失败了。

然后我选择了 610GB 和 931GB = 731GB 之间的中点,并且能够通过模拟检查。如果这有效,我将继续尝试中点,直到达到我需要达到的大小。