1 (edited by stern_1000 2010-01-21 22:17:16)

Topic: SOLVED: Error: Current NTFS Volume Size is bigger than the device size

After reading other similar topics on this issue, it appears that it is case-specific to each person, so I will post my data and hope someone can help me out.

I recently tried to shrink my main partition that has Win XP installed from 250 GB to 136 GB, and create a second partition to install Win 7 on.

After excecuting the operations in GParted 0.4.8 , the error occured:

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: 249933353472 bytes (249934 MB)
Current device size: 146969303040 bytes (146970 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?

Here are the files and the info which may be needed for a solution:

output fdisk:
Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders, total 488281250 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x30000000

Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63      112454       56196   de  Dell Utility
/dev/sda2   *      128520   287177939   143524710    7  HPFS/NTFS

output gparted:
knoppix@Microknoppix:/root$ parted /dev/sda unit s print
WARNING: You are not superuser.  Watch out for permissions.
Model: ATA WDC WD2500JD-75G (scsi)
Disk /dev/sda: 488281250s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start    End         Size        Type     File system  Flags
1      63s      112454s     112392s     primary  fat16             
2      128520s  287177939s  287049420s  primary  ntfs         boot

Whole gparted log-file:
http://www.mediafire.com/?nek5mymtnng

PBR
http://www.mediafire.com/?2vzznyezwah

MBR
http://www.mediafire.com/?hm40znyxamj

Hope that somebody can give me a instruction how to solve my problem.

Thanks in advance
Michael

2

Re: SOLVED: Error: Current NTFS Volume Size is bigger than the device size

Since you were trying to shrink the partition, we will decrease the NTFS volume size to fit within the partition.

The change I have made to the file is from a length of 488,151,080 sectors:
00000020   00 00 00 00  80 00 80 00  28 98 18 1D  00 00 00 00
To a new length of 287,049,419 sectors:
00000020   00 00 00 00  80 00 80 00  CB 06 1C 11  00 00 00 00

Note:  The NTFS volume size is always 1 sector less than the total number of sectors in the partition table entry because the NTFS backup sector is not considered part of the NTFS volume.

To apply this change:

1) Download the new NTFS PBR: sda2-mbo_new.pbr

2) Load the new NTFS PBR on your hard disk.
NOTE:  Be extra careful when entering the commands.  Data loss could result otherwise.

dd if=sda2-mbo_new.pbr of=/dev/sda bs=512 count=1 seek=128520

3) Reboot the computer

4) Check that the file system is recognized in GParted

5) If all seems fine then I would advise booting into Windows and running "chkdsk /f /r" multiple times, until there are no more faults.

3

Re: SOLVED: Error: Current NTFS Volume Size is bigger than the device size

Thanks,

I've already solved the issue with help from the older postings.

Regards
Michael

4

Re: SOLVED: Error: Current NTFS Volume Size is bigger than the device size

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