1 (edited by akhenaton 2010-01-06 16:02:10)

Topic: [Solved] NTFS volume size is bigger than the device size

Hi guys,

I need help to solve this problem after resize ntfs partition. After resize and boot the windows XP SP2 Professional show me blue screen after the windows XP logo saying unmontable_device and bla bla bla.

I'd use Gparted 0.4.8 in Fedora11 LiveCD Gnome with return of uname -r 2.6.29.4-167.fc11.i586. Device length is 160GB. I think before resize the free space is aproximately 20 GB.

I boot the liveCD again and Gparted show-me this error in the information:

...ntfs volume size is bigger than the device size...

I was trying resize of the full length decrease it in 5GB, ie. 160GB - 5GB = 155GB, to use the 5GB for create a new partition to save images for burn in DVD To backup some files because this disk aproximately full.

Some important files in this HD !!

Apologize my english !!!

========================== EDIT ======================================

According to post http://gparted-forum.surf4.info/viewtopic.php?id=13777

This is the output of the commands:

=================================================================

fdisk -l -u

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = setores of 1 * 512 = 512 bytes
Disk identifier: 0x17f717f6

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   302086259   151043098+   7  HPFS ou NTFS

=================================================================

=================================================================

parted /dev/sdb unit s print

[?1034hModel: ATA SAMSUNG HD161HJ (scsi)
Disk /dev/sdb: 312581808s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End         Size        Type     File system  Sinalizador
1      63s    302086259s  302086197s  primary  ntfs         boot       

=================================================================

Thanks Guys !!!

2

Re: [Solved] NTFS volume size is bigger than the device size

Next we will need copies of the Master Boot Record and the NTFS Partition Boot Record.

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/sdb of=sdb-akhenaton.mbr bs=512 count=1

where sdb-akhenaton.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/sdb of=sdb1-akhenaton.pbr bs=512 count=1 skip=63

where sdb1-akhenaton.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 akhenaton 2010-01-06 00:53:30)

Re: [Solved] NTFS volume size is bigger than the device size

Hi thanks to reply !!!

I upload the files to 4shared because the others file sharing need install flash player to upload them. I got some errors to install it.

The link to capture the Master Boot Record file is:

http://www.4shared.com/file/189226058/e … naton.html

The link to capture the NTFS Partition Boot Record file is:

http://www.4shared.com/file/189225860/d … naton.html

Thanks for help me !!!

I'll be online here !!! cool

=================================== EDIT =============================================

I have two "partitions", the partition sdb1 and 5GB free for create a new partition commented a post above. This resize to free 5GB space to create a new partition damage NTFS system.

Thanks !!!

4

Re: [Solved] 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 312,576,632 sectors:
00000020   00 00 00 00  80 00 80 00  78 8A A1 12  00 00 00 00
To a new length of 302,086,196 sectors:
00000020   00 00 00 00  80 00 80 00  34 78 01 12  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: sdb1-akhenaton_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=sdb1-akhenaton_new.pbr of=/dev/sdb bs=512 count=1 seek=63

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.

5

Re: [Solved] NTFS volume size is bigger than the device size

Thanks Bro !!!

I'll apply this changes now and after post de feedback !!!

6

Re: [Solved] NTFS volume size is bigger than the device size

Sorry for feedback late !!!

Thanks Bro !!!

Everything is ok now !!!

I run chkdsk twice i think, but it run slowly !!! Now the HD is bootable and the files is acessible !!

I was curious !!! how to identify the length right of partition and correct the NTFS filesystem ???

I ever use my Fedora 11(10) LiveCD with Gnome, and install gparted with YUM and resize and others changes in my partitions no problems !!! This time the big trouble to resize !!! big_smile

7

Re: [Solved] NTFS volume size is bigger than the device size

It is good to hear that the problem is resolved.  smile

And thank you for prefixing "SOLVED" in the title of this post.

To learn more about the Master Boot Record, and the NTFS Boot Record, you can refer to the GParted documentation links.

The problem you encountered is intermittent in nature and does not occur all the time.