Help recovering a FAT32 disk [Learning]

How to use TestDisk to recover lost partition
Post Reply
Message
Author
tmk8532
Posts: 3
Joined: 23 Apr 2014, 17:08

Help recovering a FAT32 disk [Learning]

#1 Post by tmk8532 » 23 Apr 2014, 17:17

Hello,

I managed to sucessfully copy all my files from a old Maxtor 6 Y160L0, which had just one FAT32 partition of 160GB.
Now I'm trying to make the disk usable again, because Windows does not recognize the partition - says it needs formatting. When I try to format, it fails.
Testdisk shows me that the boot sector is damaged (first one is unreadable and backup is ok). When I try to rebuild the boot sector, testdisk says it can't write a new boot sector.
Anyway, since I was able to recover all my files, I'm trying to recover the disk as a learning process for future use, or to better diagnostic disk problems.
Can you guys help me? What infos do you need?

Thanks in advance!

Sponsored links

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

Re: Help recovering a FAT32 disk [Learning]

#2 Post by cgrenier » 27 Apr 2014, 09:28

Boot Windows in safe mode, disable your antivirus and try again to repair the FAT32 boot sector. You can run TestDisk, Advanced, Boot, BackupBS, confirm, Quit

tmk8532
Posts: 3
Joined: 23 Apr 2014, 17:08

Re: Help recovering a FAT32 disk [Learning]

#3 Post by tmk8532 » 27 Apr 2014, 22:02

Hi,

I followed your instructions, but without success.

Here is the log generated.

Thanks.

---------------------- LOG -----------------------------


Sun Apr 27 17:45:43 2014
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.7, Cygwin 1007.17
Compilation date: 2013-07-30T14:08:52
ext2fs lib: 1.42.2, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=80026361856
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=163928604672
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=80026361856
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=163928604672
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=75162576384
filewin32_getfilesize(\\.\D:) GetFileSize err Incorrect function.

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

Warning: can't get size for \\.\D:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=163913347584
Hard disk list
Disk /dev/sda - 80 GB / 74 GiB - CHS 9729 255 63, sector size=512 - ST980829A, S/N:2020202020202020202020205035314b34364a4d, FW:3.06
Disk /dev/sdb - 163 GB / 152 GiB - CHS 19929 255 63, sector size=512 - Maxtor 6 Y160L0

Partition table type (auto): Intel
Disk /dev/sdb - 163 GB / 152 GiB - Maxtor 6 Y160L0
Partition table type: Intel

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 0C
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=2
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
1 P FAT32 LBA 0 1 1 19927 254 63 320143257

fat32_boot_sector
1 P FAT32 LBA 0 1 1 19927 254 63 320143257
FAT32 at 0/1/1
Info: size boot_sector 320143257, partition 320143257
FAT1 : 32-39103
FAT2 : 39104-78175
start_rootdir : 78176 root cluster : 2
Data : 78176-320143199
sectors : 320143257
cluster_size : 64
no_of_cluster : 5001016 (2 - 5001017)
fat_length 39072 calculated 39071
file_pread(5,16,buffer,95(0/1/33)) ReadFile Data error (cyclic redundancy check).

file_pread(5,1,buffer,95(0/1/33)) ReadFile Data error (cyclic redundancy check).

comp_FAT: can't read FAT1
Boot sector
fat32_boot_sector: Can't read boot sector.
Bad

Backup boot sector
OK

First sectors (Boot code and partition information) are not identical.
Second sectors (cluster information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.
copy backup boot sector over boot sector
file_pwrite(5,3,buffer,63(0/1/1)) write err Input/output error
Write error: Can't overwrite FAT32 boot sector

fat32_boot_sector
1 P FAT32 LBA 0 1 1 19927 254 63 320143257
file_pread(5,3,buffer,63(0/1/1)) ReadFile Data error (cyclic redundancy check).

FAT32 at 0/1/1
Info: size boot_sector 320143257, partition 320143257
FAT1 : 32-39103
FAT2 : 39104-78175
start_rootdir : 78176 root cluster : 2
Data : 78176-320143199
sectors : 320143257
cluster_size : 64
no_of_cluster : 5001016 (2 - 5001017)
fat_length 39072 calculated 39071
comp_FAT: can't read FAT1
Boot sector
fat32_boot_sector: Can't read boot sector.
Bad

Backup boot sector
OK

First sectors (Boot code and partition information) are not identical.
Second sectors (cluster information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.

TestDisk exited normally.

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

Re: Help recovering a FAT32 disk [Learning]

#4 Post by cgrenier » 28 Apr 2014, 09:08

There are CRC errors, it means the disk contains bad sectors.
You can enable the SMART support for this disk, the disk may be able to use a spare sector but honestly you should ditch this disk and use a new one.

tmk8532
Posts: 3
Joined: 23 Apr 2014, 17:08

Re: Help recovering a FAT32 disk [Learning]

#5 Post by tmk8532 » 28 Apr 2014, 19:31

Hi,

Like I said, I'm trying to learn how to recover these kind of errors from disks. I honestly don't expect to make this disk usable again, but I'm trying to use it as a lab to learn.
How do I enable this SMART feature?
Just a correction from my first post: I did lost some data from the disk. I just noticed it now.

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests