Deeper search returns several "No partition" finds

How to use TestDisk to recover lost partition
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
MMacD
Posts: 2
Joined: 09 Dec 2014, 23:41

Deeper search returns several "No partition" finds

#1 Post by MMacD »

What is it trying to tell me?

It found the FreeBSD partition immediately. That's a 60GB part, followed by an NTFS part using the rest of the disk. 60GB is 6% of the 1TB total, so I'd expect it to find the missing NTFS part around the 7% mark.

I took Analyse's advice and changed the head count from 255 to 16, though I have a vague recollection that FreeBSD also thinks those discs (WD1003FALS) have 255 heads. When I ran the deeper search with 16 heads, it had reported about 5 instances of "no partition" by the time it had scanned 5%. I thought that looked strange, so I stopped, reverted the heads count to 255, and restarted. It didn't find anything by 8%, so I stopped again and went back to 16 heads.
Last edited by MMacD on 10 Dec 2014, 19:04, edited 1 time in total.

MMacD
Posts: 2
Joined: 09 Dec 2014, 23:41

Re: Deeper search returns several "No partition" finds

#2 Post by MMacD »

Okay, more, and more coherent (I was tired last evening), information.

It's a Caviar Black WD1003FALS-00U9B0 with 3 platters and 6 heads, 1TB capacity nominal.
It's a data disc, not a boot disc. The only boot disc is the 320GB one.
It had a 60GB (approximate) FreeBSD partition followed by a FAT spacer partition, and then an NTFS partition taking up the rest of the disc.

I ran TestDisk 6.14 twice, once for 255 heads and then, per its suggestion, for 16 heads
TestDisk seems to see the FreeBSD partition, but couldn't find the NTFS partition either time.
I then tried to run it for the 6 physical heads, but it complained "Warning: Bad ending head (CHS and LBA don't match)", so I didn't continue.

Although the log doesn't seem to show them, I got 1 "no partition" report when running with 255 nominal heads, and many (they scrolled off, but I thought they'd be logged so I didn't keep count) "no partition" reports with 16 nominal heads. I don't know what they mean.

Here's the log (the complaints about Z: are irrelevant: it's the DVD/CD drive):


Wed Dec 10 05:40:55 2014
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows XP SP3
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)=320072933376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdc)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=320072933376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=160031015424
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=935773655040
filewin32_getfilesize(\\.\Z:) GetFileSize err Incorrect function.


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


Warning: can't get size for \\.\Z:
Hard disk list
Disk /dev/sda - 320 GB / 298 GiB - CHS 38913 255 63, sector size=512 - WDC WD3200BEKX-00B7WT0, FW:01.01A01
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD1003FBYX-01Y7B1, FW:01.01V02
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD1001FALS-00U9B0, FW:05.00K05

Partition table type (auto): Intel
Disk /dev/sdc - 1000 GB / 931 GiB - WDC WD1001FALS-00U9B0
Partition table type: Intel

Analyse Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121601 255 63
Geometry from i386 MBR: head=16 sector=63

BSD offset 63, nbr_part 8, CHS=(1938021,16,63) CRC Ok
BSD b: swap, offset 63, size 33554432 0/1/1 -> 2088/171/2
BSD d: 4.2BSD fast filesystem, offset 33554495, size 1919970673 2088/171/3 -> 121601/80/63
get_geometry_from_list_part_aux head=255 nbr=1
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
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=1
Current partition structure:
1 * FreeBSD 0 1 1 121601 80 63 1953525105

search_part()
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121601 255 63

BSD offset 63, nbr_part 8, CHS=(1938021,16,63) CRC Ok
BSD b: swap, offset 63, size 33554432 0/1/1 -> 2088/171/2
BSD d: 4.2BSD fast filesystem, offset 33554495, size 1919970673 2088/171/3 -> 121601/80/63
FreeBSD 0 1 1 121601 80 62 1953525104
file_pread(6,15,buffer,1953525168(121601/81/1)) ReadFile The drive cannot find the sector requested.


file_pread(6,1,buffer,1953525168(121601/81/1)) ReadFile The drive cannot find the sector requested.


file_pread(6,8,buffer,1953525175(121601/81/8)) lseek err Invalid argument
file_pread(6,3,buffer,1953525183(121601/81/16)) lseek err Invalid argument
file_pread(6,3,buffer,1953525230(121601/81/63)) lseek err Invalid argument
file_pread(6,8,buffer,1953525246(121601/82/16)) lseek err Invalid argument
file_pread(6,11,buffer,1953525293(121601/82/63)) lseek err Invalid argument
file_pread(6,2,buffer,1953527215(121601/113/32)) lseek err Invalid argument
file_pread(6,15,buffer,1953525169(121601/81/2)) lseek err Invalid argument
file_pread(6,1,buffer,1953525186(121601/81/19)) lseek err Invalid argument
file_pread(6,1,buffer,1953525233(121601/82/3)) lseek err Invalid argument
file_pread(6,1,buffer,1953525254(121601/82/24)) lseek err Invalid argument
file_pread(6,1,buffer,1953525304(121601/83/11)) lseek err Invalid argument
file_pread(6,1,buffer,1953527217(121601/113/34)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=1
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
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=1
Warning: the current number of heads per cylinder is 255 but the correct value may be 16.

Results
* FreeBSD 0 1 1 121601 254 63 1953536067

interface_write()
1 * FreeBSD 0 1 1 121601 254 63 1953536067



Wed Dec 10 08:16:30 2014
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows XP SP3
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)=320072933376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdc)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=320072933376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=160031015424
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=935773655040
filewin32_getfilesize(\\.\Z:) GetFileSize err Incorrect function.


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


Warning: can't get size for \\.\Z:
Hard disk list
Disk /dev/sda - 320 GB / 298 GiB - CHS 38913 255 63, sector size=512 - WDC WD3200BEKX-00B7WT0, FW:01.01A01
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD1003FBYX-01Y7B1, FW:01.01V02
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD1001FALS-00U9B0, FW:05.00K05

Partition table type (auto): Intel
Disk /dev/sdc - 1000 GB / 931 GiB - WDC WD1001FALS-00U9B0
Partition table type: Intel
New geometry
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 1938021 16 63 sector_size=512

Analyse Disk /dev/sdc - 1000 GB / 931 GiB - CHS 1938021 16 63
Geometry from i386 MBR: head=16 sector=63

BSD offset 63, nbr_part 8, CHS=(1938021,16,63) CRC Ok
BSD b: swap, offset 63, size 33554432 0/1/1 -> 33288/3/2
BSD d: 4.2BSD fast filesystem, offset 33554495, size 1919970673 33288/3/3 -> 1938020/15/63
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
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=1
Current partition structure:
1 * FreeBSD 0 1 1 1938020 15 63 1953525105

search_part()
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 1938021 16 63

BSD offset 63, nbr_part 8, CHS=(1938021,16,63) CRC Ok
BSD b: swap, offset 63, size 33554432 0/1/1 -> 33288/3/2
BSD d: 4.2BSD fast filesystem, offset 33554495, size 1919970673 33288/3/3 -> 1938020/15/63
FreeBSD 0 1 1 1938020 15 62 1953525104
file_pread(6,1,buffer,1953525168(1938021/0/1)) ReadFile The drive cannot find the sector requested.


file_pread(6,14,buffer,1953525169(1938021/0/2)) lseek err Invalid argument
file_pread(6,3,buffer,1953525183(1938021/0/16)) lseek err Invalid argument
file_pread(6,3,buffer,1953525230(1938021/0/63)) lseek err Invalid argument
file_pread(6,8,buffer,1953525246(1938021/1/16)) lseek err Invalid argument
file_pread(6,11,buffer,1953525293(1938021/1/63)) lseek err Invalid argument
file_pread(6,2,buffer,1953527215(1938023/0/32)) lseek err Invalid argument
file_pread(6,1,buffer,1953525186(1938021/0/19)) lseek err Invalid argument
file_pread(6,1,buffer,1953525233(1938021/1/3)) lseek err Invalid argument
file_pread(6,1,buffer,1953525254(1938021/1/24)) lseek err Invalid argument
file_pread(6,1,buffer,1953525304(1938021/2/11)) lseek err Invalid argument
file_pread(6,1,buffer,1953527217(1938023/0/34)) lseek err Invalid argument
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
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=1

Results
* FreeBSD 0 1 1 1938020 15 63 1953525105

interface_write()
1 * FreeBSD 0 1 1 1938020 15 63 1953525105



Wed Dec 10 11:34:18 2014
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows XP SP3
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)=320072933376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdc)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=320072933376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=160031015424
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=935773655040
filewin32_getfilesize(\\.\Z:) GetFileSize err Incorrect function.


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


Warning: can't get size for \\.\Z:
Hard disk list
Disk /dev/sda - 320 GB / 298 GiB - CHS 38913 255 63, sector size=512 - WDC WD3200BEKX-00B7WT0, FW:01.01A01
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD1003FBYX-01Y7B1, FW:01.01V02
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD1001FALS-00U9B0, FW:05.00K05

Partition table type (auto): Intel
Disk /dev/sdc - 1000 GB / 931 GiB - WDC WD1001FALS-00U9B0
Partition table type: Intel
New geometry
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 5168056 6 63 sector_size=512

Analyse Disk /dev/sdc - 1000 GB / 931 GiB - CHS 5168056 6 63
Geometry from i386 MBR: head=16 sector=63

BSD offset 63, nbr_part 8, CHS=(1938021,16,63) CRC Ok
BSD b: swap, offset 63, size 33554432 0/1/1 -> 88768/3/2
BSD d: 4.2BSD fast filesystem, offset 33554495, size 1919970673 88768/3/3 -> 5168055/5/63
get_geometry_from_list_part_aux head=6 nbr=2
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
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=1
Current partition structure:
1 * FreeBSD 0 1 1 5168055 5 63 1953525105

Warning: Bad ending head (CHS and LBA don't match)
------------------------
I stopped here.

Locked