Thanks!
I managed to get into Windows Recovery Console...
I did a bootcfg /scan which didn't locate any windows installations, which doesnt surprise me as my system is on a logical partition.
I did a fixboot on my primary partition C: (useless HP backup partition) and logical partition D: (system) which didn't help matters.
I'm hesitant to do a fixmbr as I dont know the full extent of what it could cause. Perhaps if I can do a backup of the current mbr through a utility preferably available in UBCD4Win...
Anyway I booted up again through ubcd and went to diskpart, marked D: as active - nothing then marked C: active - I got the Paragon Boot manager back, now showing the primary partition C: (useless HP backup partition) and an unnamed logical partition of some sort which wasn't booting either.
So I've run testdisk again and made a couple of logs which I'm hoping you could help enlighten me on what's going on - whether I should try a fixmbr or try to fix things manually through testdisk or another utility.
Disk:
#1363100652 Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
1 : start= 16065, size=291579750, Id=0F, E
5 : start= 16128, size= 45817317, Id=07, L
6 : start= 45833508, size=245762307, Id=07, L
2 : start=293703344, size= 18878464, Id=07, P
Tue Mar 12 15:02:48 2013
Command line: TestDisk
TestDisk 6.11.3, Data Recovery Utility, May 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows XP SP2
Compiler: GCC 4.3, Cygwin 1005.25 - May 6 2009 20:35:43
ext2fs lib: 1.41.4, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20080501
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=160041885696
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=15623782400
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=160041885696
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=15623782400
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=9665773568
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=23458466304
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=125830301184
filewin32_getfilesize(\\.\F:) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\F:) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\F:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\X:)=15619774464
file_pread(4,1,buffer,312592769(19457/254/63)) lseek err Invalid argument
file_pread(5,1,buffer,30516947(2221/217/63)) lseek err Invalid argument
Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - Hitachi HTS543216L9A300
Disk /dev/sdb - 15 GB / 14 GiB - CHS 2221 218 63, sector size=512 - USB DISK 2.0
Partition table type (auto): Intel
Disk /dev/sda - 160 GB / 149 GiB - Hitachi HTS543216L9A300
Partition table type: Intel
Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 18282/47/54
NTFS at 1/1/1
NTFS at 2853/1/1
get_geometry_from_list_part_aux head=255 nbr=8
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=255 nbr=8
1 E extended LBA 1 0 1 18150 254 63 291579750
5 L HPFS - NTFS 1 1 1 2852 254 63 45817317
NTFS, 23 GB / 21 GiB
X extended 2853 0 1 18150 254 63 245762370
6 L HPFS - NTFS 2853 1 1 18150 254 63 245762307
NTFS, 125 GB / 117 GiB
2 P HPFS - NTFS 18282 47 54 19457 80 63 18878464 [HP_RECOVERY]
NTFS, 9665 MB / 9218 MiB
Analyse Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 18282/47/54
NTFS at 1/1/1
NTFS at 2853/1/1
get_geometry_from_list_part_aux head=255 nbr=8
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=255 nbr=8
Current partition structure:
1 E extended LBA 1 0 1 18150 254 63 291579750
2 P HPFS - NTFS 18282 47 54 19457 80 63 18878464 [HP_RECOVERY]
No partition is bootable
Logical partition must not be bootable
5 L HPFS - NTFS 1 1 1 2852 254 63 45817317
X extended 2853 0 1 18150 254 63 245762370
6 L HPFS - NTFS 2853 1 1 18150 254 63 245762307
Backup partition structure
partition_save
Ask the user for vista mode
Allow partial last cylinder : No
search_vista_part: 0
search_part()
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
NTFS at 0/1/1
filesystem size 291604417
sectors_per_cluster 8
mft_lcn 10
mftmirr_lcn 1007033
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 18151 137 34 291604417
NTFS, 149 GB / 139 GiB
FAT32 at 18151/137/35
FAT1 : 4110-6150
FAT2 : 6151-8191
start_rootdir : 8192 root cluster : 2
Data : 8192-2097151
sectors : 2097152
cluster_size : 8
no_of_cluster : 261120 (2 - 261121)
fat_length 2041 calculated 2041
FAT32 at 18151/137/35
FAT32 LBA 18151 137 35 18282 20 42 2097152 [HP_TOOLS]
FAT32, 1073 MB / 1024 MiB
NTFS at 18282/47/54
filesystem size 18878464
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 1179903
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 18282 47 54 19457 80 63 18878464 [HP_RECOVERY]
NTFS, 9665 MB / 9218 MiB
file_pread(4,2,buffer,312581810(19457/81/3)) lseek err Invalid argument
file_pread(4,1,buffer,312581810(19457/81/3)) lseek err Invalid argument
file_pread(4,8,buffer,312581816(19457/81/9)) lseek err Invalid argument
file_pread(4,3,buffer,312581824(19457/81/17)) lseek err Invalid argument
file_pread(4,3,buffer,312581871(19457/82/1)) lseek err Invalid argument
file_pread(4,8,buffer,312581887(19457/82/17)) lseek err Invalid argument
file_pread(4,11,buffer,312581934(19457/83/1)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=1
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=1
Results
* HPFS - NTFS 0 1 1 18151 137 34 291604417
NTFS, 149 GB / 139 GiB
P FAT32 LBA 18151 137 35 18282 20 42 2097152 [HP_TOOLS]
FAT32, 1073 MB / 1024 MiB
P HPFS - NTFS 18282 47 54 19457 80 63 18878464 [HP_RECOVERY]
NTFS, 9665 MB / 9218 MiB
interface_write()
1 * HPFS - NTFS 0 1 1 18151 137 34 291604417
2 P FAT32 LBA 18151 137 35 18282 20 42 2097152 [HP_TOOLS]
3 P HPFS - NTFS 18282 47 54 19457 80 63 18878464 [HP_RECOVERY]
search_part()
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
NTFS at 0/1/1
filesystem size 291604417
sectors_per_cluster 8
mft_lcn 10
mftmirr_lcn 1007033
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 18151 137 34 291604417
NTFS, 149 GB / 139 GiB
NTFS at 1/1/1
filesystem size 45817317
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2863582
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 1 1 1 2852 254 63 45817317
NTFS, 23 GB / 21 GiB
NTFS at 2852/254/63
filesystem size 45817317
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2863582
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 1 1 1 2852 254 63 45817317
NTFS found using backup sector!, 23 GB / 21 GiB
NTFS at 2853/1/1
filesystem size 245762307
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 15360144
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 2853 1 1 18150 254 63 245762307
NTFS, 125 GB / 117 GiB
NTFS at 18150/254/63
filesystem size 245762307
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 15360144
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 2853 1 1 18150 254 63 245762307
NTFS found using backup sector!, 125 GB / 117 GiB
FAT32 at 18151/137/35
FAT1 : 4110-6150
FAT2 : 6151-8191
start_rootdir : 8192 root cluster : 2
Data : 8192-2097151
sectors : 2097152
cluster_size : 8
no_of_cluster : 261120 (2 - 261121)
fat_length 2041 calculated 2041
FAT32 at 18151/137/35
FAT32 LBA 18151 137 35 18282 20 42 2097152 [HP_TOOLS]
FAT32, 1073 MB / 1024 MiB
NTFS at 18282/47/54
filesystem size 18878464
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 1179903
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 18282 47 54 19457 80 63 18878464 [HP_RECOVERY]
NTFS, 9665 MB / 9218 MiB
file_pread(4,2,buffer,312581810(19457/81/3)) lseek err Invalid argument
file_pread(4,1,buffer,312581810(19457/81/3)) lseek err Invalid argument
file_pread(4,8,buffer,312581816(19457/81/9)) lseek err Invalid argument
file_pread(4,3,buffer,312581824(19457/81/17)) lseek err Invalid argument
file_pread(4,3,buffer,312581871(19457/82/1)) lseek err Invalid argument
file_pread(4,8,buffer,312581887(19457/82/17)) lseek err Invalid argument
file_pread(4,11,buffer,312581934(19457/83/1)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=5
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=64 nbr=2
get_geometry_from_list_part_aux head=128 nbr=2
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=5
Results
HPFS - NTFS 0 1 1 18151 137 34 291604417
NTFS, 149 GB / 139 GiB
HPFS - NTFS 1 1 1 2852 254 63 45817317
NTFS, 23 GB / 21 GiB
HPFS - NTFS 2853 1 1 18150 254 63 245762307
NTFS, 125 GB / 117 GiB
* FAT32 LBA 18151 137 35 18282 20 42 2097152 [HP_TOOLS]
FAT32, 1073 MB / 1024 MiB
P HPFS - NTFS 18282 47 54 19457 80 63 18878464 [HP_RECOVERY]
NTFS, 9665 MB / 9218 MiB
interface_write()
1 * FAT32 LBA 18151 137 35 18282 20 42 2097152 [HP_TOOLS]
2 P HPFS - NTFS 18282 47 54 19457 80 63 18878464 [HP_RECOVERY]
simulate write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
TestDisk exited normally.
Thank you!