cf: https://www.simplified.guide/linux/disk-recover-partition-table
cf: https://ubunlog.com/en/the-best-tools-to-restore-partitions-and-files/
sudo apt install testdisk
testdisk may not be able to recover bad partition.
photorec is better. It can recover some files, however, the file names are not the original ones.