Topic: SOLVED-ERROR: Current NTFS volume size is bigger than the device size!
Please Help!
On NTFS (running WindowsXP) I am trying to increase primary partition. To that end, I need to shrink my 2nd partition. In doing so I get the following error.
check file system on /dev/sda2 for errors and (if possible) fix them 00:00:00 ( ERROR )
ntfsresize -P -i -f -v /dev/sda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 239569498624 bytes (239570 MB)
Current device size: 212722191360 bytes (212723 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?
This is what I had Originally:
sda1 ~=9.7GB (Primary Partition NTFS running Windows XP)
sda2 ~=223 GB (NTFS for Data 60% free )
This is my Goal:
sda1 ~=25GB (Primary Partition NTFS running Windows XP)
unallocated ~10GB
sda2 ~= 198GB (NTFS for Data)
Device Info:
Model: ATAST3250310AS
Size: 232.88 GB
Path: /dev/sda
DiskLabelType: msdos
Heads: 255
Sectors/Track: 63
Cylinders: 30401
Total Sectors: 488 392 065
Full Log File:
GParted 0.4.4
Libparted 1.8.8
Move /dev/sda2 to the right and shrink it from 223.12 GiB to 198.11 GiB 02:17:09 ( ERROR )
calibrate /dev/sda2 00:00:00 ( SUCCESS )
path: /dev/sda2
start: 20482875
end: 488392064
size: 467909190 (223.12 GiB)
calculate new size and position of /dev/sda2 00:00:00 ( SUCCESS )
requested start: 72919035
requested end: 488392064
requested size: 415473030 (198.11 GiB)
new start: 72919035
new end: 488392064
new size: 415473030 (198.11 GiB)
check file system on /dev/sda2 for errors and (if possible) fix them 00:00:01 ( SUCCESS )
ntfsresize -P -i -f -v /dev/sda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 239569502720 bytes (239570 MB)
Current device size: 239569505280 bytes (239570 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 97937 MB (40.9%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 62231 MB 0
Multi-Record : 96651 MB 23869
$MFTMirr : 119785 MB 1
Ordinary : 151583 MB 46613
You might resize at 97936248832 bytes or 97937 MB (freeing 141633 MB).
Please make a test run using both the -n and -s options before real resizing!
shrink file system 00:00:05 ( SUCCESS )
run simulation 00:00:03 ( SUCCESS )
ntfsresize -P --force /dev/sda2 -s 212722191359 --no-action
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 239569502720 bytes (239570 MB)
Current device size: 239569505280 bytes (239570 MB)
New volume size : 212722184704 bytes (212723 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 97937 MB (40.9%)
Collecting resizing constraints ...
Needed relocations : 0 (0 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
The read-only test run ended successfully.
real resize 00:00:02 ( SUCCESS )
ntfsresize -P --force /dev/sda2 -s 212722191359
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 239569502720 bytes (239570 MB)
Current device size: 239569505280 bytes (239570 MB)
New volume size : 212722184704 bytes (212723 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 97937 MB (40.9%)
Collecting resizing constraints ...
Needed relocations : 0 (0 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device '/dev/sda2'.
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 223.12 GiB to 198.11 GiB 00:00:01 ( SUCCESS )
old start: 20482875
old end: 488392064
old size: 467909190 (223.12 GiB)
new start: 20482875
new end: 435955904
new size: 415473030 (198.11 GiB)
check file system on /dev/sda2 for errors and (if possible) fix them 00:00:01 ( SUCCESS )
ntfsresize -P -i -f -v /dev/sda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 212722184704 bytes (212723 MB)
Current device size: 239569505280 bytes (239570 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 97936 MB (46.0%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 62231 MB 0
Multi-Record : 96651 MB 23869
$MFTMirr : 119785 MB 1
Ordinary : 151583 MB 46613
You might resize at 97935429632 bytes or 97936 MB (freeing 114787 MB).
Please make a test run using both the -n and -s options before real resizing!
grow file system to fill the partition 00:00:04 ( SUCCESS )
run simulation 00:00:02 ( SUCCESS )
ntfsresize -P --force /dev/sda2 --no-action
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 212722184704 bytes (212723 MB)
Current device size: 239569505280 bytes (239570 MB)
New volume size : 239569498624 bytes (239570 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 97936 MB (46.0%)
Collecting resizing constraints ...
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
The read-only test run ended successfully.
real resize 00:00:02 ( SUCCESS )
ntfsresize -P --force /dev/sda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 212722184704 bytes (212723 MB)
Current device size: 239569505280 bytes (239570 MB)
New volume size : 239569498624 bytes (239570 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 97936 MB (46.0%)
Collecting resizing constraints ...
WARNING: Every sanity check passed and only the dangerous operations left.
Make sure that important data has been backed up! Power outage or computer
crash may result major data loss!
Are you sure you want to proceed (y/[n])? Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device '/dev/sda2'.
calculate new size and position of /dev/sda2 00:00:00 ( SUCCESS )
requested start: 72919035
requested end: 488392064
requested size: 415473030 (198.11 GiB)
new start: 72919035
new end: 488392064
new size: 415473030 (198.11 GiB)
check file system on /dev/sda2 for errors and (if possible) fix them 00:00:01 ( SUCCESS )
ntfsresize -P -i -f -v /dev/sda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 239569498624 bytes (239570 MB)
Current device size: 239569505280 bytes (239570 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 97937 MB (40.9%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 62231 MB 0
Multi-Record : 96651 MB 23869
$MFTMirr : 119785 MB 1
Ordinary : 151583 MB 46613
You might resize at 97936248832 bytes or 97937 MB (freeing 141633 MB).
Please make a test run using both the -n and -s options before real resizing!
move file system to the right 02:16:56 ( SUCCESS )
perform read-only test 00:44:22 ( SUCCESS )
using internal algorithm
read 415473030 sectors
finding optimal blocksize
read 65536 sectors using a blocksize of 128 sectors 00:00:02 ( SUCCESS )
65536 of 65536 read
1.61078 seconds
read 65536 sectors using a blocksize of 256 sectors 00:00:01 ( SUCCESS )
65536 of 65536 read
1.57342 seconds
read 65536 sectors using a blocksize of 512 sectors 00:00:02 ( SUCCESS )
65536 of 65536 read
1.66642 seconds
read 65536 sectors using a blocksize of 1024 sectors 00:00:02 ( SUCCESS )
65536 of 65536 read
1.67636 seconds
read 65536 sectors using a blocksize of 2048 sectors 00:00:01 ( SUCCESS )
65536 of 65536 read
1.29327 seconds
read 65536 sectors using a blocksize of 4096 sectors 00:00:01 ( SUCCESS )
65536 of 65536 read
1.05056 seconds
read 65536 sectors using a blocksize of 8192 sectors 00:00:01 ( SUCCESS )
65536 of 65536 read
0.808968 seconds
read 65536 sectors using a blocksize of 16384 sectors 00:00:01 ( SUCCESS )
65536 of 65536 read
0.713236 seconds
read 65536 sectors using a blocksize of 32768 sectors 00:00:00 ( SUCCESS )
65536 of 65536 read
0.748487 seconds
read 65536 sectors using a blocksize of 65536 sectors 00:00:01 ( SUCCESS )
65536 of 65536 read
0.54081 seconds
optimal blocksize is 65536 sectors (32.00 MiB)
read 414817670 sectors using a blocksize of 65536 sectors 00:44:10 ( SUCCESS )
414817670 of 414817670 read
415473030 sectors read
perform real move 01:32:34 ( SUCCESS )
using internal algorithm
copy 415473030 sectors
finding optimal blocksize
copy 65536 sectors using a blocksize of 64 sectors 00:00:03 ( SUCCESS )
65536 of 65536 copied
2.68579 seconds
copy 65536 sectors using a blocksize of 128 sectors 00:00:03 ( SUCCESS )
65536 of 65536 copied
2.6676 seconds
copy 65536 sectors using a blocksize of 256 sectors 00:00:02 ( SUCCESS )
65536 of 65536 copied
2.73949 seconds
copy 65536 sectors using a blocksize of 512 sectors 00:00:03 ( SUCCESS )
65536 of 65536 copied
2.48946 seconds
copy 65536 sectors using a blocksize of 1024 sectors 00:00:02 ( SUCCESS )
65536 of 65536 copied
2.39888 seconds
copy 65536 sectors using a blocksize of 2048 sectors 00:00:02 ( SUCCESS )
65536 of 65536 copied
2.19603 seconds
copy 65536 sectors using a blocksize of 4096 sectors 00:00:02 ( SUCCESS )
65536 of 65536 copied
1.95316 seconds
copy 65536 sectors using a blocksize of 8192 sectors 00:00:02 ( SUCCESS )
65536 of 65536 copied
1.82558 seconds
copy 65536 sectors using a blocksize of 16384 sectors 00:00:02 ( SUCCESS )
65536 of 65536 copied
1.57885 seconds
copy 65536 sectors using a blocksize of 32768 sectors 00:00:01 ( SUCCESS )
65536 of 65536 copied
1.36901 seconds
copy 65536 sectors using a blocksize of 65536 sectors 00:00:01 ( SUCCESS )
65536 of 65536 copied
1.32658 seconds
optimal blocksize is 65536 sectors (32.00 MiB)
copy 414752134 sectors using a blocksize of 65536 sectors 01:32:11 ( SUCCESS )
414752134 of 414752134 copied
415473030 sectors copied
move partition to the right 00:00:00 ( SUCCESS )
old start: 20482875
old end: 435955904
old size: 415473030 (198.11 GiB)
new start: 72919035
new end: 488392064
new size: 415473030 (198.11 GiB)
updating boot sector of ntfs file system on /dev/sda2 00:00:00 ( SUCCESS )
echo fba75804 | /usr/bin/xxd -r -p | /bin/dd conv=notrunc of=/dev/sda2 bs=1 seek=28
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.0160068 s, 0.2 kB/s
check file system on /dev/sda2 for errors and (if possible) fix them 00:00:00 ( ERROR )
ntfsresize -P -i -f -v /dev/sda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 239569498624 bytes (239570 MB)
Current device size: 212722191360 bytes (212723 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?
========================================
Grow /dev/sda1 from 9.77 GiB to 25.00 GiB
========================================