Bizarre Change in Filesystem Type after Testdisk repair
Posted: 01 Mar 2012, 13:17
Firstly, thanks for the forum.
Second, I wish to report my recent first experience using Testdisk to examine my partition and repair it.
I decided to try Testdisk because my system started to spontaneously freeze and occasionally reboot after shutdown. When this happened, sometimes I was able to switch to a command line and note that a stream of /dev/sda i/o errors sector xxxxxx (mostly one sector with bursts of other sectors). Using Spinrite 6.0 on the disk (level 2 and level 4) has not changed these occurrences.
I went through the analyze, quick search assessments with apparent normal findings (except that the bootable partition switched from one to the other). Then I performed the deeper search and this revealed many duplicate and extra entries.
Testdisk Log, follows. It looks full of redundancies to me, since I went back and forth before finally deciding it was "safe" to write. I think it includes two sessions (second part appended).
"Wed Feb 29 21:25:10 2012
Command line: TestDisk
TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.32-5-686 (#1 SMP Mon Oct 3 04:15:24 UTC 2011)
Compiler: GCC 4.4 - Sep 5 2010 13:29:23
ext2fs lib: 1.41.12, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 156301488 sectors
/dev/sda: user_max 156301488 sectors
/dev/sda: native_max 156301488 sectors
/dev/sda: dco 156301488 sectors
Hard disk list
Disk /dev/sda - 80 GB / 74 GiB - CHS 9729 255 63, sector size=512 - ATA HTS548080M9AT00
Partition table type (auto): Intel
Disk /dev/sda - 80 GB / 74 GiB - ATA HTS548080M9AT00
Partition table type: Intel
Analyse Disk /dev/sda - 80 GB / 74 GiB - CHS 9729 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Current partition structure:
1 P HPFS - NTFS 0 1 1 2568 254 63 41270922
2 * Linux 3206 109 40 5755 240 53 40957952
3 E extended 7030 227 44 7285 218 37 4096002
5 L Linux Swap 7030 227 46 7285 218 37 4096000
Computes LBA from CHS for Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
recover_EXT2: s_block_group_nr=0/156, s_mnt_count=1/23, s_blocks_per_group=32768, s_inodes_per_group=8160
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 5119744
recover_EXT2: part_size 40957952
Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
Linux Swap 7030 227 46 7285 218 21 4095984
SWAP2 version 1, 2097 MB / 1999 MiB
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Results
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
P Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
P Linux Swap 7030 227 46 7285 218 21 4095984
SWAP2 version 1, 2097 MB / 1999 MiB
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Directory /
[SNIP]
dir_partition inode=2
P Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
Directory /
[SNIP]
interface_write()
1 * HPFS - NTFS 0 1 1 2568 254 63 41270922
2 P Linux 3206 109 40 5755 240 53 40957952
3 P Linux Swap 7030 227 46 7285 218 21 4095984
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
NTFS at 2568/254/63
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS found using backup sector!, 21 GB / 19 GiB
NTFS at 2587/254/63
filesystem size 41576157
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2587 254 63 41576157
NTFS found using backup sector!, 21 GB / 19 GiB
recover_EXT2: s_block_group_nr=0/156, s_mnt_count=1/23, s_blocks_per_group=32768, s_inodes_per_group=8160
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 5119744
recover_EXT2: part_size 40957952
Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
FAT32 at 3429/198/34
FAT1 : 32-2075
FAT2 : 2076-4119
start_rootdir : 4120 root cluster : 2
Data : 4120-1048575
sectors : 1048576
cluster_size : 4
no_of_cluster : 261114 (2 - 261115)
fat_length 2044 calculated 2040
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 3429/198/34
FAT32 LBA 3429 198 34 3495 12 37 1048576 [SDCARD]
FAT32, 536 MB / 512 MiB
FAT32 at 3429/198/40
FAT1 : 32-2075
FAT2 : 2076-4119
start_rootdir : 4120 root cluster : 2
Data : 4120-1048575
sectors : 1048576
cluster_size : 4
no_of_cluster : 261114 (2 - 261115)
fat_length 2044 calculated 2040
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 3429/198/40
FAT32 LBA 3429 198 34 3495 12 37 1048576 [SDCARD]
FAT found using backup sector!, 536 MB / 512 MiB
FAT32 at 3708/50/55
FAT1 : 32-1619
FAT2 : 1620-3207
start_rootdir : 3208 root cluster : 2
Data : 3208-204799
sectors : 204800
cluster_size : 1
no_of_cluster : 201592 (2 - 201593)
fat_length 1588 calculated 1575
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 3708/50/55
FAT32 LBA 3708 50 55 3720 241 41 204800 [SDCARD]
FAT32, 104 MB / 100 MiB
FAT32 at 3708/50/61
FAT1 : 32-1619
FAT2 : 1620-3207
start_rootdir : 3208 root cluster : 2
Data : 3208-204799
sectors : 204800
cluster_size : 1
no_of_cluster : 201592 (2 - 201593)
fat_length 1588 calculated 1575
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 3708/50/61
FAT32 LBA 3708 50 55 3720 241 41 204800 [SDCARD]
FAT found using backup sector!, 104 MB / 100 MiB
recover_EXT2: s_block_group_nr=0/156, s_mnt_count=23/23, s_blocks_per_group=32768, s_inodes_per_group=8160
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 5119744
recover_EXT2: part_size 40957952
Linux 4268 155 48 6818 31 61 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
FAT32 at 5544/245/14
FAT1 : 32-1229
FAT2 : 1230-2427
start_rootdir : 2428 root cluster : 2
Data : 2428-614399
sectors : 614400
cluster_size : 4
no_of_cluster : 152993 (2 - 152994)
fat_length 1198 calculated 1196
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 5544/245/14
FAT32 LBA 5544 245 14 5583 52 37 614400 [SDCARD]
FAT32, 314 MB / 300 MiB
FAT32 at 5544/245/20
FAT1 : 32-1229
FAT2 : 1230-2427
start_rootdir : 2428 root cluster : 2
Data : 2428-614399
sectors : 614400
cluster_size : 4
no_of_cluster : 152993 (2 - 152994)
fat_length 1198 calculated 1196
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 5544/245/20
FAT32 LBA 5544 245 14 5583 52 37 614400 [SDCARD]
FAT found using backup sector!, 314 MB / 300 MiB
FAT32 at 5600/8/41
FAT1 : 32-2028
FAT2 : 2029-4025
start_rootdir : 4026 root cluster : 2
Data : 4026-1023997
sectors : 1024000
cluster_size : 4
no_of_cluster : 254993 (2 - 254994)
fat_length 1997 calculated 1993
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 5600/8/41
FAT32 LBA 5600 8 41 5663 197 38 1024000 [SDCARD]
FAT32, 524 MB / 500 MiB
FAT32 at 5600/8/47
FAT1 : 32-2028
FAT2 : 2029-4025
start_rootdir : 4026 root cluster : 2
Data : 4026-1023997
sectors : 1024000
cluster_size : 4
no_of_cluster : 254993 (2 - 254994)
fat_length 1997 calculated 1993
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 5600/8/47
FAT32 LBA 5600 8 41 5663 197 38 1024000 [SDCARD]
FAT found using backup sector!, 524 MB / 500 MiB
Linux Swap 7030 227 46 7285 218 21 4095984
SWAP2 version 1, 2097 MB / 1999 MiB
NTFS at 9728/254/63
filesystem size 156296322
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 9768520
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 9728 254 63 156296322
NTFS found using backup sector!, 80 GB / 74 GiB
get_geometry_from_list_part_aux head=255 nbr=6
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=3
get_geometry_from_list_part_aux head=32 nbr=3
get_geometry_from_list_part_aux head=64 nbr=3
get_geometry_from_list_part_aux head=128 nbr=3
get_geometry_from_list_part_aux head=240 nbr=3
get_geometry_from_list_part_aux head=255 nbr=6
Results
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
HPFS - NTFS 0 1 1 2587 254 63 41576157
NTFS found using backup sector!, 21 GB / 19 GiB
HPFS - NTFS 0 1 1 9728 254 63 156296322
NTFS found using backup sector!, 80 GB / 74 GiB
Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
FAT32 LBA 3429 198 34 3495 12 37 1048576 [SDCARD]
FAT32, 536 MB / 512 MiB
FAT32 LBA 3708 50 55 3720 241 41 204800 [SDCARD]
FAT32, 104 MB / 100 MiB
Linux 4268 155 48 6818 31 61 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
FAT32 LBA 5544 245 14 5583 52 37 614400 [SDCARD]
FAT32, 314 MB / 300 MiB
FAT32 LBA 5600 8 41 5663 197 38 1024000 [SDCARD]
FAT32, 524 MB / 500 MiB
Linux Swap 7030 227 46 7285 218 21 4095984
SWAP2 version 1, 2097 MB / 1999 MiB
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Directory /
[SNIP]
5620 dr-xr-xr-x 0 0 ntfs_mapping_pairs_decompress() failed: Input/output error.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
ntfs_mapping_pairs_decompress() failed: Input/output error.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
ntfs_mapping_pairs_decompress() failed: Input/output error.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
ntfs_mapping_pairs_decompress() failed: Input/output error.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
0 7-May-2010 03:46 Documents and Settings
[SNIP]
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
HPFS - NTFS 0 1 1 2587 254 63 41576157
NTFS found using backup sector!, 21 GB / 19 GiB
Directory /
[SNIP]
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
HPFS - NTFS 0 1 1 9728 254 63 156296322
NTFS found using backup sector!, 80 GB / 74 GiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
HPFS - NTFS 0 1 1 2587 254 63 41576157
NTFS found using backup sector!, 21 GB / 19 GiB
Directory /
[SNIP]
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Directory /
[SNIP]
dir_partition inode=2
Linux 4268 155 48 6818 31 61 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /
interface_write()
1 P HPFS - NTFS 0 1 1 2568 254 63 41270922
2 * Linux 3206 109 40 5755 240 53 40957952
3 E extended LBA 7030 227 1 7285 254 63 4098339
5 L Linux Swap 7030 227 46 7285 218 21 4095984
write!
write_mbr_i386: starting...
write_all_log_i386: starting...
write_all_log_i386: CHS: 7030/227/1,lba=112951251
You will have to reboot for the change to take effect.
Analyse Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Current partition structure:
1 P HPFS - NTFS 0 1 1 2568 254 63 41270922
2 * Linux 3206 109 40 5755 240 53 40957952
3 E extended LBA 7030 227 1 7285 254 63 4098339
5 L Linux Swap 7030 227 46 7285 218 21 4095984
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Search for partition aborted
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Results
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
interface_write()
1 * HPFS - NTFS 0 1 1 2568 254 63 41270922
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Search for partition aborted
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Results
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
interface_write()
1 * HPFS - NTFS 0 1 1 2568 254 63 41270922
simulate write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
Partition table type (auto): Intel
Disk /dev/sda - 80 GB / 74 GiB - ATA HTS548080M9AT00
Partition table type: Intel
Analyse Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Current partition structure:
1 P HPFS - NTFS 0 1 1 2568 254 63 41270922
2 * Linux 3206 109 40 5755 240 53 40957952
3 E extended LBA 7030 227 1 7285 254 63 4098339
5 L Linux Swap 7030 227 46 7285 218 21 4095984
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Search for partition aborted
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Results
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
interface_write()
1 * HPFS - NTFS 0 1 1 2568 254 63 41270922
simulate write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
TestDisk exited normally."
I was thrilled when the system rebooted apparently normally after exiting testdisk and shutting down.
HOWEVER, I noticed that the swap partition failed to load during the boot.
After boot, the system seems to be functioning normally.
However, the extended partition which contains my swap partition is now listed with a Fat Windows 95 code (I think it is the 0f WIN95: Extended partition, LBA-mapped one). Prior to the testdisk rewrite, it was listed as a code 5 in fdisk -l.
** I think this may be related to the failure of testdisk to detect an extended partition (or my failure to run the specific extended partition analysis, which I now recall was an additional option on the result screen at the end of the "Deeper Search".
I don't know if this is important? I don't know the practical implications of a particular filesystem identification for an extended partition, since these are only containers for the logical partitions within them.
Gparted detects the extended and swap partitions apparently normally, but since the swap "failed" to load at boot, it suggests that the extended partition (and the swap partition inside it) is not being recognized.
So, I wonder whether I should change the extended partition code back to 5, and if so, with which tool, fdisk or Gparted or testdisk or ...?
Thanks again for providing testdisk and for the forum.
Steve
Second, I wish to report my recent first experience using Testdisk to examine my partition and repair it.
I decided to try Testdisk because my system started to spontaneously freeze and occasionally reboot after shutdown. When this happened, sometimes I was able to switch to a command line and note that a stream of /dev/sda i/o errors sector xxxxxx (mostly one sector with bursts of other sectors). Using Spinrite 6.0 on the disk (level 2 and level 4) has not changed these occurrences.
I went through the analyze, quick search assessments with apparent normal findings (except that the bootable partition switched from one to the other). Then I performed the deeper search and this revealed many duplicate and extra entries.
Testdisk Log, follows. It looks full of redundancies to me, since I went back and forth before finally deciding it was "safe" to write. I think it includes two sessions (second part appended).
"Wed Feb 29 21:25:10 2012
Command line: TestDisk
TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.32-5-686 (#1 SMP Mon Oct 3 04:15:24 UTC 2011)
Compiler: GCC 4.4 - Sep 5 2010 13:29:23
ext2fs lib: 1.41.12, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 156301488 sectors
/dev/sda: user_max 156301488 sectors
/dev/sda: native_max 156301488 sectors
/dev/sda: dco 156301488 sectors
Hard disk list
Disk /dev/sda - 80 GB / 74 GiB - CHS 9729 255 63, sector size=512 - ATA HTS548080M9AT00
Partition table type (auto): Intel
Disk /dev/sda - 80 GB / 74 GiB - ATA HTS548080M9AT00
Partition table type: Intel
Analyse Disk /dev/sda - 80 GB / 74 GiB - CHS 9729 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Current partition structure:
1 P HPFS - NTFS 0 1 1 2568 254 63 41270922
2 * Linux 3206 109 40 5755 240 53 40957952
3 E extended 7030 227 44 7285 218 37 4096002
5 L Linux Swap 7030 227 46 7285 218 37 4096000
Computes LBA from CHS for Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
recover_EXT2: s_block_group_nr=0/156, s_mnt_count=1/23, s_blocks_per_group=32768, s_inodes_per_group=8160
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 5119744
recover_EXT2: part_size 40957952
Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
Linux Swap 7030 227 46 7285 218 21 4095984
SWAP2 version 1, 2097 MB / 1999 MiB
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Results
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
P Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
P Linux Swap 7030 227 46 7285 218 21 4095984
SWAP2 version 1, 2097 MB / 1999 MiB
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Directory /
[SNIP]
dir_partition inode=2
P Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
Directory /
[SNIP]
interface_write()
1 * HPFS - NTFS 0 1 1 2568 254 63 41270922
2 P Linux 3206 109 40 5755 240 53 40957952
3 P Linux Swap 7030 227 46 7285 218 21 4095984
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
NTFS at 2568/254/63
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS found using backup sector!, 21 GB / 19 GiB
NTFS at 2587/254/63
filesystem size 41576157
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2587 254 63 41576157
NTFS found using backup sector!, 21 GB / 19 GiB
recover_EXT2: s_block_group_nr=0/156, s_mnt_count=1/23, s_blocks_per_group=32768, s_inodes_per_group=8160
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 5119744
recover_EXT2: part_size 40957952
Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
FAT32 at 3429/198/34
FAT1 : 32-2075
FAT2 : 2076-4119
start_rootdir : 4120 root cluster : 2
Data : 4120-1048575
sectors : 1048576
cluster_size : 4
no_of_cluster : 261114 (2 - 261115)
fat_length 2044 calculated 2040
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 3429/198/34
FAT32 LBA 3429 198 34 3495 12 37 1048576 [SDCARD]
FAT32, 536 MB / 512 MiB
FAT32 at 3429/198/40
FAT1 : 32-2075
FAT2 : 2076-4119
start_rootdir : 4120 root cluster : 2
Data : 4120-1048575
sectors : 1048576
cluster_size : 4
no_of_cluster : 261114 (2 - 261115)
fat_length 2044 calculated 2040
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 3429/198/40
FAT32 LBA 3429 198 34 3495 12 37 1048576 [SDCARD]
FAT found using backup sector!, 536 MB / 512 MiB
FAT32 at 3708/50/55
FAT1 : 32-1619
FAT2 : 1620-3207
start_rootdir : 3208 root cluster : 2
Data : 3208-204799
sectors : 204800
cluster_size : 1
no_of_cluster : 201592 (2 - 201593)
fat_length 1588 calculated 1575
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 3708/50/55
FAT32 LBA 3708 50 55 3720 241 41 204800 [SDCARD]
FAT32, 104 MB / 100 MiB
FAT32 at 3708/50/61
FAT1 : 32-1619
FAT2 : 1620-3207
start_rootdir : 3208 root cluster : 2
Data : 3208-204799
sectors : 204800
cluster_size : 1
no_of_cluster : 201592 (2 - 201593)
fat_length 1588 calculated 1575
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 3708/50/61
FAT32 LBA 3708 50 55 3720 241 41 204800 [SDCARD]
FAT found using backup sector!, 104 MB / 100 MiB
recover_EXT2: s_block_group_nr=0/156, s_mnt_count=23/23, s_blocks_per_group=32768, s_inodes_per_group=8160
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 5119744
recover_EXT2: part_size 40957952
Linux 4268 155 48 6818 31 61 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
FAT32 at 5544/245/14
FAT1 : 32-1229
FAT2 : 1230-2427
start_rootdir : 2428 root cluster : 2
Data : 2428-614399
sectors : 614400
cluster_size : 4
no_of_cluster : 152993 (2 - 152994)
fat_length 1198 calculated 1196
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 5544/245/14
FAT32 LBA 5544 245 14 5583 52 37 614400 [SDCARD]
FAT32, 314 MB / 300 MiB
FAT32 at 5544/245/20
FAT1 : 32-1229
FAT2 : 1230-2427
start_rootdir : 2428 root cluster : 2
Data : 2428-614399
sectors : 614400
cluster_size : 4
no_of_cluster : 152993 (2 - 152994)
fat_length 1198 calculated 1196
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 5544/245/20
FAT32 LBA 5544 245 14 5583 52 37 614400 [SDCARD]
FAT found using backup sector!, 314 MB / 300 MiB
FAT32 at 5600/8/41
FAT1 : 32-2028
FAT2 : 2029-4025
start_rootdir : 4026 root cluster : 2
Data : 4026-1023997
sectors : 1024000
cluster_size : 4
no_of_cluster : 254993 (2 - 254994)
fat_length 1997 calculated 1993
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 5600/8/41
FAT32 LBA 5600 8 41 5663 197 38 1024000 [SDCARD]
FAT32, 524 MB / 500 MiB
FAT32 at 5600/8/47
FAT1 : 32-2028
FAT2 : 2029-4025
start_rootdir : 4026 root cluster : 2
Data : 4026-1023997
sectors : 1024000
cluster_size : 4
no_of_cluster : 254993 (2 - 254994)
fat_length 1997 calculated 1993
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 9 (FAT) != 63 (HD)
set_FAT_info: name from BS used
FAT32 at 5600/8/47
FAT32 LBA 5600 8 41 5663 197 38 1024000 [SDCARD]
FAT found using backup sector!, 524 MB / 500 MiB
Linux Swap 7030 227 46 7285 218 21 4095984
SWAP2 version 1, 2097 MB / 1999 MiB
NTFS at 9728/254/63
filesystem size 156296322
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 9768520
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 9728 254 63 156296322
NTFS found using backup sector!, 80 GB / 74 GiB
get_geometry_from_list_part_aux head=255 nbr=6
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=3
get_geometry_from_list_part_aux head=32 nbr=3
get_geometry_from_list_part_aux head=64 nbr=3
get_geometry_from_list_part_aux head=128 nbr=3
get_geometry_from_list_part_aux head=240 nbr=3
get_geometry_from_list_part_aux head=255 nbr=6
Results
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
HPFS - NTFS 0 1 1 2587 254 63 41576157
NTFS found using backup sector!, 21 GB / 19 GiB
HPFS - NTFS 0 1 1 9728 254 63 156296322
NTFS found using backup sector!, 80 GB / 74 GiB
Linux 3206 109 40 5755 240 53 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
FAT32 LBA 3429 198 34 3495 12 37 1048576 [SDCARD]
FAT32, 536 MB / 512 MiB
FAT32 LBA 3708 50 55 3720 241 41 204800 [SDCARD]
FAT32, 104 MB / 100 MiB
Linux 4268 155 48 6818 31 61 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
FAT32 LBA 5544 245 14 5583 52 37 614400 [SDCARD]
FAT32, 314 MB / 300 MiB
FAT32 LBA 5600 8 41 5663 197 38 1024000 [SDCARD]
FAT32, 524 MB / 500 MiB
Linux Swap 7030 227 46 7285 218 21 4095984
SWAP2 version 1, 2097 MB / 1999 MiB
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Directory /
[SNIP]
5620 dr-xr-xr-x 0 0 ntfs_mapping_pairs_decompress() failed: Input/output error.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
ntfs_mapping_pairs_decompress() failed: Input/output error.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
ntfs_mapping_pairs_decompress() failed: Input/output error.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
ntfs_mapping_pairs_decompress() failed: Input/output error.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
0 7-May-2010 03:46 Documents and Settings
[SNIP]
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
HPFS - NTFS 0 1 1 2587 254 63 41576157
NTFS found using backup sector!, 21 GB / 19 GiB
Directory /
[SNIP]
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
HPFS - NTFS 0 1 1 9728 254 63 156296322
NTFS found using backup sector!, 80 GB / 74 GiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
HPFS - NTFS 0 1 1 2587 254 63 41576157
NTFS found using backup sector!, 21 GB / 19 GiB
Directory /
[SNIP]
ntfs_device_testdisk_io_ioctl() unimplemented
dir_partition inode=5
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Directory /
[SNIP]
dir_partition inode=2
Linux 4268 155 48 6818 31 61 40957952
EXT4 Large file Sparse superblock Recover, 20 GB / 19 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /
interface_write()
1 P HPFS - NTFS 0 1 1 2568 254 63 41270922
2 * Linux 3206 109 40 5755 240 53 40957952
3 E extended LBA 7030 227 1 7285 254 63 4098339
5 L Linux Swap 7030 227 46 7285 218 21 4095984
write!
write_mbr_i386: starting...
write_all_log_i386: starting...
write_all_log_i386: CHS: 7030/227/1,lba=112951251
You will have to reboot for the change to take effect.
Analyse Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Current partition structure:
1 P HPFS - NTFS 0 1 1 2568 254 63 41270922
2 * Linux 3206 109 40 5755 240 53 40957952
3 E extended LBA 7030 227 1 7285 254 63 4098339
5 L Linux Swap 7030 227 46 7285 218 21 4095984
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Search for partition aborted
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Results
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
interface_write()
1 * HPFS - NTFS 0 1 1 2568 254 63 41270922
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Search for partition aborted
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Results
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
interface_write()
1 * HPFS - NTFS 0 1 1 2568 254 63 41270922
simulate write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
Partition table type (auto): Intel
Disk /dev/sda - 80 GB / 74 GiB - ATA HTS548080M9AT00
Partition table type: Intel
Analyse Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Current partition structure:
1 P HPFS - NTFS 0 1 1 2568 254 63 41270922
2 * Linux 3206 109 40 5755 240 53 40957952
3 E extended LBA 7030 227 1 7285 254 63 4098339
5 L Linux Swap 7030 227 46 7285 218 21 4095984
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sda - 80 GB / 74 GiB - CHS 9730 255 63
NTFS at 0/1/1
filesystem size 41270922
sectors_per_cluster 1
mft_lcn 6291456
mftmirr_lcn 9815683
clusters_per_mft_record 2
clusters_per_index_record 8
HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
Search for partition aborted
get_geometry_from_list_part_aux head=255 nbr=2
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=2
Results
* HPFS - NTFS 0 1 1 2568 254 63 41270922
NTFS, 21 GB / 19 GiB
interface_write()
1 * HPFS - NTFS 0 1 1 2568 254 63 41270922
simulate write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
TestDisk exited normally."
I was thrilled when the system rebooted apparently normally after exiting testdisk and shutting down.
HOWEVER, I noticed that the swap partition failed to load during the boot.
After boot, the system seems to be functioning normally.
However, the extended partition which contains my swap partition is now listed with a Fat Windows 95 code (I think it is the 0f WIN95: Extended partition, LBA-mapped one). Prior to the testdisk rewrite, it was listed as a code 5 in fdisk -l.
** I think this may be related to the failure of testdisk to detect an extended partition (or my failure to run the specific extended partition analysis, which I now recall was an additional option on the result screen at the end of the "Deeper Search".
I don't know if this is important? I don't know the practical implications of a particular filesystem identification for an extended partition, since these are only containers for the logical partitions within them.
Gparted detects the extended and swap partitions apparently normally, but since the swap "failed" to load at boot, it suggests that the extended partition (and the swap partition inside it) is not being recognized.
So, I wonder whether I should change the extended partition code back to 5, and if so, with which tool, fdisk or Gparted or testdisk or ...?
Thanks again for providing testdisk and for the forum.
Steve