1 (edited by janu-x 2010-12-17 18:44:55)

Topic: [SOLVED] Current NTFS volume size is bigger than the device size!

The unit shows me this sad

http://img34.imageshack.us/img34/6239/pantallazo1bg.png

ubuntu@ubuntu:~$ sudo fdisk -l -u

Disco /dev/sda: 160.0 GB, 160041885696 bytes
255 cabezas, 63 sectores/pista, 19457 cilindros, 312581808 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Identificador de disco: 0xce02ce02

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sda1              63    40965749    20482843+   7  HPFS/NTFS
/dev/sda2        40965811   312576704   135805447    f  W95 Ext'd (LBA)
/dev/sda5   *    40965813   176132095    67583141+   7  HPFS/NTFS


ubuntu@ubuntu:~$ sudo parted /dev/sda unit s print

Modelo: ATA ST3160211AS (scsi)
Disco /dev/sda: 312581808s
Tamaño de sector (lógico/físico): 512B/512B
Tabla de particiones. msdos

Numero  Inicio     Fin         Tamaño      Typo      Sistema de ficheros  Banderas
1      63s        40965749s   40965687s   primary   ntfs
2      40965811s  312576704s  271610894s  extended                       lba
5      40965813s  176132095s  135166283s  logical   ntfs                 arranque


I appreciate your help

2

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

Thanks for creating this new post.  Now to see what needs to be done to fix this problem....

This will take me several minutes.

3

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

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-janu-x.mbr bs=512 count=1

where sda-janu-x.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=sda5-janu-x.pbr bs=512 count=1 skip=40965813

where sda5-janu-x.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.

4

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

dd if=/dev/sda of=sda-janu-x.mbr bs=512 count=1

http://www.fileden.com/files/2008/4/14/ … janu-x.mbr


dd if=/dev/sda of=sda5-janu-x.pbr bs=512 count=1 skip=40965813

http://www.fileden.com/files/2008/4/14/ … janu-x.pbr

5

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

I am working on the solution now...

6

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

To fix the problem on sda5 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 143,358,272 sectors:
00000020   00 00 00 00  80 00 80 00  40 79 8B 08  00 00 00 00
To a new length of 135,166,282 sectors:
00000020   00 00 00 00  80 00 80 00  4A 79 0E 08  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-janu-x_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-janu-x_new.pbr of=/dev/sda bs=512 count=1 seek=40965813

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.


I noticed that there was an exclamation point beside the /dev/sda1 partition as well.  If this partition has the same problem then you won't be able to boot into windows.  We can perform similar steps to fix it too if needed.

7 (edited by janu-x 2010-12-17 22:14:20)

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

thank you very much

The exclamation point appears only in ubunutu 10.10 but sda1 is functioning normally

in ubuntu 9.10

http://img52.imageshack.us/img52/3180/pantallazozv.png


again thank you very much.
everything works fine smile

8

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

It is good to hear that you are up and running again.  smile

I suspect that the exclamation point occurs in Ubuntu because the nftsprogs package is probably not installed.

Out of curiosity which version of GParted and/or Live CD did you use?

9

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

the initial error was to use live CD ubuntu10.10
I suspect that the exclamation mark is because sd1 is the windows partition but did not have the boot flag

The second screenshot was with live cd ubuntu 9.10

thanks for your help

10

Re: [SOLVED] Current NTFS volume size is bigger than the device size!

Thanks for the feedback on the version.  A couple of other people have had similar problems using Ubuntu 10.10 Live CD.