Please bear with me....
I have a hard drive (WD3200AAKS) with Windows 7 on an NTFS partition, which was used internally. To install Linux ZorinOS for a dual system, I successfully resized the existing partition and allocated sufficient space to accommodate the new OS. I do not remember which disk utility I used for that. During ZorinOS installation from a DVD, I was asked to determine where the swap file location should be and what size. According to some information online, it could not be on the same partition as the new OS, and since one of the tips was to choose the other (the Windows one) partition for it, I idiotically did put it right over it - and have since been unable to access any data on that HD with any disk/partition utility in another Linux or Windows system when connected via USB. TestDisk produces a lot of data on it, but I have no clue what it means.Is there a way to undo this, sort of "revert it to a previous state"? It shows 217 GB free and 103 GB used. Many thanks in advance.
There are 3 more TestDisk screenshots besides these here, and also here is a partial TestDisk log:
Fri Feb 28 08:34:50 2014
Command line: TestDisk
TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.11.0-12-generic (#19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013) x86_64
Compiler: GCC 4.8
Compilation date: 2013-08-23T17:34:40
ext2fs lib: 1.42.8, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 234441648 sectors
/dev/sda: user_max 234441648 sectors
/dev/sda: native_max 234441648 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 1 sectors, sector size=512
Hard disk list
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63, sector size=512 - Samsung SSD 840 EVO 120GB, S/N:S1D5NSADA86309P, FW:EXT0BB0Q
Disk /dev/sdf - 16 GB / 15 GiB - CHS 15474 64 32, sector size=512 - Corsair Voyager, FW:1100
Disk /dev/sdg - 320 GB / 298 GiB - CHS 38913 255 63, sector size=512 - WDC WD32 00AAKS-00B3A0, FW:3A01
Partition table type (auto): Intel
Disk /dev/sdg - 320 GB / 298 GiB - WDC WD32 00AAKS-00B3A0
Partition table type: None
Interface Advanced
NTFS at 38913/80/63
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
P Unknown 0 0 1 38913 80 63 625142448
Change partition type:
P exFAT 0 0 1 38913 80 63 625142448
exFAT_boot_sector
P exFAT 0 0 1 38913 80 63 625142448
Boot sector
Bad
Backup boot record
Bad
Sectors are not identical.
exFAT_boot_sector
P exFAT 0 0 1 38913 80 63 625142448
Boot sector
Bad
Backup boot record
Bad
Sectors are not identical.
exFAT_boot_sector
P exFAT 0 0 1 38913 80 63 625142448
Boot sector
Bad
Backup boot record
Bad
Sectors are not identical.
Not an exFAT boot sector.
P exFAT 0 0 1 38913 80 63 625142448
Can't open filesystem. Filesystem seems damaged.
Analyse Disk /dev/sdg - 320 GB / 298 GiB - CHS 38913 255 63
NTFS at 38913/80/63
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
Current partition structure:
P Unknown 0 0 1 38913 80 63 625142448
search_part()
Disk /dev/sdg - 320 GB / 298 GiB - CHS 38913 255 63
NTFS at 0/1/1
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS part_offset=32256, part_size=320072901120, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 0/1/1
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
Results
P NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
interface_write()
P NTFS 0 1 1 38913 80 63 625142385
Write isn't available because the partition table type "None" has been selected.
search_part()
Disk /dev/sdg - 320 GB / 298 GiB - CHS 38913 255 63
NTFS at 0/1/1
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS part_offset=32256, part_size=320072901120, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 0/1/1
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
NTFS at 0/32/33
filesystem size 625137664
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS part_offset=1048576, part_size=320070483968, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 0/32/33
filesystem size 625137664
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS 0 32 33 38913 37 36 625137664 [PavilionWin7 Local Disk]
NTFS, blocksize=4096, 320 GB / 298 GiB
HFS magic value at 16/140/33
part_size 8388610
HFS 16 140 33 538 183 3 8388610 [˙˙˙ēD]
HFS blocksize=16777216, 4294 MB / 4096 MiB
HFS magic value at 16/140/35
LVM magic value at 164/196/25
LVM magic value at 432/231/34
Search for partition aborted
Results
P NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
P NTFS 0 32 33 38913 37 36 625137664 [PavilionWin7 Local Disk]
NTFS, blocksize=4096, 320 GB / 298 GiB
P HFS 16 140 33 538 183 3 8388610 [˙˙˙ēD]
HFS blocksize=16777216, 4294 MB / 4096 MiB
interface_write()
P NTFS 0 1 1 38913 80 63 625142385
P NTFS 0 32 33 38913 37 36 625137664 [PavilionWin7 Local Disk]
P HFS 16 140 33 538 183 3 8388610 [˙˙˙ēD]
Write isn't available because the partition table type "None" has been selected.
New options :
Dump : No
Align partition: Yes
Expert mode : No
Interface Advanced
NTFS at 38913/80/63
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
P Unknown 0 0 1 38913 80 63 625142448
Analyse Disk /dev/sdg - 320 GB / 298 GiB - CHS 38913 255 63
NTFS at 38913/80/63
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
Current partition structure:
P Unknown 0 0 1 38913 80 63 625142448
ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
search_part()
Disk /dev/sdg - 320 GB / 298 GiB - CHS 38913 255 63
NTFS at 0/1/1
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS part_offset=32256, part_size=320072901120, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 0/1/1
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
Results
P NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
P NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
Can't open filesystem. Filesystem seems damaged.
interface_write()
P NTFS 0 1 1 38913 80 63 625142385
Write isn't available because the partition table type "None" has been selected.
search_part()
Disk /dev/sdg - 320 GB / 298 GiB - CHS 38913 255 63
NTFS at 0/1/1
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS part_offset=32256, part_size=320072901120, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 0/1/1
filesystem size 625142385
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
NTFS at 0/32/33
filesystem size 625137664
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS part_offset=1048576, part_size=320070483968, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 0/32/33
filesystem size 625137664
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS 0 32 33 38913 37 36 625137664 [PavilionWin7 Local Disk]
NTFS, blocksize=4096, 320 GB / 298 GiB
HFS magic value at 16/140/33
part_size 8388610
HFS 16 140 33 538 183 3 8388610 [˙˙˙ēD]
HFS blocksize=16777216, 4294 MB / 4096 MiB
HFS magic value at 16/140/35
LVM magic value at 164/196/25
LVM magic value at 432/231/34
HFS magic value at 546/242/61
part_size 8388610
HFS 546 242 61 1069 30 31 8388610 [˙˙˙ēD]
HFS blocksize=16777216, 4294 MB / 4096 MiB
HFS magic value at 546/242/63
part_size 8388610
HFS 24 200 31 546 243 1 8388610 [˙˙˙ēD]
HFS found using backup sector!, 4294 MB / 4096 MiB
LVM magic value at 597/179/1
LVM magic value at 604/85/10
VMFS 764 19 51 3104334159 84 55 601860312876694
VMFS 4155246279, 308152 TB / 280263 TiB
This partition ends after the disk limits. (start=12274907, size=601860312876694, end=601860325151601, disk end=625142448)
exFAT 824 128 6 824 128 5 0
exFAT, 0 B
Partition not added.
FAT12 at 824/130/62
FAT1 : 1-8
FAT2 : 9-16
start_rootdir : 17
Data : 49-20736
sectors : 20739
cluster_size : 8
no_of_cluster : 2586 (2 - 2587)
fat_length 8 calculated 8
FAT differs, FAT sectors=0-8/8
heads/cylinder 4 (FAT) != 255 (HD)
sect/track 17 (FAT) != 63 (HD)
FAT12 at 824/130/62
FAT12 824 130 62 825 205 10 20739 [NO NAME]
FAT12, blocksize=4096, 10 MB / 10 MiB
check_FAT: Unusual, only one FAT
FAT32 at 824/130/63
check_FAT: Bad number of entries in root dir
FAT12 at 824/131/15
FAT1 : 1-8
FAT2 : 9-16
start_rootdir : 17
Data : 49-20736
sectors : 20739
cluster_size : 8
no_of_cluster : 2586 (2 - 2587)
fat_length 8 calculated 8
FAT differs, FAT sectors=0-8/8
heads/cylinder 4 (FAT) != 255 (HD)
sect/track 17 (FAT) != 63 (HD)
FAT12 at 824/131/15
FAT12 824 131 15 825 205 26 20739 [NO NAME]
FAT12, blocksize=4096, 10 MB / 10 MiB
check_FAT: Unusual, only one FAT
FAT32 at 824/131/16
check_FAT: Bad number of entries in root dir
LVM magic value at 986/104/7
NTFS at 992/60/5
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS 991 217 6 992 60 5 6174
NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 992/60/5
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS 992 60 5 992 158 4 6174 [Boot]
NTFS, blocksize=512, 3161 KB / 3087 KiB
NTFS at 1122/234/49
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS 1122 136 50 1122 234 49 6174
NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 1122/234/49
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS 1122 234 49 1123 77 48 6174 [Boot]
NTFS, blocksize=512, 3161 KB / 3087 KiB
NTFS at 1123/78/4
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS 1122 235 5 1123 78 4 6174
NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 1123/78/4
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS 1123 78 4 1123 176 3 6174 [Boot]
NTFS, blocksize=512, 3161 KB / 3087 KiB
NTFS at 1123/176/22
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS 1123 78 23 1123 176 22 6174
NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 1123/176/22
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS 1123 176 22 1124 19 21 6174 [Boot]
NTFS, blocksize=512, 3161 KB / 3087 KiB
check_FAT: Unusual media descriptor (0xf0!=0xf8)
FAT12 at 1124/19/24
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 18 (FAT) != 63 (HD)
FAT12 at 1124/19/24
FAT12 1124 19 24 1124 65 5 2880 [EFISECTOR]
FAT12, blocksize=512, 1474 KB / 1440 KiB
check_FAT: Unusual media descriptor (0xf0!=0xf8)
FAT12 at 1124/65/6
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 255 (HD)
sect/track 18 (FAT) != 63 (HD)
FAT12 at 1124/65/6
FAT12 1124 65 6 1124 110 50 2880 [EFISECTOR]
FAT12, blocksize=512, 1474 KB / 1440 KiB
LVM magic value at 1315/18/2
LVM magic value at 1479/220/48
LVM magic value at 1486/126/57
NTFS at 1122/234/49
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
NTFS at 1123/78/4
heads/cylinder 16 (NTFS) != 255 (HD)
sect/track 2 (NTFS) != 63 (HD)
filesystem size 6174
sectors_per_cluster 1
mft_lcn 2058
mftmirr_lcn 5162
clusters_per_mft_record 2
clusters_per_index_record 8
Search for partition aborted
Disk /dev/sdg - 320 GB / 298 GiB - CHS 38913 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (320 GB / 298 GiB) seems too small! (< 308152 TB / 280263 TiB)
The following partition can't be recovered:
VMFS 764 19 51 3104334159 84 55 601860312876694
VMFS 4155246279, 308152 TB / 280263 TiB
Results
P NTFS 0 1 1 38913 80 63 625142385
NTFS, blocksize=4096, 320 GB / 298 GiB
P NTFS 0 32 33 38913 37 36 625137664 [PavilionWin7 Local Disk]
NTFS, blocksize=4096, 320 GB / 298 GiB
P HFS 16 140 33 538 183 3 8388610 [˙˙˙ēD]
HFS blocksize=16777216, 4294 MB / 4096 MiB
P HFS 24 200 31 546 243 1 8388610 [˙˙˙ēD]
HFS found using backup sector!, 4294 MB / 4096 MiB
P HFS 546 242 61 1069 30 31 8388610 [˙˙˙ēD]
HFS blocksize=16777216, 4294 MB / 4096 MiB
P FAT12 824 130 62 825 205 10 20739 [NO NAME]
FAT12, blocksize=4096, 10 MB / 10 MiB
P FAT12 824 131 15 825 205 26 20739 [NO NAME]
FAT12, blocksize=4096, 10 MB / 10 MiB
P NTFS 991 217 6 992 60 5 6174
NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
P NTFS 992 60 5 992 158 4 6174 [Boot]
NTFS, blocksize=512, 3161 KB / 3087 KiB
P NTFS 1122 136 50 1122 234 49 6174
NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
P NTFS 1122 234 49 1123 77 48 6174 [Boot]
NTFS, blocksize=512, 3161 KB / 3087 KiB
P NTFS 1122 235 5 1123 78 4 6174
NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
P NTFS 1123 78 4 1123 176 3 6174 [Boot]
NTFS, blocksize=512, 3161 KB / 3087 KiB
P NTFS 1123 78 23 1123 176 22 6174
NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
P NTFS 1123 176 22 1124 19 21 6174 [Boot]
NTFS, blocksize=512, 3161 KB / 3087 KiB
P FAT12 1124 19 24 1124 65 5 2880 [EFISECTOR]
FAT12, blocksize=512, 1474 KB / 1440 KiB
P FAT12 1124 65 6 1124 110 50 2880 [EFISECTOR]
FAT12, blocksize=512, 1474 KB / 1440 KiB
SIGHUP detected! TestDisk has been killed.