TestDisk is a program that scans a disk for partitions that may have been damaged or deleted and recovers them. TestDisk can also recover corrupt partition tables or invalid boot sectors, undelete files, and backup files found in recovered partitions. TestDisk supports a wide range of filesystems.
Website 🔗️: https://www.cgsecurity.org/wiki/TestDisk
apt 📦️: testdisk