Topic: SOLVED - NTFS Volume Bigger than Device Size

Everything was going well -- until the end.  I am getting the NTFS Volume bigger than device size error. The problem is with sda5 -- I resized this partition (decreased) and increased sda2.  I do not have any of the logs for gparted unfortunately.

I used GParted Live v0.5.0-3

The output for fdisk -l -u is as follows:

Disk /dev/sda: 249.4 GB, 249376538624 bytes
255 heads, 63 sectors/track, 30318 cylinders, total 487063552 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x345698d9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63      160649       80293+  de  Dell Utility
/dev/sda2   *      160650    77031674    38435512+   7  HPFS/NTFS
/dev/sda3        77031675   487058669   205013497+   f  W95 Ext'd (LBA)
/dev/sda5        77047740   487058669   205005465    7  HPFS/NTFS

The output for parted /dev/sda unit s print is as follows:

Model: DELL PERC 5/i (scsi)
Disk /dev/sda: 487063552s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start      End         Size        Type      File system  Flags
 1      63s        160649s     160587s     primary   fat16
 2      160650s    77031674s   76871025s   primary   ntfs         boot
 3      77031675s  487058669s  410026995s  extended               lba
 5      77047740s  487058669s  410010930s  logical

The file created using dd if=/dev/sda of=~/sda-tux.pbr bs=512 count=1 is http://omnitechpro.com/files/sda-tux.pbr.

The file created using dd if=/dev/sda of=~/sda5-tux.pbr bs=512 count=1 skip=77047740 is http://omnitechpro.com/files/sda5-tux.pbr.

Although my post doesn't really look like I am in a panic, I really am!  Any help would be great wink  Thanks in advance!


Re: SOLVED - NTFS Volume Bigger than Device Size

Anyone?  I'm kinda getting desperate now......


Re: SOLVED - NTFS Volume Bigger than Device Size

I am looking into your situation.


Re: SOLVED - NTFS Volume Bigger than Device Size

Since you have performed a few resize operations, I think it is safer if we decrease the NTFS volume size to fit within the partition.

The change I have made to the file is from a length of 461,708,088 sectors:
00000020   00 00 00 00  80 00 80 00  38 1B 85 1B  00 00 00 00
To a new length of 410,010,929 sectors:
00000020   00 00 00 00  80 00 80 00  31 45 70 18  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: sda5-tux_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=sda5-tux_new.pbr of=/dev/sda bs=512 count=1 seek=77047740

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.


Re: SOLVED - NTFS Volume Bigger than Device Size

It worked!  Thank you for all your help this weekend... it made my life allot easier!  I will put in at work to donate to the gparted project.  Thanks again for your help and the work of the team who brings us gparted!

6 (edited by gedakc 2009-12-13 21:34:32)

Re: SOLVED - NTFS Volume Bigger than Device Size

I am glad that the problem in your situation has been solved.  smile

As you might already know, we are tracking this problem in the following post:
WARNING! Problem Resizing File Systems with GParted

I have taken the liberty of editing the initial post and prefixing the title with solved.

Donations are always appreciated and can be made at the following link: