invalid partition table
Posted: 19 Feb 2018, 21:47
hi everyone,
i'm writting to you because last saterday evening i got a message "invalid partition table" on my screen while trying to boot on my windows 10 os. Just before that i had tried to install linux as a dual boot with windows on a bootable usb made with the software unetbootin, everything seemed okay until this message. I really think i did something bad when i did the partition on the linux installation.
Then, I created a bootable usb with an os that contains testdisk and many other useful tools like partimage, Gparted, ... So i launched testdisk and did these following steps :
(sorry if the pictures are taken with my phone but the os i'm running on is strange and i couldn't take any screenshoot)
1) I choosed to create log and clicked on the intel partition because testdisk told me it :
2)I did a Quicksan that only gave me that (linux swap is my boot usb) :
3)I decided to do a deeperscan that showed me scary things :
4)Testdisk told me that some partitions couldn't be recovered, i hoped this wasn't windows 10 partition :
5)I clicked on continue and testdrive showed me the partition that could be recovered (i think) :
6)I checked the second, third and fourth partition in the list on the previous picture that seemed to be a duplicate corrupted partitions and i saw this :
7)The fifth, sixth and seventh partition were also duplicate partition but didn't seem to be damaged like the previous one, and i was happy to see that all my windows files were there:
8)the few next partitions on the list were damaged but not the last one :
Here's the testdrive.log file :
Mon Feb 19 12:13:30 2018
Command line: TestDisk
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 4.14.15-std520-amd64 (#2 SMP Wed Jan 31 08:38:52 UTC 2018) x86_64
Compiler: GCC 6.4
Compilation date: 2018-01-31T13:59:27
ext2fs lib: 1.43.6, ntfs lib: libntfs-3g, reiserfs lib: 0.3.1-rc8, ewf lib: none, curses lib: ncurses 6.0
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 3907029168 sectors
/dev/sda: user_max 3907029168 sectors
/dev/sda: native_max 3907029168 sectors
/dev/sda: dco 3907029168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 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 - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ST2000LM003 HN-M201RAD, S/N:S34FJ90G830662, FW:2BC10002
Disk /dev/sdb - 15 GB / 14 GiB - CHS 14796 64 32, sector size=512, FW:PMAP
Partition table type (auto): Intel
Disk /dev/sda - 2000 GB / 1863 GiB - ST2000LM003 HN-M201RAD
Partition table type: Intel
Analyse Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63
Geometry from i386 MBR: head=255 sector=63
Current partition structure:
1 P Linux 0 32 33 241124 28 56 3873656832
2 E extended 241124 61 24 243201 78 13 33368066
No partition is bootable
5 L Linux Swap 241124 61 26 243201 78 13 33368064
search_part()
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63
recover_EXT2: s_block_group_nr=0/14776, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB, 1983 GB / 1847 GiB
Linux Swap 241124 61 26 243201 77 60 33368048
SWAP2 version 1, pagesize=4096, 17 GB / 15 GiB
Results
* Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB, 1983 GB / 1847 GiB
P Linux Swap 241124 61 26 243201 78 13 33368064
SWAP2 version 1, pagesize=4096, 17 GB / 15 GiB
Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 3873656832 linear /dev/sda 2048" | dmsetup create test0
echo "0 33368064 linear /dev/sda 3873660928" | dmsetup create test1
dir_partition inode=2
* Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB, 1983 GB / 1847 GiB
Directory /
2 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 .
2 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 ..
11 drwx------ 0 0 16384 18-Feb-2018 00:13 lost+found
100925441 drwxr-xr-x 0 0 12288 18-Feb-2018 00:29 etc
89653249 drwxr-xr-x 0 0 4096 9-Nov-2017 13:32 media
12 -rw-r--r-- 0 0 0 9-Nov-2017 13:38 0
3145729 drwxr-xr-x 0 0 4096 18-Feb-2018 00:28 bin
118489089 drwxr-xr-x 0 0 4096 18-Feb-2018 00:28 boot
24641537 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 dev
12058625 drwxr-xr-x 0 0 4096 30-Oct-2017 12:46 home
13 lrwxrwxrwx 0 0 34 18-Feb-2018 00:14 initrd.img
14 lrwxrwxrwx 0 0 34 18-Feb-2018 00:14 initrd.img.old
97779713 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 lib
27262977 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 lib64
80478209 drwxr-xr-x 0 0 4096 9-Nov-2017 13:32 mnt
6029313 drwxr-xr-x 0 0 4096 18-Feb-2018 00:14 opt
6291457 drwxr-xr-x 0 0 4096 30-Oct-2017 12:46 proc
87818241 drwxr-xr-x 0 0 4096 18-Feb-2018 00:14 root
71303169 drwxr-xr-x 0 0 4096 18-Feb-2018 00:29 run
1835009 drwxr-xr-x 0 0 4096 18-Feb-2018 00:29 sbin
115343361 drwxr-xr-x 0 0 4096 18-Feb-2018 00:14 srv
46137345 drwxr-xr-x 0 0 4096 30-Oct-2017 12:46 sys
56360961 drwxrwxrwt 0 0 4096 18-Feb-2018 00:28 tmp
22282241 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 usr
67895297 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 var
15 lrwxrwxrwx 0 0 31 18-Feb-2018 00:18 vmlinuz
16 lrwxrwxrwx 0 0 31 18-Feb-2018 00:18 vmlinuz.old
2097153 drwx------ 0 0 4096 18-Feb-2018 00:18 .cache
interface_write()
1 * Linux 0 32 33 241124 28 56 3873656832
2 P Linux Swap 241124 61 26 243201 78 13 33368064
search_part()
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63
recover_EXT2: s_block_group_nr=0/14776, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB, 1983 GB / 1847 GiB
block_group_nr 1
recover_EXT2: "e2fsck -b 32768 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=1/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 3
recover_EXT2: "e2fsck -b 98304 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 5
recover_EXT2: "e2fsck -b 163840 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=5/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 7
recover_EXT2: "e2fsck -b 229376 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=7/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 9
recover_EXT2: "e2fsck -b 294912 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=9/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
NTFS at 324/242/46
filesystem size 4194304
sectors_per_cluster 8
mft_lcn 262144
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 63 221 31 324 242 46 4194304
NTFS found using backup sector, blocksize=4096, 2147 MB / 2048 MiB
NTFS at 346/94/4
filesystem size 4194304
sectors_per_cluster 8
mft_lcn 262144
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 85 72 52 346 94 4 4194304
NTFS found using backup sector, blocksize=4096, 2147 MB / 2048 MiB
NTFS at 346/94/5
filesystem size 3880566784
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 346 94 5 241900 122 14 3880566784
NTFS, blocksize=4096, 1986 GB / 1850 GiB
block_group_nr 25
recover_EXT2: "e2fsck -b 819200 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=25/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 27
recover_EXT2: "e2fsck -b 884736 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=27/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 49
recover_EXT2: "e2fsck -b 1605632 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=49/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
BAD_RS LBA=1585438838 4638216
check_part_i386 failed for partition type 07
HPFS - NTFS 98689 0 54 198645 215 45 1605806677
block_group_nr 81
recover_EXT2: "e2fsck -b 2654208 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=81/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 125
recover_EXT2: "e2fsck -b 4096000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=125/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 243
recover_EXT2: "e2fsck -b 7962624 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=243/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 343
recover_EXT2: "e2fsck -b 11239424 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=343/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 625
recover_EXT2: "e2fsck -b 20480000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=625/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 729
recover_EXT2: "e2fsck -b 23887872 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=729/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
BAD_RS LBA=4124806205 8771767
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 0E
FAT16 LBA 256757 79 24 282356 194 7 411255164
This partition ends after the disk limits. (start=4124806205, size=411255164, end=4536061368, disk end=3907029168)
NTFS at 25179/127/37
filesystem size 4194304
sectors_per_cluster 8
mft_lcn 262144
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 25179 127 37 25440 148 52 4194304
NTFS, blocksize=4096, 2147 MB / 2048 MiB
block_group_nr 2187
recover_EXT2: "e2fsck -b 71663616 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=2187/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 2401
recover_EXT2: "e2fsck -b 78675968 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=2401/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 3125
recover_EXT2: "e2fsck -b 102400000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3125/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 6561
recover_EXT2: "e2fsck -b 214990848 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=6561/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
recover_EXT2: s_block_group_nr=0/14776, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 120417 109 13 361541 105 36 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Recover, 1983 GB / 1847 GiB
This partition ends after the disk limits. (start=1934505984, size=3873656832, end=5808162815, disk end=3907029168)
recover_EXT2: s_block_group_nr=0/14776, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 120417 206 46 361541 203 6 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Recover, 1983 GB / 1847 GiB
This partition ends after the disk limits. (start=1934512128, size=3873656832, end=5808168959, disk end=3907029168)
Linux Swap 241124 61 26 243201 77 60 33368048
SWAP2 version 1, pagesize=4096, 17 GB / 15 GiB
NTFS at 241893/249/20
filesystem size 3880462336
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 346 94 5 241893 249 20 3880462336
NTFS found using backup sector, blocksize=4096, 1986 GB / 1850 GiB
NTFS at 241900/122/14
filesystem size 3880566784
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 346 94 5 241900 122 14 3880566784
NTFS found using backup sector, blocksize=4096, 1986 GB / 1850 GiB
NTFS at 241900/122/15
filesystem size 20895920
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 241900 122 15 243201 48 31 20895920
NTFS, blocksize=4096, 10698 MB / 10203 MiB
NTFS at 243201/78/13
filesystem size
So now i'm stuck on the partition list and i don't dare to do anything that could make things worse, ... maybe the linux partition is overlapping with the windows partition and if i delete the linux partition that could fix everything? or maybe i juste have to fix the partition table with the advance tool of testdrive?(because of the invalid partition table message when i boot my hdd )Or should i just write one of the three partition that contains my windows file? but wich one then?
I don't have any external disk to save my disk but i could possibly buy one if it's not too expensive. Indeed i'm a student and i have a lot of important work in my windows partition so i really need your help. I hope you have read everything and i'm sorry if it was too long.
Thank you for your answers.
i'm writting to you because last saterday evening i got a message "invalid partition table" on my screen while trying to boot on my windows 10 os. Just before that i had tried to install linux as a dual boot with windows on a bootable usb made with the software unetbootin, everything seemed okay until this message. I really think i did something bad when i did the partition on the linux installation.
Then, I created a bootable usb with an os that contains testdisk and many other useful tools like partimage, Gparted, ... So i launched testdisk and did these following steps :
(sorry if the pictures are taken with my phone but the os i'm running on is strange and i couldn't take any screenshoot)
1) I choosed to create log and clicked on the intel partition because testdisk told me it :
2)I did a Quicksan that only gave me that (linux swap is my boot usb) :
3)I decided to do a deeperscan that showed me scary things :
4)Testdisk told me that some partitions couldn't be recovered, i hoped this wasn't windows 10 partition :
5)I clicked on continue and testdrive showed me the partition that could be recovered (i think) :
6)I checked the second, third and fourth partition in the list on the previous picture that seemed to be a duplicate corrupted partitions and i saw this :
7)The fifth, sixth and seventh partition were also duplicate partition but didn't seem to be damaged like the previous one, and i was happy to see that all my windows files were there:
8)the few next partitions on the list were damaged but not the last one :
Here's the testdrive.log file :
Mon Feb 19 12:13:30 2018
Command line: TestDisk
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 4.14.15-std520-amd64 (#2 SMP Wed Jan 31 08:38:52 UTC 2018) x86_64
Compiler: GCC 6.4
Compilation date: 2018-01-31T13:59:27
ext2fs lib: 1.43.6, ntfs lib: libntfs-3g, reiserfs lib: 0.3.1-rc8, ewf lib: none, curses lib: ncurses 6.0
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 3907029168 sectors
/dev/sda: user_max 3907029168 sectors
/dev/sda: native_max 3907029168 sectors
/dev/sda: dco 3907029168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 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 - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ST2000LM003 HN-M201RAD, S/N:S34FJ90G830662, FW:2BC10002
Disk /dev/sdb - 15 GB / 14 GiB - CHS 14796 64 32, sector size=512, FW:PMAP
Partition table type (auto): Intel
Disk /dev/sda - 2000 GB / 1863 GiB - ST2000LM003 HN-M201RAD
Partition table type: Intel
Analyse Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63
Geometry from i386 MBR: head=255 sector=63
Current partition structure:
1 P Linux 0 32 33 241124 28 56 3873656832
2 E extended 241124 61 24 243201 78 13 33368066
No partition is bootable
5 L Linux Swap 241124 61 26 243201 78 13 33368064
search_part()
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63
recover_EXT2: s_block_group_nr=0/14776, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB, 1983 GB / 1847 GiB
Linux Swap 241124 61 26 243201 77 60 33368048
SWAP2 version 1, pagesize=4096, 17 GB / 15 GiB
Results
* Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB, 1983 GB / 1847 GiB
P Linux Swap 241124 61 26 243201 78 13 33368064
SWAP2 version 1, pagesize=4096, 17 GB / 15 GiB
Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 3873656832 linear /dev/sda 2048" | dmsetup create test0
echo "0 33368064 linear /dev/sda 3873660928" | dmsetup create test1
dir_partition inode=2
* Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB, 1983 GB / 1847 GiB
Directory /
2 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 .
2 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 ..
11 drwx------ 0 0 16384 18-Feb-2018 00:13 lost+found
100925441 drwxr-xr-x 0 0 12288 18-Feb-2018 00:29 etc
89653249 drwxr-xr-x 0 0 4096 9-Nov-2017 13:32 media
12 -rw-r--r-- 0 0 0 9-Nov-2017 13:38 0
3145729 drwxr-xr-x 0 0 4096 18-Feb-2018 00:28 bin
118489089 drwxr-xr-x 0 0 4096 18-Feb-2018 00:28 boot
24641537 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 dev
12058625 drwxr-xr-x 0 0 4096 30-Oct-2017 12:46 home
13 lrwxrwxrwx 0 0 34 18-Feb-2018 00:14 initrd.img
14 lrwxrwxrwx 0 0 34 18-Feb-2018 00:14 initrd.img.old
97779713 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 lib
27262977 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 lib64
80478209 drwxr-xr-x 0 0 4096 9-Nov-2017 13:32 mnt
6029313 drwxr-xr-x 0 0 4096 18-Feb-2018 00:14 opt
6291457 drwxr-xr-x 0 0 4096 30-Oct-2017 12:46 proc
87818241 drwxr-xr-x 0 0 4096 18-Feb-2018 00:14 root
71303169 drwxr-xr-x 0 0 4096 18-Feb-2018 00:29 run
1835009 drwxr-xr-x 0 0 4096 18-Feb-2018 00:29 sbin
115343361 drwxr-xr-x 0 0 4096 18-Feb-2018 00:14 srv
46137345 drwxr-xr-x 0 0 4096 30-Oct-2017 12:46 sys
56360961 drwxrwxrwt 0 0 4096 18-Feb-2018 00:28 tmp
22282241 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 usr
67895297 drwxr-xr-x 0 0 4096 18-Feb-2018 00:18 var
15 lrwxrwxrwx 0 0 31 18-Feb-2018 00:18 vmlinuz
16 lrwxrwxrwx 0 0 31 18-Feb-2018 00:18 vmlinuz.old
2097153 drwx------ 0 0 4096 18-Feb-2018 00:18 .cache
interface_write()
1 * Linux 0 32 33 241124 28 56 3873656832
2 P Linux Swap 241124 61 26 243201 78 13 33368064
search_part()
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63
recover_EXT2: s_block_group_nr=0/14776, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB, 1983 GB / 1847 GiB
block_group_nr 1
recover_EXT2: "e2fsck -b 32768 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=1/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 3
recover_EXT2: "e2fsck -b 98304 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 5
recover_EXT2: "e2fsck -b 163840 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=5/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 7
recover_EXT2: "e2fsck -b 229376 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=7/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 9
recover_EXT2: "e2fsck -b 294912 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=9/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
NTFS at 324/242/46
filesystem size 4194304
sectors_per_cluster 8
mft_lcn 262144
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 63 221 31 324 242 46 4194304
NTFS found using backup sector, blocksize=4096, 2147 MB / 2048 MiB
NTFS at 346/94/4
filesystem size 4194304
sectors_per_cluster 8
mft_lcn 262144
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 85 72 52 346 94 4 4194304
NTFS found using backup sector, blocksize=4096, 2147 MB / 2048 MiB
NTFS at 346/94/5
filesystem size 3880566784
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 346 94 5 241900 122 14 3880566784
NTFS, blocksize=4096, 1986 GB / 1850 GiB
block_group_nr 25
recover_EXT2: "e2fsck -b 819200 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=25/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 27
recover_EXT2: "e2fsck -b 884736 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=27/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 49
recover_EXT2: "e2fsck -b 1605632 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=49/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
BAD_RS LBA=1585438838 4638216
check_part_i386 failed for partition type 07
HPFS - NTFS 98689 0 54 198645 215 45 1605806677
block_group_nr 81
recover_EXT2: "e2fsck -b 2654208 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=81/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 125
recover_EXT2: "e2fsck -b 4096000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=125/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 243
recover_EXT2: "e2fsck -b 7962624 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=243/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 343
recover_EXT2: "e2fsck -b 11239424 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=343/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 625
recover_EXT2: "e2fsck -b 20480000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=625/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 729
recover_EXT2: "e2fsck -b 23887872 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=729/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
BAD_RS LBA=4124806205 8771767
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 0E
FAT16 LBA 256757 79 24 282356 194 7 411255164
This partition ends after the disk limits. (start=4124806205, size=411255164, end=4536061368, disk end=3907029168)
NTFS at 25179/127/37
filesystem size 4194304
sectors_per_cluster 8
mft_lcn 262144
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 25179 127 37 25440 148 52 4194304
NTFS, blocksize=4096, 2147 MB / 2048 MiB
block_group_nr 2187
recover_EXT2: "e2fsck -b 71663616 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=2187/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 2401
recover_EXT2: "e2fsck -b 78675968 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=2401/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 3125
recover_EXT2: "e2fsck -b 102400000 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3125/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
block_group_nr 6561
recover_EXT2: "e2fsck -b 214990848 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=6561/14776, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 0 32 33 241124 28 56 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1983 GB / 1847 GiB
recover_EXT2: s_block_group_nr=0/14776, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 120417 109 13 361541 105 36 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Recover, 1983 GB / 1847 GiB
This partition ends after the disk limits. (start=1934505984, size=3873656832, end=5808162815, disk end=3907029168)
recover_EXT2: s_block_group_nr=0/14776, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 484207104
recover_EXT2: part_size 3873656832
Linux 120417 206 46 361541 203 6 3873656832
ext4 blocksize=4096 Large_file Sparse_SB Recover, 1983 GB / 1847 GiB
This partition ends after the disk limits. (start=1934512128, size=3873656832, end=5808168959, disk end=3907029168)
Linux Swap 241124 61 26 243201 77 60 33368048
SWAP2 version 1, pagesize=4096, 17 GB / 15 GiB
NTFS at 241893/249/20
filesystem size 3880462336
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 346 94 5 241893 249 20 3880462336
NTFS found using backup sector, blocksize=4096, 1986 GB / 1850 GiB
NTFS at 241900/122/14
filesystem size 3880566784
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 346 94 5 241900 122 14 3880566784
NTFS found using backup sector, blocksize=4096, 1986 GB / 1850 GiB
NTFS at 241900/122/15
filesystem size 20895920
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 241900 122 15 243201 48 31 20895920
NTFS, blocksize=4096, 10698 MB / 10203 MiB
NTFS at 243201/78/13
filesystem size
So now i'm stuck on the partition list and i don't dare to do anything that could make things worse, ... maybe the linux partition is overlapping with the windows partition and if i delete the linux partition that could fix everything? or maybe i juste have to fix the partition table with the advance tool of testdrive?(because of the invalid partition table message when i boot my hdd )Or should i just write one of the three partition that contains my windows file? but wich one then?
I don't have any external disk to save my disk but i could possibly buy one if it's not too expensive. Indeed i'm a student and i have a lot of important work in my windows partition so i really need your help. I hope you have read everything and i'm sorry if it was too long.
Thank you for your answers.