1 (edited by sajmonus 2010-06-10 10:00:05)

Topic: Please help me! - "...NTFS Volume Size is bigger than the device size"

Hello Everyone,

I used 0.5.2.9 GParted live to resize a NTFS partition from 152,39 to 80gb and then I put some extended partition in place of the unallocated space (the remaining 72,39gb)

Now ntfsresize show me this message :

ntfsresize v2.0.0 (libntfs 10:0:0)
Device name  : /dev/sda2
NTFS volume version: 3.1
Cluster size  : 4096 bytes
Current volume size : 163625488896 bytes (163626 MB)
Current device size: 85896599040 bytes (85897 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?

----
fdisk -l -u /dev/sda



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

Number Start              End                Size               Type       File system Flags
1           63s                1044225s      1044162s      primary   ntfs            [none]
2           1044225s      168811019s  167766795s  primary   ntfs            boot
3           320625270s  488392064s  167766795s  primary   ntfs            [none]

size:
167766795 -1 = 167766794

hex: 09 FF EB 0B
invert: 0B EB FF 09

I have read the info on http://gparted.sourceforge.net/larry/ti … etails.htm but i cannot find out how to save the .pbr file on an usb drive because I am a very beginner. I tried using command line but when I typed as follows:

root@GParted:~# mkdir /tmp/usb         
root@GParted:~# mount /dev/sda1 /tmp/usb/
root@GParted:~# cp gparted_details.htm /tmp/usb/

...the program said that it cannot locate the file "gparted_details.htm", despite the file was saved in a root folder.

I have downloaded hexedit for editing the pbr file but it seems worthless at this time.
Please someone explain how can I create a .pbr file and export it to an usb drive, so as to edit the file and to load the changed .pbr file to my system.

2

Re: Please help me! - "...NTFS Volume Size is bigger than the device size"

sajmonus wrote:

I have read the info on http://gparted.sourceforge.net/larry/ti … etails.htm but i cannot find out how to save the .pbr file on an usb drive because I am a very beginner. I tried using command line but when I typed as follows:

root@GParted:~# mkdir /tmp/usb         
root@GParted:~# mount /dev/sda1 /tmp/usb/
root@GParted:~# cp gparted_details.htm /tmp/usb/

...the program said that it cannot locate the file "gparted_details.htm", despite the file was saved in a root folder.

By default GParted saves files into the home folder of the root user.  On many GNU/Linux distributions, this file will by default be saved to /root/gparted_details.htm

Hence in the above message, the copy command would be:

root@GParted:~# cp /root/gparted_details.htm /tmp/usb/

If you are unable to locate this log file, you can also try searching the entire file system for the file using the following command:

find / -name gparted_details.htm -print

Hopefully that helps.  smile