1

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

I have a problem with my ntfs filesystem. After resizing, windows doesn't boot anymore:

Linux PartedMagic 2.6.30.6-pmagic #3 SMP Mon Sep 14 18:04:38 CDT 2009 i686 GNU/Linux

ntfsresize v2.0.0 (libntfs 10:0:0)
Device name        : /dev/sda1
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 80023712256 bytes (80024 MB)
Current device size: 69536484864 bytes (69537 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?


Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x2971356d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   135813509    67906723+   7  HPFS/NTFS


Model: ATA WDC WD800AAJS-00 (scsi)
Disk /dev/sda: 156301488s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End         Size        Type     File system  Flags
1      63s    135813509s  135813447s  primary  ntfs         boot

MBR:
http://www.mediafire.com/?sharekey=7eae … 450a8c1cf1

dd if=/dev/sda of=/media/disk/sda1-bernhard.pbr bs=512 count=1 skip=63
http://www.mediafire.com/?sharekey=7eae … 450a8c1cf1

Could you help me get my system working again?

Thank you!

2

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

Thank you for creating a new post bernhard.  smile

In your situation I think it is safer if we increase the partition size to encompass the entire NTFS volume.

The change I have made to the file is from a length of 135,813,447 sectors:
000001C0   01 00 07 FE  FF FF 3F 00  00 00 47 59  18 08 00 00
To a new length of 156,296,313 sectors:
000001C0   01 00 07 FE  FF FF 3F 00  00 00 79 E4  50 09 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 MBR: sda-bernhard_new.mbr

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

dd if=sda-bernhard_new.mbr of=/dev/sda bs=512 count=1

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.

NOTE:  We are tracking a problem with GParted resizing file systems.  See post:
WARNING! Problem Resizing File Systems with GParted

3

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

Great thanks to you. My System is back working.
I will try GParted Live 0.4.6-1 now...

4

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

I am glad to hear that the problem is solved you.  smile

To help other users would you be able to edit your initial post and prefix "SOLVED" at the front of the title?

EDIT:
I have done this step for you.  smile