1 (edited by JF-Munich 2010-01-08 21:19:24)

Topic: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

Hi Everyone,
My brother just bought a new notebook computer and asked me to resize the 1 Partition available and create a second Partition for Data.
I downloaded gparted-live-0.5.0-3. After resizing the C: Partition to 100Gb and creating a new Partition with the remaining 484Gb I unfortunately had the problem that the Volumesize is bigger than the devicesize and now Win7 crashes with a bluescreen. sad

Can anybody please help? I must admit that I have hardly any idea how to work with Linux. I have now got a USB-Memorystick attatched to that notebook on which i can store the mbr and pbr on and the GParted 0.4.6 LiveCD running. But I REALLY need help!! sad

Thanks a lot in advance!

Luke

PS: Is it possible to store the mbr and pbr directly onto the USB-Memory?

2

Re: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

Ok, I was able to copy the 2 Files to the USB-Memory and upload them.
Here they are:
the .mbr
http://www.mediafire.com/file/jztzozmmh … munich.mbr

and the .pbr
http://www.mediafire.com/file/zcokxz0mz … munich.pbr

I would really appreciate it, if somebody could help me!
If there is anything missing that you need to know, just let me know! Whatever you need to know to help me I'd be glad to look it up.

Thanks alot,
Luke

3

Re: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

Which partition is experiencing the problem?

From the *.mbr file, the partition table contains 3 partitions.

Would you be able to provide the output from the following two commands?

fdisk -l -u

where one of the options is a lower case "L" and not the number one.

parted /path-to-your-device unit s print

where /path-to-your-device is something like /dev/sda.

4

Re: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

Hi Gedakc,
yes, I am able to provide the output from the 2 commands. I hope it is ok if I just upload 2 "screenshots" taken with a camera since I don't know how to
save the output to a file on the USB-Memory.

Command fdisk -l -u
http://img101.imageshack.us/img101/346/command1.jpg http://img101.imageshack.us/img101/command1.jpg/1/w1000.png

Command parted /dev/sda unit s print
http://img339.imageshack.us/img339/2144/command2s.jpg http://img339.imageshack.us/img339/command2s.jpg/1/w1000.png


The partition experiencing the problem is /dev/sda3

Could you tell me the command for copying the fixed PBR from the USB-Memory (/dev/sdb) on to the Harddisk?

Thanks for taking your time!
Luke

5

Re: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

For instructions on how to save data to a usb drive, see this document:
Saving Details for Bug Reports


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-jf-munich.mbr bs=512 count=1

where sda-jf-munich.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=sda3-jf-munich.pbr bs=512 count=1 skip=24782848

where sda3-jf-munich.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.

6

Re: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

Ok, I uploaded the files you asked for under these Links:

MBR:
http://www.mediafire.com/file/nnyo2djjm … munich.mbr

PBR:
http://www.mediafire.com/file/nmqm3y2vj … munich.pbr

Luke

7

Re: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

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 1,225,478,824 sectors:
00000020   00 00 00 00  80 00 80 00  A8 52 0B 49  00 00 00 00
To a new length of 209,717,956 sectors:
00000020   00 00 00 00  80 00 80 00  C4 0A 80 0C  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: sda3-jf-munich_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=sda3-jf-munich_new.pbr of=/dev/sda bs=512 count=1 seek=24782848

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.

8

Re: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

It worked!
Thanks alot for your great help! You're my hero! :-)
I really appreciate it!

Luke

9

Re: [SOLVED] NTFS volume size is bigger than the device size, WIN 7 won...

It is good to learn that your file system is working again.  smile