Testdisk seems to work but drive still says "unformatted"

How to use TestDisk to recover lost partition
Post Reply
Message
Author
SteveBondy
Posts: 2
Joined: 09 Oct 2015, 20:59

Testdisk seems to work but drive still says "unformatted"

#1 Post by SteveBondy » 10 Oct 2015, 00:36

Anyway, I am trying to recover an external drive and have a strange problem. Testdisk finds the partition and I can list files, and copy individual files to my system. Testdisk appears to write the partition table successfully, but if I disconnect the drive and reconnect it, Windows still says it's unformatted.

Here's the log:

Code: Select all

Sorry if this post gets duplicated - I posted once but it just disappeared, so I'm re-posting.

Anyway, I am trying to recover a drive and have a strange problem. Testdisk finds the partition and I can list files, and copy individual files to my system. Testdisk appears to write the partition table successfully





Fri Oct  9 17:14:24 2015
Command line: TestDisk

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.8, Cygwin 1007.34
Compilation date: 2015-04-18T13:01:55
ext2fs lib: 1.42.8, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504, curses lib: ncurses 5.9
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=60011642880
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=60011642880
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=104857600000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=790384082944
filewin32_getfilesize(\\.\E:) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\E:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=59995160064
Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512
Disk /dev/sdb - 60 GB / 55 GiB - CHS 7296 255 63, sector size=512
Drive C: - 104 GB / 97 GiB - CHS 12748 255 63, sector size=512
Drive D: - 790 GB / 736 GiB - CHS 96092 255 63, sector size=512
Drive F: - 59 GB / 55 GiB - CHS 7293 255 63, sector size=512

Partition table type (auto): Intel
Disk /dev/sdb - 60 GB / 55 GiB
Partition table type: Intel

Analyse Disk /dev/sdb - 60 GB / 55 GiB - CHS 7296 255 63
Geometry from i386 MBR: head=255 sector=63
FAT32 at 0/1/1
Info: size boot_sector 117178047, partition 117178047
FAT1 : 32-14334
FAT2 : 14335-28637
start_rootdir : 28638 root cluster : 2
Data : 28638-117178013
sectors : 117178047
cluster_size : 64
no_of_cluster : 1830459 (2 - 1830460)
fat_length 14303 calculated 14301
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=2
Current partition structure:
 1 * FAT32 LBA                0   1  1  7293 254 63  117178047 [TRAVELODGE]

search_part()
Disk /dev/sdb - 60 GB / 55 GiB - CHS 7296 255 63
FAT32 at 0/1/1
FAT1 : 32-14334
FAT2 : 14335-28637
start_rootdir : 28638 root cluster : 2
Data : 28638-117178013
sectors : 117178047
cluster_size : 64
no_of_cluster : 1830459 (2 - 1830460)
fat_length 14303 calculated 14301

FAT32 at 0/1/1
     FAT32 LBA                0   1  1  7293 254 63  117178047 [TRAVELODGE]
     FAT32, blocksize=32768, 59 GB / 55 GiB
file_pread(5,2,buffer,117211136(7296/14/15)) lseek err Invalid argument
file_pread(5,1,buffer,117211136(7296/14/15)) lseek err Invalid argument
file_pread(5,1,buffer,117210240(7296/0/1)) ReadFile Data error (cyclic redundancy check).

file_pread(5,14,buffer,117210241(7296/0/2)) lseek err Invalid argument
file_pread(5,3,buffer,117210255(7296/0/16)) lseek err Invalid argument
file_pread(5,3,buffer,117210302(7296/0/63)) lseek err Invalid argument
file_pread(5,8,buffer,117210318(7296/1/16)) lseek err Invalid argument
file_pread(5,11,buffer,117210365(7296/1/63)) lseek err Invalid argument
file_pread(5,2,buffer,117212287(7296/32/32)) lseek err Invalid argument
file_pread(5,1,buffer,117210258(7296/0/19)) lseek err Invalid argument
file_pread(5,1,buffer,117210305(7296/1/3)) lseek err Invalid argument
file_pread(5,1,buffer,117210326(7296/1/24)) lseek err Invalid argument
file_pread(5,1,buffer,117210376(7296/2/11)) lseek err Invalid argument
file_pread(5,1,buffer,117212289(7296/32/34)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=2

Results
   * FAT32 LBA                0   1  1  7293 254 63  117178047 [TRAVELODGE]
     FAT32, blocksize=32768, 59 GB / 55 GiB


dir_partition inode=0
   * FAT32 LBA                0   1  1  7293 254 63  117178047 [TRAVELODGE]
     FAT32, blocksize=32768, 59 GB / 55 GiB
FAT: cluster=2(0x2), pos=28701
FAT: cluster=38277(0x9585), pos=2478301
Directory /
 1376327 drwxr-xr-x     0      0         0 27-Jan-2015 07:53 Diabetes
  587275 drwxr-xr-x     0      0         0 24-Sep-2015 23:45 FOUND.000
X    180 drwxr-xr-x     0      0     32768 19-Sep-2015 09:00 _SIF85C7.TMP
X    180 drwxr-xr-x     0      0     32768 19-Sep-2015 08:36 214042ea-1dbe
X    161 -rwxr-xr-x     0      0     33280 26-Jul-2014 21:17 2014-07-11 to
 1311187 drwxr-xr-x     0      0         0  9-Sep-2014 07:55 Scanned
  590660 drwxr-xr-x     0      0         0 29-Oct-2014 08:48 Paul
 1379618 -rwxr-xr-x     0      0    319720 23-Feb-2015 08:30 Brochure - Camp Discovery 2015.pdf
    2064 drwxr-xr-x     0      0         0 17-Apr-2007 14:57 System Volume Information
 1376262 drwxr-xr-x     0      0         0 23-Feb-2015 10:44 Recycled
X    621 -rwxr-xr-x     0      0    137454 20-Oct-2014 08:33 _014-1~2.JPE
<snip>
X  21670 drwxr-xr-x     0      0     32768  5-Jun-2013 08:04 MSI2407b.tmp
FAT: cluster=2(0x2), pos=28701
FAT: cluster=38277(0x9585), pos=2478301
Directory /
 1376327 drwxr-xr-x     0      0         0 27-Jan-2015 07:53 Diabetes
  587275 drwxr-xr-x     0      0         0 24-Sep-2015 23:45 FOUND.000
<snip>
<snip>

interface_write()
 1 * FAT32 LBA                0   1  1  7293 254 63  117178047 [TRAVELODGE]
write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
You will have to reboot for the change to take effect.

TestDisk exited normally.

Any help or advice would be greatly appreciated.

Thanks,

Steve

Sponsored links

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

Re: Testdisk seems to work but drive still says "unformatted

#2 Post by cgrenier » 10 Oct 2015, 18:15

Run "cmd" (right click run as administrator) and type "chkdsk /f d:" (replace d: by the correct drive letter)

SteveBondy
Posts: 2
Joined: 09 Oct 2015, 20:59

Re: Testdisk seems to work but drive still says "unformatted

#3 Post by SteveBondy » 10 Oct 2015, 19:51

Ah. Thanks for that. Chkdsk wouldn't recognize it before so I hadn't thought to go back and try again. But that explains what's going on:

Code: Select all

C:\>chkdsk /f f:
The type of the file system is FAT32.
An error occurred while reading the file allocation table (FAT 1).
An error occurred while reading the file allocation table (FAT 2).
There are no readable file allocation tables (FAT).

C:\>
I guess I'll just manually copy the files. I don't think there's a way around this one is there?

Steve

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests