1 (edited by wtever 2010-11-09 20:57:49)

Topic: [SOLVED] current NTFS volume size is bigger than the device size

i have the same error as the one in http://gparted-forum.surf4.info/viewtopic.php?id=13633 but since the solution was specific to his case i had to resubmit here is my log file

GParted 0.6.2

Libparted 2.3
Shrink /dev/sda5 from 329.88 GiB to 289.88 GiB  00:01:01    ( ERROR )
         
calibrate /dev/sda5  00:00:00    ( SUCCESS )
         
path: /dev/sda5
start: 170851338
end: 862658369
size: 691807032 (329.88 GiB)
check file system on /dev/sda5 for errors and (if possible) fix them  00:00:03    ( SUCCESS )
         
ntfsresize -P -i -f -v /dev/sda5
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 354205196800 bytes (354206 MB)
Current device size: 354205200384 bytes (354206 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 42725 MB (12.1%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 173 MB 0
Multi-Record : 333588 MB 27953
$MFTMirr : 177103 MB 1
Sparse : 321290 MB 49
Ordinary : 334871 MB 117691
You might resize at 42724118528 bytes or 42725 MB (freeing 311481 MB).
Please make a test run using both the -n and -s options before real resizing!
shrink file system  00:00:55    ( SUCCESS )
         
run simulation  00:00:05    ( SUCCESS )
         
ntfsresize -P --force /dev/sda5 -s 311257721855 --no-action
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 354205196800 bytes (354206 MB)
Current device size: 354205200384 bytes (354206 MB)
New volume size : 311257715200 bytes (311258 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 42725 MB (12.1%)
Collecting resizing constraints ...
Needed relocations : 192695 (790 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  00:00:50    ( SUCCESS )
         
ntfsresize -P --force /dev/sda5 -s 311257721855
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 354205196800 bytes (354206 MB)
Current device size: 354205200384 bytes (354206 MB)
New volume size : 311257715200 bytes (311258 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 42725 MB (12.1%)
Collecting resizing constraints ...
Needed relocations : 192695 (790 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/sda5'.
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 329.88 GiB to 289.88 GiB  00:00:03    ( SUCCESS )
         
old start: 170851338
old end: 862658369
old size: 691807032 (329.88 GiB)
new start: 170851338
new end: 778776575
new size: 607925238 (289.88 GiB)
check file system on /dev/sda5 for errors and (if possible) fix them  00:00:00    ( ERROR )
         
ntfsresize -P -i -f -v /dev/sda5
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 354205196800 bytes (354206 MB)
Current device size: 311257721856 bytes (311258 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?
grow file system to fill the partition  00:00:00    ( ERROR )
         
run simulation  00:00:00    ( ERROR )
         
ntfsresize -P --force /dev/sda5 --no-action
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 354205196800 bytes (354206 MB)
Current device size: 311257721856 bytes (311258 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?

========================================
Move /dev/sda6 to the left and grow it from 40.00 GiB to 80.00 GiB

========================================

here is the output of the command

dd  if=/dev/sda  of=/mnt/usb/gparted/sda.mbr  bs=512  count=1

http://rapidshare.com/files/429813990/sda.mbr

and of the command

dd  if=/dev/sda  of=/mnt/usb/gparted/sda2_old.pbr  bs=512  skip=170851338  count=100

http://rapidshare.com/files/429814038/sda2_old.pbr

and of command

dd  if=/dev/sda  of=/mnt/usb/gparted/sda2_end1.pbr  bs=512  skip=691807032  count=100

http://rapidshare.com/files/429814067/sda5_end1.pbr

and of command

dd  if=/dev/sda  of=/mnt/usb/gparted/sda2_end2.pbr  bs=512  skip=607925238  count=100

http://rapidshare.com/files/429814079/sda5_end2.pbr

thx in advance


edit :

i have followed the instruction in http://gparted-forum.surf4.info/viewtopic.php?id=13777 and been able to solve the problem but had to check the partition using windows chkdsk afterwards anyway hope it will get fixed sometime and good job overall on such a nice program

2

Re: [SOLVED] current NTFS volume size is bigger than the device size

It is good to hear that you were able to solve the problem.  smile