If I am shrinking a partition containing a LUKS device+, can I verify that I didn't over-shrink the partition without opening the device and verifying the data at a higher layer in the stack?
Or, in other words, is there a way to verify / check a LUKS container's size, and whether it is intact?
I'm after something like LVM's pvck, which doesn't assume anything about the container's contents.
+ A LUKS device is one where the container (header) starts at sector 0.