cgsecurity / testdisk

TestDisk & PhotoRec
https://www.cgsecurity.org/
GNU General Public License v2.0
1.58k stars 195 forks source link

CHS warnings should not appear if > 8GB #11

Closed HaleTom closed 8 years ago

HaleTom commented 8 years ago

I asked on askubuntu.com about warnings of geometry mismatches, and apparently these warnings don't make sense for partitions over 8GB in size.

I tried to build to see if the warnings still appear on the latest version, but I got stuck at Issue #10.

cgsecurity commented 8 years ago

I disagree. Old partitioning tools aligns partition to cylinder boundary. To recover lost partitions, a "correct" CHS geometry is needed. I will close this issue but you can reopen it and add a comment if necessary.

burianvlastimil commented 6 years ago

Hello, today I used ddrescue to rescue one customer's drives, newer model WD 1TB HDD, many thanks for your work!

In Deep Analysis I get a ton of these Warnings when opening the disk image similar to those described by HaleTom:

An excerpt follows:

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk customer.hddimage.ddrescue - 1000 GB / 931 GiB - CHS 121602 255 63
Analyse cylinder 33588/121601: 27%

Warning: number of sectors per track mismatches 18 (FAT) != 63 (HD)
  MS Data                111728512  111731391       2880 [EFISECTOR]
Warning: number of heads/cylinder mismatches 2 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 18 (FAT) != 63 (HD)
  MS Data                121808464  121811343       2880 [EFISECTOR]
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                126806067  126812240       6174
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                126812240  126818413       6174 [Boot]
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                150319139  150325312       6174
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                150325312  150331485       6174 [Boot]
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                153092627  153098800       6174
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                153098800  153104973       6174 [Boot]
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                157120947  157127120       6174
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                157127120  157133293       6174 [Boot]
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                165788235  165794408       6174
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                165794408  165800581       6174 [Boot]
Warning: number of heads/cylinder mismatches 2 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 18 (FAT) != 63 (HD)
  MS Data                174763744  174766623       2880 [EFISECTOR]
Warning: number of heads/cylinder mismatches 2 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 18 (FAT) != 63 (HD)
  MS Data                174766624  174769503       2880 [EFISECTOR]
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                174875283  174881456       6174
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
Warning: number of sectors per track mismatches 2 (NTFS) != 63 (HD)
  MS Data                174881456  174887629       6174 [Boot]
  MS Data                379507502  395025901   15518400
  MS Data                379507504  395025903   15518400
check_FAT: Bad number of sectors per cluster
  MS Data                450424454  465942853   15518400
  MS Data                450424456  465942855   15518400

I am confused right now, as to if I can simply ignore those now after what you said.

OS: GNU/Linux Debian 9 (Stretch).

Could you please elaborate? Thank you in advance!