1 (edited by vanlong441 2011-06-22 05:34:19)

Topic: [Solved]Errorr:Current NTFS Volume Size is Bigger Than The Device Size

I have problem on sda5. Please help. Tried to follow http://gparted-forum.surf4.info/viewtopic.php?id=13937 . But it was not as easy as I thought because of more problems coming...
parted /dev/sda unit s print

root@linux-A880G:/home/linux# parted /dev/sda unit s print
Model: ATA WDC WD5000AADS-0 (scsi)
Disk /dev/sda: 976773168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start       End         Size        Type      File system     Flags
1      63s         102414374s  102414312s  primary   ntfs            boot
2      102414436s  976768064s  874353629s  extended                  lba
5      102414438s  389128191s  286713754s  logical   ntfs
7      450566144s  451069951s  503808s     logical   ext2
8      451072000s  454975487s  3903488s    logical   linux-swap(v1)
9      454977536s  474507263s  19529728s   logical   ext4
10      474509312s  512006143s  37496832s   logical   ext4
6      512007678s  976768064s  464760387s  logical   ntfs

sda.mbr and sda5.pbr
http://www.mediafire.com/?apfivqk19po37c3

2

Re: [Solved]Errorr:Current NTFS Volume Size is Bigger Than The Device Size

i'll get back in 12 hours... gonna take some good sleep. Sorry that the first time I am on this forum is this sleepy.  lol

3

Re: [Solved]Errorr:Current NTFS Volume Size is Bigger Than The Device Size

Which version of GParted did you use to shrink the sda5 partition?

The following instructions assume that you captured the NTFS PBR using a skip=102414438 value.

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 348,151,128 sectors:
00000020   00 00 00 00  80 00 80 00  58 5D C0 14  00 00 00 00
To a new length of 286,713,753 sectors:
00000020   00 00 00 00  80 00 80 00  99 E7 16 11  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: sda5-vanlong441_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=sda5-vanlong441_new.pbr of=/dev/sda bs=512 count=1 seek=102414438

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.

4

Re: [Solved]Errorr:Current NTFS Volume Size is Bigger Than The Device Size

Gparted version is 0.7.0.
I still need to resize my Ntfs drive.
How do I update gparted to the latest stable version (0.8.1)?
I did reload the synaptic but no upgradeable ones found.

5

Re: [Solved]Errorr:Current NTFS Volume Size is Bigger Than The Device Size

I suggest you use the GParted Live image and burn it to a CD.  It can be downloaded from the GParted web site.

6

Re: [Solved]Errorr:Current NTFS Volume Size is Bigger Than The Device Size

http://i286.photobucket.com/albums/ll84/vanlong441/Selection_004.png
Can I use a usb instead? I can't burn CDs.
By the way, thank you for your file. It did very well the job.
I had my drive back but couldn't get my windows 7 to work any more (though the sda1 which has windows 7 on it can still be mounted in my linuxOS). I'm dual-booting windows 7 and pinguyOS. Now I want to delete my windows and extend my ext4 partition with the free space gained from deleting it. I posted a picture above. Please help  smile

7

Re: [Solved]Errorr:Current NTFS Volume Size is Bigger Than The Device Size

vanlong441 wrote:

Can I use a usb instead? I can't burn CDs.

Yes, GParted Live can be written to USB flash drives as well.  You can read about it on the GParted web site.