Make NTFS partiton after ddrescue - help anyone?

Associate
Joined
21 May 2003
Posts
1,008
Hi. I have just had one disk in my raid array fail, and on rebuilding, there are too many @unrecoverable medium errors" on the other disk to rebuild.

So straight away i connected it to linux and used ddrescue to copy everything to a new 500gb drive. The failed drive is just a windows ntfs drive, one big partition.

after dd rescue finished (8 hours), only 500kb of errors. But the new hard disk wouldn't mount in windows to run chkdsk. it said the filesystem was "raw".

I've used testdisk, and I can see the data is there. So it looks like all the bits are in place, apart from the actual ntfs file system.

In test disk, to see the files I need to first change the sector size to 512. but then when I try and write the new partition table, it says "write error" with no more info. Logs say:
Code:
Partition table type (auto): Intel
Disk /dev/sde - 500 GB / 465 GiB - ST500DM0 02-1BD142
Partition table type: Intel
I Changed the geometry to ntfs sector size so I can see the files:
Code:
New geometry
Disk /dev/sde - 500 GB / 465 GiB - CHS 60802 255 63 sector_size=512
Then click Analyse:
Code:
Analyse Disk /dev/sde - 500 GB / 465 GiB - CHS 60802 255 63
Geometry from i386 MBR: head=255 sector=63
FAT16 at 0/1/1
check_FAT: Unusual number of reserved sectors 6 (FAT), should be 1.
Info: size boot_sector 305172, partition 305172
FAT1 : 6-154
FAT2 : 155-303
start_rootdir : 304
Data : 336-305167
sectors : 305172
cluster_size : 8
no_of_cluster : 38104 (2 - 38105)
fat_length 149 calculated 149
NTFS at 19/0/1
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4
Current partition structure:
check_FAT: Unusual number of reserved sectors 6 (FAT), should be 1.
 1 * FAT16 >32M               0   1  1    18 254 63     305172 [NO NAME]
 2 P HPFS - NTFS             19   0  1 60665 254 63  974294055 [System]

search_part()
Disk /dev/sde - 500 GB / 465 GiB - CHS 60802 255 63
FAT16 at 0/1/1
check_FAT: Unusual number of reserved sectors 6 (FAT), should be 1.
FAT1 : 6-154
FAT2 : 155-303
start_rootdir : 304
Data : 336-305167
sectors : 305172
cluster_size : 8
no_of_cluster : 38104 (2 - 38105)
fat_length 149 calculated 149

FAT16 at 0/1/1
     FAT16 >32M               0   1  1    18 254 63     305172 [NO NAME]
     FAT16, blocksize=4096, 156 MB / 149 MiB
NTFS at 19/0/1
filesystem size           974294055
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               60893378
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS             19   0  1 60665 254 63  974294055 [System]
     NTFS, blocksize=4096, 498 GB / 464 GiB
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4

Results
   * FAT16 >32M               0   1  1    18 254 63     305172 [NO NAME]
     FAT16, blocksize=4096, 156 MB / 149 MiB
   P HPFS - NTFS             19   0  1 60665 254 63  974294055 [System]
     NTFS, blocksize=4096, 498 GB / 464 GiB

Then try and write this partition table (as that's the one where I can see the files)
interface_write()
Code:
 1 P FAT16 >32M               0   1  1    18 254 63     305172 [NO NAME]
 2 * HPFS - NTFS             19   0  1 60665 254 63  974294055 [System]
write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition

Partition: Write error
SIGINT detected! TestDisk has been killed.

When I try and run ntfsfix on the drive:
Code:
ubuntu@ubuntu:/tmp$ ntfsfix /dev/sde2 
Mounting volume... Failed to load $MFT : Input/output error
Failed to startup volume : Input/output error
FAILED
Attempting to correct errors... Failed to load $MFT : Input/output error
FAILED
Failed to startup volume : Input/output error
Volume is corrupt. You should run chkdsk.

I cant't run chkdsk becuase windows wants a nice ntfs partition for that.
How can I create an ntfs partition on this drive manually?
Any help is appreciated.
 
Back
Top Bottom