Page 1 of 1

filesystem repair

Posted: 21 Sep 2015, 00:28
by entier
Hello,
I lost access to the hard disk of my Acer Aspire 5715z laptop. I have Vista - Ubuntu dual boot on it. The recent Gentoo incompleted installation did not cause any problem. Later Vista stopped get loaded by Grub. I tried to repair this problem with boot-repair software available in Ubuntu and lost Grub. I tried to reinstall Grub from Ubuntu root partition. I failed to do it and maybe then I damaged the hard disk partition structure.
Here is the TestDisk diagnostics. Any help is welcome.



Sun Sep 20 18:31:57 2015
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.10.35-std420-amd64 (#2 SMP Wed Apr 2 18:31:51 UTC 2014) x86_64
Compiler: GCC 4.4
Compilation date: 2014-04-12T00:10:53
ext2fs lib: 1.42.9, ntfs lib: libntfs-3g, reiserfs lib: 0.3.1-rc8, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 312581808 sectors
/dev/sda: user_max 312581808 sectors
/dev/sda: native_max 312581808 sectors
/dev/sda: dco 312581808 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 1 sectors, sector size=512
Warning: can't get size for Disk /dev/md0 - 0 B - CHS 1 2 4, sector size=512
Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - Hitachi HTS542516K9SA00, S/N:080223BB0C00WGKMEM3A, FW:BBCOC31P
Disk /dev/sdb - 3926 MB / 3745 MiB - CHS 1022 121 62, sector size=512 - Kingston DataTraveler 102, FW:PMAP
Disk /dev/sdc - 16 GB / 14 GiB - CHS 15276 64 32, sector size=512 - Lexar USB Flash Drive, FW:8.07

Partition table type (auto): Intel
Disk /dev/sda - 160 GB / 149 GiB - Hitachi HTS542516K9SA00
Partition table type: Intel

Analyse Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 1272/199/16
Info: size boot_sector 117546689, partition 117547008
NTFS at 12229/156/24
Info: size boot_sector 116113065, partition 116113408
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=255 nbr=4
Current partition structure:
1 * HPFS - NTFS 1272 199 16 8589 189 48 117547008 [ACER]
2 E extended LBA 8591 0 1 12229 254 63 58460535
3 P HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
Space conflict between the following two partitions
2 E extended LBA 8591 0 1 12229 254 63 58460535
3 P HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
5 L Linux 8591 1 1 10382 254 63 28788417
X extended 11375 89 1 11464 118 46 1431658
6 L Linux Swap 11375 90 44 11464 118 46 1431552
X extended 11464 150 1 12229 156 23 12290126
7 L Linux 11464 151 16 12229 156 23 12290048

search_part()
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
NTFS at 0/1/1
filesystem size 20447169
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 1279171
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 1272 199 15 20447169 [PQSERVICE]
NTFS, blocksize=4096, 10468 MB / 9983 MiB
NTFS at 1272/199/16
filesystem size 117546689
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2122866
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB

recover_EXT2: s_block_group_nr=0/109, s_mnt_count=23/32, s_blocks_per_group=32768, s_inodes_per_group=8144
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3596574
recover_EXT2: part_size 28772592
Linux 8591 1 1 10382 3 51 28772592
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB

recover_EXT2: s_block_group_nr=0/60, s_mnt_count=23/25, s_blocks_per_group=32768, s_inodes_per_group=8032
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1994240
recover_EXT2: part_size 15953920
Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock, 8168 MB / 7790 MiB
Linux Swap 11375 90 44 11464 118 30 1431536
SWAP2 version 1, pagesize=4096, 732 MB / 698 MiB

recover_EXT2: s_block_group_nr=0/46, s_mnt_count=17/21, s_blocks_per_group=32768, s_inodes_per_group=16352
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1536256
recover_EXT2: part_size 12290048
Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
NTFS at 12229/156/24
filesystem size 116113065
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 9111551
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB
get_geometry_from_list_part_aux head=255 nbr=2
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=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=2

Results
HPFS - NTFS 0 1 1 1272 254 63 20450682 [PQSERVICE]
NTFS, blocksize=4096, 10470 MB / 9985 MiB
HPFS - NTFS 1272 199 16 8589 189 48 117547008 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB
Linux 8591 1 1 10382 254 63 28788417
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB
Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock, 8168 MB / 7790 MiB
* Linux Swap 11375 90 44 11464 118 46 1431552
SWAP2 version 1, pagesize=4096, 732 MB / 699 MiB
P Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
P HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
1 * HPFS - NTFS 1272 199 16 8589 189 48 117547008 [ACER]
2 E extended LBA 8591 0 1 12229 254 63 58460535
3 P HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
5 L Linux 8591 1 1 10382 254 63 28788417
6 L Linux Swap 11375 90 44 11464 118 46 1431552
7 L Linux 11464 151 16 12229 156 23 12290048
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
write_all_log_i386: CHS: 8591/0/1,lba=138014415
write_all_log_i386: CHS: 11375/89/1,lba=182744982
write_all_log_i386: CHS: 11464/150/1,lba=184178610

Analyse Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 1272/199/16
Info: size boot_sector 117546689, partition 117547008
NTFS at 12229/156/24
Info: size boot_sector 116113065, partition 116113408
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=255 nbr=4
Current partition structure:
1 * HPFS - NTFS 1272 199 16 8589 189 48 117547008 [ACER]
2 E extended LBA 8591 0 1 12229 254 63 58460535
3 P HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
Space conflict between the following two partitions
2 E extended LBA 8591 0 1 12229 254 63 58460535
3 P HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
5 L Linux 8591 1 1 10382 254 63 28788417
X extended 11375 89 1 11464 118 46 1431658
6 L Linux Swap 11375 90 44 11464 118 46 1431552
X extended 11464 150 1 12229 156 23 12290126
7 L Linux 11464 151 16 12229 156 23 12290048

search_part()
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
NTFS at 0/1/1
filesystem size 20447169
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 1279171
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 1272 199 15 20447169 [PQSERVICE]
NTFS, blocksize=4096, 10468 MB / 9983 MiB
NTFS at 1272/199/16
filesystem size 117546689
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2122866
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB

recover_EXT2: s_block_group_nr=0/109, s_mnt_count=23/32, s_blocks_per_group=32768, s_inodes_per_group=8144
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3596574
recover_EXT2: part_size 28772592
Linux 8591 1 1 10382 3 51 28772592
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB

recover_EXT2: s_block_group_nr=0/60, s_mnt_count=23/25, s_blocks_per_group=32768, s_inodes_per_group=8032
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1994240
recover_EXT2: part_size 15953920
Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock, 8168 MB / 7790 MiB
Linux Swap 11375 90 44 11464 118 30 1431536
SWAP2 version 1, pagesize=4096, 732 MB / 698 MiB

recover_EXT2: s_block_group_nr=0/46, s_mnt_count=17/21, s_blocks_per_group=32768, s_inodes_per_group=16352
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1536256
recover_EXT2: part_size 12290048
Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
NTFS at 12229/156/24
filesystem size 116113065
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 9111551
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB
get_geometry_from_list_part_aux head=255 nbr=2
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=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=2

Results
HPFS - NTFS 0 1 1 1272 254 63 20450682 [PQSERVICE]
NTFS, blocksize=4096, 10470 MB / 9985 MiB
HPFS - NTFS 1272 199 16 8589 189 48 117547008 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB
Linux 8591 1 1 10382 254 63 28788417
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB
Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock, 8168 MB / 7790 MiB
* Linux Swap 11375 90 44 11464 118 46 1431552
SWAP2 version 1, pagesize=4096, 732 MB / 699 MiB
P Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
P HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB
Change partition type:
HPFS - NTFS 8591 0 1 12229 156 23 58454321
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
1 * HPFS - NTFS 1272 199 16 8589 189 48 117547008 [ACER]
2 E extended LBA 8591 0 1 12229 254 63 58460535
3 P HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
5 L Linux 8591 1 1 10382 254 63 28788417
6 L Linux Swap 11375 90 44 11464 118 46 1431552
7 L Linux 11464 151 16 12229 156 23 12290048
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
write_all_log_i386: CHS: 8591/0/1,lba=138014415
write_all_log_i386: CHS: 11375/89/1,lba=182744982
write_all_log_i386: CHS: 11464/150/1,lba=184178610

TestDisk exited normally.

Re: filesystem repair

Posted: 22 Sep 2015, 18:04
by cgrenier
Run TestDisk, in Options, set Align partition to No, Analyse, Quick Search, use the arrow keys to get
P HPFS - NTFS 0 1 1 1272 199 15 20447169 [PQSERVICE]
* HPFS - NTFS 1272 199 16 8589 189 48 117547008 [ACER]
L Linux 8591 1 1 10382 254 63 28788417
L Linux Swap 11375 90 44 11464 118 46 1431552
L Linux 11464 151 16 12229 156 23 12290048
L HPFS - NTFS 12229 156 24 19457 86 21 116113408 [DATA]
On next screen, choose Write, confirm, Quit

Re: filesystem repair

Posted: 23 Sep 2015, 17:51
by entier
Your procedure has successfully restored the hard disk partition structure. I reinstalled Grub boot loader. Ubuntu Linux and Windows Recovery Environment (PQSERVICE) partitions get loaded normally. Later, Windows Recovery Environment (PQSERVICE) partition gives an error message ' Error Restore failed - reason 0xa0000001. Click OK to restart your computer'. Vista (ACER) partition does not get loaded, there is an error message 'A disk error occured Press Ctrl+Alt+Del to restart'. Ctrl+Alt+Del does not work.
Is it possible to repair Vista loading with TestDisk?
Its diagnostics is here. Thank you very much for your help.


Wed Sep 23 10:36:08 2015
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.10.35-std420-amd64 (#2 SMP Wed Apr 2 18:31:51 UTC 2014) x86_64
Compiler: GCC 4.4
Compilation date: 2014-04-12T00:10:53
ext2fs lib: 1.42.9, ntfs lib: libntfs-3g, reiserfs lib: 0.3.1-rc8, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 312581808 sectors
/dev/sda: user_max 312581808 sectors
/dev/sda: native_max 312581808 sectors
/dev/sda: dco 312581808 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 1 sectors, sector size=512
Warning: can't get size for Disk /dev/md0 - 0 B - CHS 1 2 4, sector size=512
Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - Hitachi HTS542516K9SA00, S/N:080223BB0C00WGKMEM3A, FW:BBCOC31P
Disk /dev/sdb - 3926 MB / 3745 MiB - CHS 1022 121 62, sector size=512 - Kingston DataTraveler 102, FW:PMAP
Disk /dev/sdc - 16 GB / 14 GiB - CHS 15276 64 32, sector size=512 - Lexar USB Flash Drive, FW:8.07

Partition table type (auto): Intel
Disk /dev/sda - 160 GB / 149 GiB - Hitachi HTS542516K9SA00
Partition table type: Intel
New options :
Dump : No
Align partition: No
Expert mode : No

Analyse Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 1 type 12: no test
NTFS at 1272/199/16
NTFS at 12229/156/24
get_geometry_from_list_part_aux head=255 nbr=3
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=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=3
Current partition structure:
1 P Compaq Diagnostics 0 1 1 1272 199 15 20447169
2 * HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
3 E extended LBA 8590 0 1 12229 156 23 58470386
4 P HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
5 L Linux 8591 1 1 10382 3 51 28772592
X extended 10382 35 1 11375 58 11 15954005
6 L Linux 10382 36 23 11375 58 11 15953920
X extended 11375 89 1 11464 118 30 1431642
7 L Linux Swap 11375 90 44 11464 118 30 1431536
X extended 11464 150 1 12229 156 23 12290126
8 L Linux 11464 151 16 12229 156 23 12290048

search_part()
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
NTFS at 0/1/1
filesystem size 20447169
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 1279171
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 1272 199 15 20447169 [PQSERVICE]
NTFS, blocksize=4096, 10468 MB / 9983 MiB
NTFS at 1272/199/16
filesystem size 117546689
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2122866
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB

recover_EXT2: s_block_group_nr=0/109, s_mnt_count=3/32, s_blocks_per_group=32768, s_inodes_per_group=8144
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3596574
recover_EXT2: part_size 28772592
Linux 8591 1 1 10382 3 51 28772592
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB

recover_EXT2: s_block_group_nr=0/60, s_mnt_count=2/25, s_blocks_per_group=32768, s_inodes_per_group=8032
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1994240
recover_EXT2: part_size 15953920
Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock, 8168 MB / 7790 MiB
Linux Swap 11375 90 44 11464 118 30 1431536
SWAP2 version 1, pagesize=4096, 732 MB / 698 MiB

recover_EXT2: s_block_group_nr=0/46, s_mnt_count=0/21, s_blocks_per_group=32768, s_inodes_per_group=16352
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1536256
recover_EXT2: part_size 12290048
Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
NTFS at 12229/156/24
filesystem size 116113065
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 9111551
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB
get_geometry_from_list_part_aux head=255 nbr=2
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=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=2

Results
HPFS - NTFS 0 1 1 1272 199 15 20447169 [PQSERVICE]
NTFS, blocksize=4096, 10468 MB / 9983 MiB
HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB
Linux 8591 1 1 10382 3 51 28772592
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB
Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock, 8168 MB / 7790 MiB
Linux Swap 11375 90 44 11464 118 30 1431536
SWAP2 version 1, pagesize=4096, 732 MB / 698 MiB
Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB

interface_write()

No partition found or selected for recovery
simulate write!

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

TestDisk exited normally.

Re: filesystem repair

Posted: 23 Sep 2015, 23:50
by entier
I checked Vista (ACER) partition with TestDisk if there were a problem with Vista boot sectors. There were: Boot sector: OK Backup Boot sector: bad. TestDisk, Options, Align partitions, No, Advanced, ACER, Boot, [OrgBS], reboot. Anyway, when booting Vista (with Grub boot loader) I get the same disk read error.
The TestDisk log file is here:


Wed Sep 23 16:03:09 2015
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.10.35-std420-amd64 (#2 SMP Wed Apr 2 18:31:51 UTC 2014) x86_64
Compiler: GCC 4.4
Compilation date: 2014-04-12T00:10:53
ext2fs lib: 1.42.9, ntfs lib: libntfs-3g, reiserfs lib: 0.3.1-rc8, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 312581808 sectors
/dev/sda: user_max 312581808 sectors
/dev/sda: native_max 312581808 sectors
/dev/sda: dco 312581808 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 1 sectors, sector size=512
Warning: can't get size for Disk /dev/md0 - 0 B - CHS 1 2 4, sector size=512
Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - Hitachi HTS542516K9SA00, S/N:080223BB0C00WGKMEM3A, FW:BBCOC31P
Disk /dev/sdb - 3926 MB / 3745 MiB - CHS 1022 121 62, sector size=512 - Kingston DataTraveler 102, FW:PMAP

Partition table type (auto): Intel
Disk /dev/sda - 160 GB / 149 GiB - Hitachi HTS542516K9SA00
Partition table type: Intel
New options :
Dump : No
Align partition: No
Expert mode : No

Analyse Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 1 type 12: no test
NTFS at 1272/199/16
NTFS at 12229/156/24
get_geometry_from_list_part_aux head=255 nbr=3
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=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=3
Current partition structure:
1 P Compaq Diagnostics 0 1 1 1272 199 15 20447169
2 * HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
3 E extended LBA 8590 0 1 12229 156 23 58470386
4 P HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
5 L Linux 8591 1 1 10382 3 51 28772592
X extended 10382 35 1 11375 58 11 15954005
6 L Linux 10382 36 23 11375 58 11 15953920
X extended 11375 89 1 11464 118 30 1431642
7 L Linux Swap 11375 90 44 11464 118 30 1431536
X extended 11464 150 1 12229 156 23 12290126
8 L Linux 11464 151 16 12229 156 23 12290048

search_part()
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
NTFS at 0/1/1
filesystem size 20447169
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 1279171
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 1272 199 15 20447169 [PQSERVICE]
NTFS, blocksize=4096, 10468 MB / 9983 MiB
NTFS at 1272/199/16
filesystem size 117546689
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2122866
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB

recover_EXT2: s_block_group_nr=0/109, s_mnt_count=6/32, s_blocks_per_group=32768, s_inodes_per_group=8144
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3596574
recover_EXT2: part_size 28772592
Linux 8591 1 1 10382 3 51 28772592
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB

recover_EXT2: s_block_group_nr=0/60, s_mnt_count=6/25, s_blocks_per_group=32768, s_inodes_per_group=8032
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1994240
recover_EXT2: part_size 15953920
Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock Recover, 8168 MB / 7790 MiB
Linux Swap 11375 90 44 11464 118 30 1431536
SWAP2 version 1, pagesize=4096, 732 MB / 698 MiB

recover_EXT2: s_block_group_nr=0/46, s_mnt_count=0/21, s_blocks_per_group=32768, s_inodes_per_group=16352
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1536256
recover_EXT2: part_size 12290048
Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
NTFS at 12229/156/24
filesystem size 116113065
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 9111551
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB
get_geometry_from_list_part_aux head=255 nbr=2
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=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=2

Results
HPFS - NTFS 0 1 1 1272 199 15 20447169 [PQSERVICE]
NTFS, blocksize=4096, 10468 MB / 9983 MiB
HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB
Linux 8591 1 1 10382 3 51 28772592
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB
Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock Recover, 8168 MB / 7790 MiB
Linux Swap 11375 90 44 11464 118 30 1431536
SWAP2 version 1, pagesize=4096, 732 MB / 698 MiB
Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB

interface_write()

No partition found or selected for recovery
simulate write!

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

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
check_part_i386 1 type 12: no test
NTFS at 1272/199/16
NTFS at 12229/156/24
get_geometry_from_list_part_aux head=255 nbr=3
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=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=3
1 P Compaq Diagnostics 0 1 1 1272 199 15 20447169
2 * HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB
3 E extended LBA 8590 0 1 12229 156 23 58470386
5 L Linux 8591 1 1 10382 3 51 28772592
ext3 blocksize=4096 Large file Sparse superblock, 14 GB / 13 GiB
X extended 10382 35 1 11375 58 11 15954005
6 L Linux 10382 36 23 11375 58 11 15953920
ext3 blocksize=4096 Large file Sparse superblock Recover, 8168 MB / 7790 MiB
X extended 11375 89 1 11464 118 30 1431642
7 L Linux Swap 11375 90 44 11464 118 30 1431536
SWAP2 version 1, pagesize=4096, 732 MB / 698 MiB
X extended 11464 150 1 12229 156 23 12290126
8 L Linux 11464 151 16 12229 156 23 12290048
ext3 blocksize=4096 Large file Sparse superblock, 6292 MB / 6001 MiB
4 P HPFS - NTFS 12229 156 24 19457 80 56 116113065 [DATA]
NTFS, blocksize=4096, 59 GB / 55 GiB

ntfs_boot_sector
2 * HPFS - NTFS 1272 199 16 8589 184 44 117546689 [ACER]
NTFS, blocksize=4096, 60 GB / 56 GiB
NTFS at 1272/199/16
NTFS at 1272/199/16
filesystem size 117546689
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2122866
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.

TestDisk exited normally.

A disk read error occured Press Ctrl+Alt+Del to restart

Posted: 27 Sep 2015, 23:11
by entier
I ran boot-repair program provided by Ubuntu. Here is an extract from its results:

Code: Select all

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista: NTFS
    Boot sector info:  According to the info in the boot sector, sda2 starts 
                       at sector 20467712. But according to the info from 
                       fdisk, sda2 starts at sector 20447232.
    Operating System:  Windows Vista
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe
Is it possible that this mismatch results in non-booting Vista? Could TestDisk update the boot sector information?