bug#79752: Feature suggestion: detect partition tables with sector-size mismatch

Samuel Plavec <[email protected]> Sat, 1 Nov 2025 22:06:09 +0100
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <CAG9yr8JFCgW2zMcrQz_xEpF5i=u9AwJF+Y8p0AHfyNgUPHm=yQ@mail.gmail.com>
Package: parted
Severity: wishlist

Hello,

I would like to suggest a new feature. In the case parted couldn't
recognize the partition table on a disk, I think it would be helpful
if parted attempted to check whether the partition table didn't assume
a sector size different from the sector size that the disk currently
uses.

The context is that I recently ran into an issue when I accidentally
partitioned a disk with a logical sector size of 4096 bytes, and then
tried to read it with a logical sector size of 512 bytes. (This was
because of a USB--SATA adapter acting strangely. Physical sector size
of the disk is 4096 bytes.) When I tried diagnosing this issue using
parted, it didn't recognize the partition table, which created a false
impression that the data could have become corrupted.

(This issue is not particularly uncommon; when I finally learned what
was its cause, I could find several posts online describing exactly
the same problem.)

Thank you.

Best regards,
Samuel Plavec