Messed up partitions

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
slashdub
Posts: 2
Joined: 26 Feb 2018, 20:47

Messed up partitions

#1 Post by slashdub »

Hello

If possible I would like to really ask for a help. I don't even know how this got messed up so badly.
Basically what I wanted to do, was to move some space from logical partition 1 to primary, additional 50 GB,
so as a result I wanted to have 100GB on primary.
For this I used Paragon Partition Manager and then when the space was moved,
I decided to merge that unallocated space with primary partition C: using builtin Disk management tool.
I don't know why I didn't use Paragon for merging step too.

Before the failure, structure looked like this on 1TB drive:

Boot partition - 100MB
Primary C: drive - 50GB
Extended
1 Logical - around 200GB
2 Logical - around 225GB
3 Logical - around 225GB
4 Logical - around 226GB

Expected result:

Boot partition - 100MB
Primary C: drive - 100GB
Extended
1 Logical - around 150GB
2 Logical - around 225GB
3 Logical - around 225GB
4 Logical - around 226GB

Weird thing is, Testdisk listed me that 50GB partition where are all my system files but also after running Deeeper scan,
it showed me also that 100GB which was meant to be created. No idea what to do now.
Should I mark that 100GB partition as Primary, I was able to list files there too.
I was also able to list files and folders from Logical paritions 2,3 and 4, but to make the log file shorter I left only the
$RECYCLE.BIN and Volume Information folders. I don't know what to do now, please help.

Code: Select all

Wed Feb 21 20:45:34 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.13.0-1-686 (#1 SMP Debian 4.13.4-1 (2017-10-01)) i686
Compiler: GCC 6.3
ext2fs lib: 1.43.6, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.0
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       1953525168 sectors
/dev/sda: user_max   1953525168 sectors
/dev/sda: native_max 1953525168 sectors
/dev/sdb: LBA, HPA, LBA48 support
/dev/sdb: size       625142448 sectors
/dev/sdb: user_max   625142448 sectors
/dev/sdb: native_max 625142448 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - Hitachi HDS721010CLA332, S/N:JP2940HZ1SAJXC, FW:JP4OA3MA
Disk /dev/sdb - 320 GB / 298 GiB - CHS 38913 255 63, sector size=512 - ST3320613AS, S/N:6SZ17VVW, FW:SD2B
Disk /dev/sdc - 519 MB / 495 MiB - CHS 1022 16 62, sector size=512 - Sony Storage Media, FW:0100

Partition table type (auto): Intel
Disk /dev/sda - 1000 GB / 931 GiB - Hitachi HDS721010CLA332
Partition table type: Intel

Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
NTFS at 13/0/52
Error: size boot_sector 209713152 > partition 104857600
check_part_i386 failed for partition type 07
NTFS at 6540/54/43
NTFS at 33301/98/14
NTFS at 62673/99/19
NTFS at 92045/100/24
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
Current partition structure:
 1 * HPFS - NTFS              0  32 33    12 223 19     204800
Error: size boot_sector 209713152 > partition 104857600
Invalid NTFS or EXFAT boot
 2 P HPFS - NTFS             13   0 52  6540  22 10  104857600
 2 P HPFS - NTFS             13   0 52  6540  22 10  104857600
 3 P HPFS - NTFS           6540  54 43 33301  33 12  429914112
 4 E extended LBA         33301  33 13 121601  57 56 1418541056
 5 L HPFS - NTFS          33301  98 14 62673  66 49  471859200
   X extended             62673  98  1 92045  67 54  471859281
 6 L HPFS - NTFS          62673  99 19 92045  67 54  471859200
   X extended             92045  99  1 121601  25 24  474812502
 7 L HPFS - NTFS          92045 100 24 121601  25 24  474812416

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
NTFS at 0/32/33
filesystem size           204800
sectors_per_cluster       8
mft_lcn                   8533
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS, blocksize=4096, 104 MB / 100 MiB
Error: size boot_sector 209713152 > partition 104857600
check_part_i386 failed for partition type 07
     HPFS - NTFS             13   0 52  6540  22 10  104857600
NTFS at 6540/54/43
filesystem size           429914112
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
NTFS at 33301/98/14
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
NTFS at 62673/99/19
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
NTFS at 92045/100/24
filesystem size           474812416
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS, blocksize=4096, 243 GB / 226 GiB

Results
   * HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS, blocksize=4096, 104 MB / 100 MiB
   P HPFS - NTFS             13   0 52  6540  22 10  104857600
   P HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
   L HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
   L HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
   L HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS, blocksize=4096, 243 GB / 226 GiB

Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 204800 linear /dev/sda 2048" | dmsetup create test0
echo "0 104857600 linear /dev/sda 208896" | dmsetup create test1
echo "0 429914112 linear /dev/sda 105068544" | dmsetup create test2
echo "0 471859200 linear /dev/sda 534986752" | dmsetup create test3
echo "0 471859200 linear /dev/sda 1006848000" | dmsetup create test4
echo "0 474812416 linear /dev/sda 1478709248" | dmsetup create test5
add_ext_part_i386: max
add_ext_part_i386: max

interface_write()
 1 * HPFS - NTFS              0  32 33    12 223 19     204800
 2 P HPFS - NTFS             13   0 52  6540  22 10  104857600
 3 P HPFS - NTFS           6540  54 43 33301  33 12  429914112
 4 E extended LBA         33301  33 13 121601  57 56 1418541056
 5 L HPFS - NTFS          33301  98 14 62673  66 49  471859200
 6 L HPFS - NTFS          62673  99 19 92045  67 54  471859200
 7 L HPFS - NTFS          92045 100 24 121601  25 24  474812416

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
NTFS at 0/32/33
filesystem size           204800
sectors_per_cluster       8
mft_lcn                   8533
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS, blocksize=4096, 104 MB / 100 MiB
NTFS at 12/223/19
filesystem size           204800
sectors_per_cluster       8
mft_lcn                   8533
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS found using backup sector, blocksize=4096, 104 MB / 100 MiB
Error: size boot_sector 209713152 > partition 104857600
check_part_i386 failed for partition type 07
     HPFS - NTFS             13   0 52  6540  22 10  104857600
NTFS at 13/0/52
filesystem size           209713152
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS             13   0 52 13067  10 63  209713152
     NTFS, blocksize=4096, 107 GB / 99 GiB
NTFS at 6540/22/10
filesystem size           104857600
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS             13   0 52  6540  22 10  104857600
     NTFS found using backup sector, blocksize=4096, 53 GB / 50 GiB
NTFS at 6540/54/43
filesystem size           429914112
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
NTFS at 8656/236/28
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
     HPFS - NTFS           8656 138 29  8656 236 28       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 13067/10/63
filesystem size           209713152
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS             13   0 52 13067  10 63  209713152
     NTFS found using backup sector, blocksize=4096, 107 GB / 99 GiB
NTFS at 13067/76/2
filesystem size           325056512
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          13067  76  2 33301  33 12  325056512
     NTFS, blocksize=4096, 166 GB / 154 GiB
NTFS at 33301/33/12
filesystem size           325056512
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          13067  76  2 33301  33 12  325056512
     NTFS found using backup sector, blocksize=4096, 166 GB / 154 GiB
NTFS at 33301/65/44
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS           3929  97  9 33301  65 44  471859200
     NTFS found using backup sector, blocksize=4096, 241 GB / 225 GiB
NTFS at 33301/98/14
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
NTFS at 62673/66/49
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS found using backup sector, blocksize=4096, 241 GB / 225 GiB
NTFS at 62673/99/19
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
BAD_RS LBA=2168769249 5485165
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 06
     FAT16 >32M           134999 163 46 367845  31 25 3740662654
This partition ends after the disk limits. (start=2168769249, size=3740662654, end=5909431902, disk end=1953525168)
NTFS at 92045/67/54
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS found using backup sector, blocksize=4096, 241 GB / 225 GiB
NTFS at 92045/100/24
filesystem size           474812416
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS, blocksize=4096, 243 GB / 226 GiB
NTFS at 121601/25/24
filesystem size           474812416
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS found using backup sector, blocksize=4096, 243 GB / 226 GiB
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (1000 GB / 931 GiB) seems too small! (< 3025 GB / 2817 GiB)
The following partition can't be recovered:
     FAT16 >32M           134999 163 46 367845  31 25 3740662654

Results
   * HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS, blocksize=4096, 104 MB / 100 MiB
     HPFS - NTFS             13   0 52  6540  22 10  104857600
     NTFS found using backup sector, blocksize=4096, 53 GB / 50 GiB
     HPFS - NTFS             13   0 52  6540  22 10  104857600
     HPFS - NTFS             13   0 52 13067  10 63  209713152
     NTFS, blocksize=4096, 107 GB / 99 GiB
     HPFS - NTFS           3929  97  9 33301  65 44  471859200
     NTFS found using backup sector, blocksize=4096, 241 GB / 225 GiB
     HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
     HPFS - NTFS           8656 138 29  8656 236 28       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
     HPFS - NTFS          13067  76  2 33301  33 12  325056512
     NTFS, blocksize=4096, 166 GB / 154 GiB
   P HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
   P HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
   L HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS, blocksize=4096, 243 GB / 226 GiB

Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 204800 linear /dev/sda 2048" | dmsetup create test0
echo "0 104857600 linear /dev/sda 208896" | dmsetup create test1
echo "0 104857600 linear /dev/sda 208896" | dmsetup create test2
echo "0 209713152 linear /dev/sda 208896" | dmsetup create test3
echo "0 471859200 linear /dev/sda 63125504" | dmsetup create test4
echo "0 429914112 linear /dev/sda 105068544" | dmsetup create test5
echo "0 6174 linear /dev/sda 139067362" | dmsetup create test6
echo "0 325056512 linear /dev/sda 209926144" | dmsetup create test7
echo "0 471859200 linear /dev/sda 534986752" | dmsetup create test8
echo "0 471859200 linear /dev/sda 1006848000" | dmsetup create test9
echo "0 474812416 linear /dev/sda 1478709248" | dmsetup create test10
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   * HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS, blocksize=4096, 104 MB / 100 MiB
Directory /
       5 dr-xr-xr-x     0      0         0  1-Apr-2017 18:37 .
       5 dr-xr-xr-x     0      0         0  1-Apr-2017 18:37 ..
      35 dr-xr-xr-x     0      0         0 18-Feb-2017 17:31 Boot
      97 dr-xr-xr-x     0      0         0 26-Feb-2017 23:44 System Volume Information
      96 -r--r--r--     0      0      8192 30-May-2011 07:55 BOOTSECT.BAK
      85 -r--r--r--     0      0    383786 21-Nov-2010 03:23 bootmgr
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   P HPFS - NTFS             13   0 52  6540  22 10  104857600
     NTFS found using backup sector, blocksize=4096, 53 GB / 50 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52  6540  22 10  104857600
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52 13067  10 63  209713152
     NTFS, blocksize=4096, 107 GB / 99 GiB
Direntfs_mst_post_read_fixup_warn: magic: 0x2d086390  size: 1024   usa_ofs: 1602  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x2d086390)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x2d086390  size: 1024   usa_ofs: 1602  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x2d086390)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x2d086390  size: 1024   usa_ofs: 1602  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x2d086390)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x2d086390  size: 1024   usa_ofs: 1602  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x2d086390)
Failed to load $MFT: Input/output error
ctory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
Not an exFAT boot sector.
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

     HPFS - NTFS           3929  97  9 33301  65 44  471859200
     NTFS found using backup sector, blocksize=4096, 241 GB / 225 GiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 19:55 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 19:55 ..
   13977 dr-xr-xr-x     0      0         0  6-Oct-2012 22:23 $RECYCLE.BIN
   13986 dr-xr-xr-x     0      0         0 26-Feb-2017 23:44 System Volume Information
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52  6540  22 10  104857600
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS          13067  76  2 33301  33 12  325056512
     NTFS, blocksize=4096, 166 GB / 154 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 ..
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   L HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 19:55 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 19:55 ..
   13977 dr-xr-xr-x     0      0         0  6-Oct-2012 22:23 $RECYCLE.BIN
   13986 dr-xr-xr-x     0      0         0 26-Feb-2017 23:44 System Volume Information
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   L HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 28-Jun-2015 18:35 .
       5 dr-xr-xr-x     0      0         0 28-Jun-2015 18:35 ..
    1239 dr-xr-xr-x     0      0         0 12-Aug-2012 20:12 $RECYCLE.BIN
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   L HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 23-Feb-2017 23:48 .
       5 dr-xr-xr-x     0      0         0 23-Feb-2017 23:48 ..
      37 dr-xr-xr-x     0      0         0 12-Aug-2012 20:12 $RECYCLE.BIN
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   L HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS, blocksize=4096, 243 GB / 226 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 14-Mar-2015 22:49 .
       5 dr-xr-xr-x     0      0         0 14-Mar-2015 22:49 ..
      54 dr-xr-xr-x     0      0         0 12-Aug-2012 20:12 $RECYCLE.BIN
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52  6540  22 10  104857600
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   L HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 19:55 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 19:55 ..
   13977 dr-xr-xr-x     0      0         0  6-Oct-2012 22:23 $RECYCLE.BIN
   13986 dr-xr-xr-x     0      0         0 26-Feb-2017 23:44 System Volume Information
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   L HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 28-Jun-2015 18:35 .
       5 dr-xr-xr-x     0      0         0 28-Jun-2015 18:35 ..
    1239 dr-xr-xr-x     0      0         0 12-Aug-2012 20:12 $RECYCLE.BIN
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   L HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 23-Feb-2017 23:48 .
       5 dr-xr-xr-x     0      0         0 23-Feb-2017 23:48 ..
      37 dr-xr-xr-x     0      0         0 12-Aug-2012 20:12 $RECYCLE.BIN
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   L HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS, blocksize=4096, 243 GB / 226 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 14-Mar-2015 22:49 .
       5 dr-xr-xr-x     0      0         0 14-Mar-2015 22:49 ..
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52  6540  22 10  104857600
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   P HPFS - NTFS             13   0 52  6540  22 10  104857600
     NTFS found using backup sector, blocksize=4096, 53 GB / 50 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys


dir_partition inode=5
   P HPFS - NTFS             13   0 52  6540  22 10  104857600
     NTFS found using backup sector, blocksize=4096, 53 GB / 50 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
 1 * HPFS - NTFS              0  32 33    12 223 19     204800
 2 P HPFS - NTFS             13   0 52  6540  22 10  104857600
 3 E extended LBA          6540  22 11 121601  25 24 1848455168
 5 L HPFS - NTFS           6540  54 43 33301  33 12  429914112
 6 L HPFS - NTFS          33301  98 14 62673  66 49  471859200
 7 L HPFS - NTFS          62673  99 19 92045  67 54  471859200
 8 L HPFS - NTFS          92045 100 24 121601  25 24  474812416
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
write_all_log_i386: CHS: 6540/22/11,lba=105066496
write_all_log_i386: CHS: 33301/97/1,lba=534986676
write_all_log_i386: CHS: 62673/98/1,lba=1006847919
write_all_log_i386: CHS: 92045/99/1,lba=1478709162

Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
NTFS at 13/0/52
Error: size boot_sector 209713152 > partition 104857600
check_part_i386 failed for partition type 07
NTFS at 6540/54/43
NTFS at 33301/98/14
NTFS at 62673/99/19
NTFS at 92045/100/24
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
Current partition structure:
 1 * HPFS - NTFS              0  32 33    12 223 19     204800
Error: size boot_sector 209713152 > partition 104857600
Invalid NTFS or EXFAT boot
 2 P HPFS - NTFS             13   0 52  6540  22 10  104857600
 2 P HPFS - NTFS             13   0 52  6540  22 10  104857600
 3 P HPFS - NTFS           6540  54 43 33301  33 12  429914112
 4 E extended LBA         33301  33 13 121601  57 56 1418541056
 5 L HPFS - NTFS          33301  98 14 62673  66 49  471859200
   X extended             62673  98  1 92045  67 54  471859281
 6 L HPFS - NTFS          62673  99 19 92045  67 54  471859200
   X extended             92045  99  1 121601  25 24  474812502
 7 L HPFS - NTFS          92045 100 24 121601  25 24  474812416

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
NTFS at 0/32/33
filesystem size           204800
sectors_per_cluster       8
mft_lcn                   8533
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS, blocksize=4096, 104 MB / 100 MiB
Error: size boot_sector 209713152 > partition 104857600
check_part_i386 failed for partition type 07
     HPFS - NTFS             13   0 52  6540  22 10  104857600
NTFS at 6540/54/43
filesystem size           429914112
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
NTFS at 33301/98/14
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
NTFS at 62673/99/19
filesystem size           471859200
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
NTFS at 92045/100/24
filesystem size           474812416
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS, blocksize=4096, 243 GB / 226 GiB

Results
   * HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS, blocksize=4096, 104 MB / 100 MiB
   P HPFS - NTFS             13   0 52  6540  22 10  104857600
   P HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
   L HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
   L HPFS - NTFS          62673  99 19 92045  67 54  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
   L HPFS - NTFS          92045 100 24 121601  25 24  474812416
     NTFS, blocksize=4096, 243 GB / 226 GiB

Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 204800 linear /dev/sda 2048" | dmsetup create test0
echo "0 104857600 linear /dev/sda 208896" | dmsetup create test1
echo "0 429914112 linear /dev/sda 105068544" | dmsetup create test2
echo "0 471859200 linear /dev/sda 534986752" | dmsetup create test3
echo "0 471859200 linear /dev/sda 1006848000" | dmsetup create test4
echo "0 474812416 linear /dev/sda 1478709248" | dmsetup create test5
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
 1 * HPFS - NTFS              0  32 33    12 223 19     204800
 2 P HPFS - NTFS             13   0 52  6540  22 10  104857600
 3 E extended LBA          6540  22 11 121601  25 24 1848455168
 5 L HPFS - NTFS           6540  54 43 33301  33 12  429914112
 6 L HPFS - NTFS          33301  98 14 62673  66 49  471859200
 7 L HPFS - NTFS          62673  99 19 92045  67 54  471859200
 8 L HPFS - NTFS          92045 100 24 121601  25 24  474812416
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
write_all_log_i386: CHS: 6540/22/11,lba=105066496
write_all_log_i386: CHS: 33301/97/1,lba=534986676
write_all_log_i386: CHS: 62673/98/1,lba=1006847919
write_all_log_i386: CHS: 92045/99/1,lba=1478709162

TestDisk exited normally.


User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Messed up partitions

#2 Post by cgrenier »

The safest may be to copied to files from the 2nd partition you tried to merge.
Check if the copied files are ok (not only the filenames).
Once it's done, use TestDisk to recover the partitions, choose to recover the 50 GB partition, use BackupBS and confirm when asked.
Quit and restart your computer.
Restore the copied files on the first partition.

slashdub
Posts: 2
Joined: 26 Feb 2018, 20:47

Re: Messed up partitions

#3 Post by slashdub »

I really thank you for a response, but not sure if I understand this correctly, let's review it as I want to make sure I am doing this in correct way.
After Deep scan, it found below partitions, I have added line numbers to easy identify, what is what.

Code: Select all

1    * HPFS - NTFS              0  32 33    12 223 19     204800
2      NTFS, blocksize=4096, 104 MB / 100 MiB
3      HPFS - NTFS             13   0 52  6540  22 10  104857600
4      NTFS found using backup sector, blocksize=4096, 53 GB / 50 GiB
5      HPFS - NTFS             13   0 52  6540  22 10  104857600
6      HPFS - NTFS             13   0 52 13067  10 63  209713152
7      NTFS, blocksize=4096, 107 GB / 99 GiB
8      HPFS - NTFS           3929  97  9 33301  65 44  471859200
9      NTFS found using backup sector, blocksize=4096, 241 GB / 225 GiB
10     HPFS - NTFS           6540  54 43 33301  33 12  429914112
11     NTFS, blocksize=4096, 220 GB / 204 GiB
12     HPFS - NTFS           8656 138 29  8656 236 28       6174
13     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
14     HPFS - NTFS          13067  76  2 33301  33 12  325056512
15     NTFS, blocksize=4096, 166 GB / 154 GiB
16   P HPFS - NTFS          33301  98 14 62673  66 49  471859200
17      NTFS, blocksize=4096, 241 GB / 225 GiB
18   P HPFS - NTFS          62673  99 19 92045  67 54  471859200
19      NTFS, blocksize=4096, 241 GB / 225 GiB
20   L HPFS - NTFS          92045 100 24 121601  25 24  474812416
21     NTFS, blocksize=4096, 243 GB / 226 GiB
I was able to list files from boot partition, my main primary partition 50GB should be at line 3 I guess.
There was a note saying that I can press p to list files.
I see there is a duplicate at line 5 but with this parition, it didn't show me that with pressing p I can list files,
but anyway when I pressed it, the files are there. I guess partition at line 3 I can mark as Primary.
If we go to next partitions.
Partition at line 6, this looks like a combined/merged parition 100GB, I was able to list the same files like at line 3,
but according to below log, there are some errors with reading this partition.
Partition at line 10, I see it's a state of partition before I took away 50 GB to move it to Primary partition.
Partition at line 14, it's the same partition but after taking away 50 GB and trying to merge that 50 GB with Primary.
I guess, the best would be to recover that Primary partition in order to boot system, backup data from Logical paritions and
set the rest of partitions from scratch. The main questions is right now, which partition should I mark as Primary ?
Is that one at line 3 ? Then partitions at lines 16,18,20 will set at Logical. What about partition at line 10 and 14, which of them should I mark as Logical?
You mentioned about copying files from 2nd partition I tried to merge, could you specify which partions, which lines etc ?

Code: Select all

dir_partition inode=5
   * HPFS - NTFS              0  32 33    12 223 19     204800
     NTFS, blocksize=4096, 104 MB / 100 MiB
Directory /
       5 dr-xr-xr-x     0      0         0  1-Apr-2017 18:37 .
       5 dr-xr-xr-x     0      0         0  1-Apr-2017 18:37 ..
      35 dr-xr-xr-x     0      0         0 18-Feb-2017 17:31 Boot
      97 dr-xr-xr-x     0      0         0 26-Feb-2017 23:44 System Volume Information
      96 -r--r--r--     0      0      8192 30-May-2011 07:55 BOOTSECT.BAK
      85 -r--r--r--     0      0    383786 21-Nov-2010 03:23 bootmgr
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52  6540  22 10  104857600
     NTFS found using backup sector, blocksize=4096, 53 GB / 50 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52  6540  22 10  104857600
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52 13067  10 63  209713152
     NTFS, blocksize=4096, 107 GB / 99 GiB
Direntfs_mst_post_read_fixup_warn: magic: 0x2d086390  size: 1024   usa_ofs: 1602  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x2d086390)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x2d086390  size: 1024   usa_ofs: 1602  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x2d086390)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x2d086390  size: 1024   usa_ofs: 1602  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x2d086390)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x2d086390  size: 1024   usa_ofs: 1602  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x2d086390)
Failed to load $MFT: Input/output error
ctory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS             13   0 52 13067  10 63  209713152
     NTFS, blocksize=4096, 107 GB / 99 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 18:08 ..
      57 dr-xr-xr-x     0      0         0 29-May-2011 22:04 $Recycle.Bin
   63411 dr-xr-xr-x     0      0         0 20-Jul-2015 19:05 Fraps
   22433 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 Intel
  122730 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 Live! Cam
   62099 dr-xr-xr-x     0      0         0 25-Jul-2011 16:09 MSOCache
  103060 dr-xr-xr-x     0      0         0 27-May-2012 13:19 OpenSSL-Win64
      58 dr-xr-xr-x     0      0         0  4-Apr-2014 21:43 PerfLogs
      60 dr-xr-xr-x     0      0         0 18-Feb-2017 18:55 Program Files
     247 dr-xr-xr-x     0      0         0 22-Feb-2017 21:06 Program Files (x86)
     363 dr-xr-xr-x     0      0         0  9-Jan-2017 02:43 ProgramData
   22204 dr-xr-xr-x     0      0         0 29-May-2011 22:04 Recovery
   15972 dr-xr-xr-x     0      0         0  8-Oct-2016 18:00 System Volume Information
     460 dr-xr-xr-x     0      0         0  9-Oct-2016 16:59 Users
     624 dr-xr-xr-x     0      0         0 24-Feb-2017 00:07 Windows
   79084 dr-xr-xr-x     0      0         0 30-Aug-2014 17:19 _acestream_cache_
   70222 dr-xr-xr-x     0      0         0 21-Mar-2014 20:07 adb
  100907 dr-xr-xr-x     0      0         0 27-Nov-2016 00:27 totalcmd
   38508 -r--r--r--     0      0 3181670400 26-Feb-2017 18:08 hiberfil.sys
   58900 -r--r--r--     0      0 4242227200 25-Feb-2017 17:06 pagefile.sys
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
Not an exFAT boot sector.
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

     HPFS - NTFS           3929  97  9 33301  65 44  471859200
     NTFS found using backup sector, blocksize=4096, 241 GB / 225 GiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS           6540  54 43 33301  33 12  429914112
     NTFS, blocksize=4096, 220 GB / 204 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 19:55 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 19:55 ..
   13977 dr-xr-xr-x     0      0         0  6-Oct-2012 22:23 $RECYCLE.BIN
   13986 dr-xr-xr-x     0      0         0 26-Feb-2017 23:44 System Volume Information
ntfs_device_testntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: 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: 0: 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: 0: 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: 0: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
disk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
Not an exFAT boot sector.
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

     HPFS - NTFS           8656 138 29  8656 236 28       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
     HPFS - NTFS          13067  76  2 33301  33 12  325056512
     NTFS, blocksize=4096, 166 GB / 154 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 .
       5 dr-xr-xr-x     0      0         0 26-Feb-2017 20:08 ..
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   P HPFS - NTFS          33301  98 14 62673  66 49  471859200
     NTFS, blocksize=4096, 241 GB / 225 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 28-Jun-2015 18:35 .
       5 dr-xr-xr-x     0      0         0 28-Jun-2015 18:35 ..
    1140 dr-xr-xr-x     0      0         0 31-Jan-2015 21:52 Stuff
     846 dr-xr-xr-x     0      0         0 18-Apr-2014 23:13 Temp


User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Messed up partitions

#4 Post by cgrenier »

You tried to merge the first primary partition with the first extended partition. Backup the files from the first extended partition (200GB previously).

Locked