1

Topic: resized NTFS partition and now can't open the partition

Hi,

I was installing Windows 7 last night and I used the latest 5.0.3 live cd to resize an ntfs partition on my drive down from the whole drive to around 300GB, and then created a new partition in the remaining space to install the OS.

However i (somehow?) completely missed the giant red warning about using the latest live cd and it has broken my old partition so i can't read it anymore. Any help would be appreciated!

Richard

2

Re: resized NTFS partition and now can't open the partition

Which partition is experiencing the error?

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.

3

Re: resized NTFS partition and now can't open the partition

fdisk -l -u

Disk /dev/sda: 60.5 GB, 60481863680 bytes
255 heads, 63 sectors/track, 7353 cylinders, total 118128640 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xf689c4b3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   118125944    59062941    7  HPFS/NTFS

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xa121a29c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   609506099   304752026    7  HPFS/NTFS
/dev/sdb2   *   609507328   609712127      102400    7  HPFS/NTFS
/dev/sdb3       609712128   976771071   183529472    7  HPFS/NTFS

Disk /dev/sdg: 16.1 GB, 16053960192 bytes
255 heads, 63 sectors/track, 1951 cylinders, total 31355391 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0000f5b9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1   *        2048    31354879    15676416    b  W95 FAT32

parted /dev/sdb unit s print

Model: ATA WDC WD5000AAKS-0 (scsi)
Disk /dev/sdb: 976773168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number        Start        End            Size        Type        File system    Flags
 1            2048s        609506099s    609504052s    primary        ntfs
 2            609507328s    609712127s    204800s        primary        ntfs        boot
 3            609712128s    976771071s    367058944s    primary        ntfs

4

Re: resized NTFS partition and now can't open the partition

I assume the problem is with partition sda1 since you said you only had one partition on the drive.  If the problem is with a different partition then you will need to change the parameters in the capture commands.


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

where sda-richardwyke.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=sda1-richardwyke.pbr bs=512 count=1 skip=63

where sda1-richardwyke.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.