1 (edited by gunf 2009-12-30 18:04:25)

Topic: [SOLVED] NTFS resizing problem!

It looks like I have the same problem as many others. I was resizing my partions on my laptop to be able to put in another distro. But the shrinking of my XP-partion didn't seem to work out well! I get the error: Current NTFS volume size is bigger than the device size".

The Ubuntu -partition works fine even after resizing that partition at the same time.

I've used the systemrescuecd-x86-1.3.3 with GParted 0.5.0

fdisk gives this result:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x385a3859

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   217054214   108527076    7  HPFS/NTFS
/dev/sda2       457579395   625137344    83778975    5  Extended
/dev/sda5       457582069   621458459    81938195+  83  Linux
/dev/sda6       621458523   625137344     1839411   82  Linux swap / Solaris

Disk /dev/sdb: 512 MB, 512483328 bytes
16 heads, 63 sectors/track, 993 cylinders, total 1000944 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1             233     1000943      500355+   6  FAT16

and parted this:
[?1034hModel: ATA WDC WD3200BEVE-0 (scsi)
Disk /dev/sda: 625142448s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start       End         Size        Type      File system     Flags
1      63s         217054214s  217054152s  primary   ntfs            boot
2      457579395s  625137344s  167557950s  extended
5      457582069s  621458459s  163876391s  logical   ext4
6      621458523s  625137344s  3678822s    logical   linux-swap(v1)  swap

After reading some other threads i guess i need to edit the pbr and mbr. Is that correct? and can I get som help editing them?

The mbr:
http://www.mediafire.com/file/wkldmhnzwo3/gunf.mbr

The pbr:
http://www.mediafire.com/file/zmojkiz1enn/gunf.pbr

I'm hopefull!

2

Re: [SOLVED] NTFS resizing problem!

After digging into some other threads about this problem I managed to figure out how to edit the PBR to match the size of the partition. After reading back my PBR to the disk GParted found the partion without any problems! Now I wait for the chkdsk to finish!

This thread gave me valuable information about how to edit the file:
http://gparted-forum.surf4.info/viewtopic.php?id=13879

And this site I used to convert the HEX-values:
http://easycalculation.com/decimal-converter.php

When I converted to HEX I only got 7 digits. Insert a 0(zero) before the first digit, before you reverse the byte pairs.

3

Re: [SOLVED] NTFS resizing problem!

I am glad to hear that you were able to fix the problem yourself.  Good work!

And thank you for marking the title as solved too.  smile