Can't shrink Windows Boot NTFS disk: ERROR(5): Could not map attribute 0x80 in inode, Input/output error

Posted by arcyqwerty on Ask Ubuntu See other posts from Ask Ubuntu or by arcyqwerty
Published on 2012-07-04T03:34:33Z Indexed on 2012/10/25 5:21 UTC
Read the original article Hit count: 514

Filed under:
|
|

Ubuntu 12.04 LTS, all updates current as of 7/3/2012

gksudo gparted Shrink /dev/sda2 from 367GB to 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
========================================

Windows has run chkdsk successfully (on boot) several times now

© Ask Ubuntu or respective owner

Related posts about partitioning

Related posts about ntfs