1 (edited by devastator 2010-11-30 23:30:21)

Topic: [SOLVED] ERROR: Current NTFS volume size is bigger ... etc.

I have simmilar problem what the other.

After resizing partition i've got information "ERROR: Current NTFS volume size is bigger than device size".

Now I can't mount windows xp partition in Ubuntu, it's available but can't read. TestDisk can see NTFS partition but can't read any files.

Partition was 80GB, means whole disk, after resize about 30GB. Next, I installed Ubuntu 10..04lts using rest of free space.

Ubuntu is finding ntfs partition, but doesn't find windows installation. TestDisk can see partition but can't read any data and print information, data-files are damaged.

All tools I use are from my Ubuntu, only GParted was used from LiveCD.

I did as these http://gparted-forum.surf4.info/viewtopic.php?id=13937 tutorial guide me but after GParted running in Ubuntu couldn't see NTFS file system. File system was unknown. So i've decided to back up copy of my myCurrentPbr.pbr file.

results before change length of sectors.

# ntfsresize --info --force /dev/sda1

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

# fdisk -l -u /dev/sda

Disk /dev/sda: 80.0 GB, bytes: 80026361856
heads: 255, sectors/track: 63, cylinders: 9729, total sectors: 156301488
Unit = sectors of 1 * 512 = 512 bytes
Sectors size (logical/physical) bytes: 512 / 512
I/O size (minimum/optimal) bytes: 512 / 512
Disk identifier: 0x49834982

  Device Boot       Start        End     Blocks     ID  System
/dev/sda1   *       16065    61593209    30788572+   7  HPFS/NTFS
/dev/sda2        61593598   156301311    47353857    5  Rozszerzona
/dev/sda5        61593600    63545343      975872   82  Linux swap / Solaris
/dev/sda6        63547392   156301311    46376960   83  Linux

# parted /dev/sda unit s print

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

Number Start      End          Size       Type      File system     Flags
 1     16065s     61593209s   61577145s  primary   ntfs            boot 
 2     61593598s  156301311s  94707714s  extended
 5     61593600s  63545343s   1951744s   logical   linux-swap(v1)
 6     63547392s  156301311s  92753920s  logical   ext4

I really need somebody to help me.
Please ;]

2

Re: [SOLVED] ERROR: Current NTFS volume size is bigger ... etc.

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

where sda-devastator.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-devastator.pbr bs=512 count=1 skip=16065

where sda1-devastator.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: [SOLVED] ERROR: Current NTFS volume size is bigger ... etc.

Thank you for the answer gedack.

There are links:

sda-devastator.mbr http://www.mediafire.com/?skz9ihslxzw8pgn
sda1-devastator.pbr http://www.mediafire.com/?3am9r2ly8d5ry8y

My GParted version is 4.8.0, maybe this information will be useful.

4

Re: [SOLVED] ERROR: Current NTFS volume size is bigger ... etc.

It is highly recommended to use the latest GParted on the GParted Live CD (currently 0.7.0-4).

To fix this problem 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 156,280,248 sectors:
00000020   00 00 00 00  80 00 80 00  B8 A5 50 09  00 00 00 00
To a new length of 61,577,144 sectors:
00000020   00 00 00 00  80 00 80 00  B8 97 AB 03  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: sda1-devastator_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=sda1-devastator_new.pbr of=/dev/sda bs=512 count=1 seek=16065

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 (edited by devastator 2010-11-28 03:11:12)

Re: [SOLVED] ERROR: Current NTFS volume size is bigger ... etc.

Thank you very much for help.

It's ok now.

After update grub recognized Windows XP and added to grub loader list.

Windows is starting correctly.

My problem is solved ;]

6

Re: [SOLVED] ERROR: Current NTFS volume size is bigger ... etc.

Glad to hear that you are up and running again.  smile

To help others searching this forum, you can edit the initial post and prefix SOLVED in front of the title.