Topic: Resizing NTFS problems for Seagate GoFlex Desk 2TB External USB 2.0
I tried to resize the only NTFS partition that comes pre-formatted with my external 2TB Seagate GoFlex Desk harddrive. I attempted to reduce the formatted size from 1.82TB to 1.53TB to give space "on the right end of the drive". My intention for the space was to copy and paste partitions from another internal Samsung harddrive which SMART reports imminent failure.
I ran Linux Mint 11 from an SSD and use GParted 0.8.1. After a long wait, gparted reported doing everything successfully except the last part: the final NTFS consistency check. I tried to save the details but it hanged, but luckily the file was saved anyway.
After this I cannot mount it in Linux saying I/O error and that $MFT and $MFTMirr don't agree. Neither can Windows 7 mount it and in Disk Management, the partition was wrongly identified as RAW though the drive letter is still here. Double clicking the drive letter says "disk structure corrupted and unreadable".
I was suspecting there's some proprietory magic in the enclosure base that causes trouble, and so I tried to unplug the base which provides the USB port and found there's SATA type power and data ports. I plugged it directly to my motherboard SATA ports and the BIOS wouldn't even detect the harddrive...
I'm clueless on what to do now... This external harddrive has been performing well and there's never sudden disconnection due to instability of USB power (there's a dedicated AC adapter and my motherboard is quite new). Since gparted basically went through everything normally I think my precious data are all there... I dare not force reconstruct the partition table and NTFS filesystem to the former state... Any suggestions?
As for the details dumped out from gparted, I can't find useful information from the details but I post here anyway:
GParted 0.8.1 --enable-libparted-dmraid
Libparted 2.3
Shrink /dev/sdd1 from 1.82 TB to 1.53 TB 02:39:02 ( ERROR )
calibrate /dev/sdd1 00:00:00 ( SUCCESS )
path: /dev/sdd1
start: 63
end: 3907024127
size: 3907024065 (1.82 TB)
check file system on /dev/sdd1 for errors and (if possible) fix them 00:01:25 ( SUCCESS )
ntfsresize -P -i -f -v /dev/sdd1
ntfsresize v2011.4.12AR.4 (libntfs-3g)
Device name : /dev/sdd1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 2000396321280 bytes (2000397 MB)
Current device size: 2000396321280 bytes (2000397 MB)
Checking for bad sectors ...
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 1145464 MB (57.3%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 1940908 MB 0
Multi-Record : 1997793 MB 941317
$MFTMirr : 1000199 MB 1
Compressed : 65407 MB 364643
Sparse : 1844328 MB 398787
Ordinary : 2000397 MB 1163205
You might resize at 1145463681024 bytes or 1145464 MB (freeing 854933 MB).
Please make a test run using both the -n and -s options before real resizing!
shrink file system 02:36:56 ( SUCCESS )
run simulation 00:10:22 ( SUCCESS )
ntfsresize -P --force /dev/sdd1 -s 1685827060223 --no-action
ntfsresize v2011.4.12AR.4 (libntfs-3g)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Non-positive free clusters (0)!
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Device name : /dev/sdd1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 2000396321280 bytes (2000397 MB)
Current device size: 2000396321280 bytes (2000397 MB)
New volume size : 1685827056128 bytes (1685828 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 1145464 MB (57.3%)
Collecting resizing constraints ...
Needed relocations : 22783962 (93324 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 ...
Updating Boot record ...
The read-only test run ended successfully.
real resize 02:26:34 ( SUCCESS )
ntfsresize -P --force /dev/sdd1 -s 1685827060223
ntfsresize v2011.4.12AR.4 (libntfs-3g)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 23 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 22 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 21 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 20 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 19 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 18 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 17 has no FILE magic (0x0)
ntfs_mst_post_read_fixup: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 16 has no FILE magic (0x0)
Non-positive free clusters (0)!
Device name : /dev/sdd1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 2000396321280 bytes (2000397 MB)
Current device size: 2000396321280 bytes (2000397 MB)
New volume size : 1685827056128 bytes (1685828 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 1145464 MB (57.3%)
Collecting resizing constraints ...
Needed relocations : 22783962 (93324 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 ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device '/dev/sdd1'.
You can go on to shrink the device for example with Linux fdisk.
IMPORTANT: When recreating the partition, make sure that you
1) create it at the same disk sector (use sector as the unit!)
2) create it with the same partition type (usually 7, HPFS/NTFS)
3) do not make it smaller than the new NTFS filesystem size
4) set the bootable flag for the partition if it existed before
Otherwise you won't be able to access NTFS or can't boot from the disk!
If you make a mistake and don't have a partition table backup then you
can recover the partition table by TestDisk or Parted's rescue mode.
shrink partition from 1.82 TB to 1.53 TB 00:00:01 ( SUCCESS )
old start: 63
old end: 3907024127
old size: 3907024065 (1.82 TB)
new start: 63
new end: 3292631039
new size: 3292630977 (1.53 TB)
check file system on /dev/sdd1 for errors and (if possible) fix them 00:00:40 ( ERROR )
ntfsresize -P -i -f -v /dev/sdd1