1 (edited by StasXH 2009-11-25 21:27:06)

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

Hello! i resize 40gb -> 24gb NTFS winXP partition witch gparted 0.4.8 and got a similar problem ...
As in my case, get mbr record? dd if=/dev/sda of=sdc1.pbr bs=512 count=1 skip=63 ???
fdisk -u-l, parted and gparted reports:
http://www.mediafire.com/?sharekey=7b7e … bfb1230ce0

Sorry for my english, I'm Russian, translated via google transl.

2

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

You can capture the Master Boot Record in a file with the following command:

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

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

where sda-stasxh.mbr is the name of the file that will need to be uploaded.


You can capture the NTFS Partition Boot Record in a file with the following command:

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

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

where sda1-stasxh.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, and post the link to these files in this forum post.

3 (edited by StasXH 2009-11-25 18:40:02)

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

OK, this files is uploaded

http://www.mediafire.com/?sharekey=7b7e … bfb1230ce0

4

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

In this situation I think it is safest 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 51,263,352 sectors:
000001C0   01 00 07 FE  FF FF 3F 00  00 00 78 37  0E 03 00 00
To a new length of 78,140,089 sectors:
000001C0   01 00 07 FE  FF FF 3F 00  00 00 B9 52  A8 04 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-stasxh_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-stasxh_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

5

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

Thank you!

6

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

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

Thank you for editing the title of the initial post and prefixing it with "SOLVED".