1 (edited by juky 2011-06-02 17:07:04)

Topic: Another "Current NTFS volume size is bigger than the device size"

Hello everyone,

I've just bought a netbook last week, all was OK... still today : G-Parted give me two errors during the resizing of partitions (I just wanted to create a new one to store my personal data). The better is that I've no backup of the OS (thanks to Microsoft !).

I've searched a lot on forums, trying to use chkdsk or other tools but without success : Windows 7 refuses to start. I've just download the last version of G-Parted but it didn't repair this. The partitions sda2 and sda3 are in error.

So, if someone can help me here, he/she will be welcome...  big_smile

Here the datas (I saw the other posts on this subject are dealed like this) :

SDA 2 :

First sector : 409600
Last sector : 102815999
Total sectors : 102406400
ntfsresize v.2.0.0
DeviceName : /dev/sda2
NTFS volume version : 3.1
Cluster size : 4096 bytes
Current volume size : 624227774976 bytes (624228 MB)
Current device size : 52432076800 bytes (52433 MB)
Error : Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partionning?

SDA 3 :

First sector : 102816000
Last sector : 133259174
Total sectors : 30443175
ntfsresize v.2.0.0
DeviceName : /dev/sda3
NTFS volume version : 3.1
Cluster size : 4096 bytes
Current volume size : 15588127232 bytes (15589 MB)
Current device size : 15586905600 bytes (15587 MB)
Error : Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partionning?


root@PartedMagic:~# fdisk /dev/sda -u -l

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x2cf9fb39

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      409599      203776    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2          409600   102815999    51203200    7  HPFS/NTFS
/dev/sda3       102816000   133259174    15221587+   7  HPFS/NTFS


root@PartedMagic:~# parted /dev/sda unit s print

Model: ATA WDC WD6400BPVT-6 (scsi)
Disk /dev/sda: 1250263728s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start       End         Size        Type     File system  Flags
 1      2048s       409599s     407552s     primary  ntfs         boot 
 2      409600s     102815999s  102406400s  primary  ntfs              
 3      102816000s  133259174s  30443175s   primary  ntfs  


PBR :

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

http://el.juky.free.fr/tmp/sda1-juky.pbr


MBR :

dd if=/dev/sda of=sda1-juky.pbr bs=512  count=1 skip=63

http://el.juky.free.fr/tmp/sda-juky.mbr




Hope someone can help me, thanks.

2

Re: Another "Current NTFS volume size is bigger than the device size"

From the fdisk and parted outputs, your partitions begin at the following sectors:
sda2  409600s
sda3  102816000s

Hence these are the values that must be used when capturing the PBRs.

You can capture the NTFS Partition Boot Records in files with the following commands:

NOTE:  Be extra careful to type this command in properly, otherwise loss of data could result.

dd if=/dev/sda of=sda2-juky.pbr bs=512 count=1 skip=409600

where sda2-juky.pbr is the name of the file that will need to be uploaded.

dd if=/dev/sda of=sda3-juky.pbr bs=512 count=1 skip=102816000

where sda3-juky.pbr is the name of the file that will need to be uploaded.


Then upload these files to a media sharing site, such as mediafire or filefactory, and post the link to these files in this forum post.

3

Re: Another "Current NTFS volume size is bigger than the device size"

Thank you Gedakc, I've just noticed the tutorial, so I started to correct the problem.

In your example, at the end of the first post, it is written :
"dd if=/some/where/myCurrentPbr.pbr of=/dev/sda bs=512 count=1 seek=63"

In my case, is it better to do:
"dd if=/some/where/myCurrentPbr.pbr of=/dev/sda bs=512 count=1 seek=102816000" ?

4

Re: Another "Current NTFS volume size is bigger than the device size"

Ok, I apply this and it's correct now.

Thank you.

One more question : is the bug corrected in the last version of G-Parted ?

5

Re: Another "Current NTFS volume size is bigger than the device size"

The bug arises only with certain combinations of libparted, GParted, Linux, and other utilities.  To avoid the problem it is best to use the latest version of GParted Live.

For more information see Problem Resizing File Systems with GParted