What is a partition?
A physical storage device exposes addressable sectors. A partition table describes how some of that address space is divided into logical regions. A computer may see one physical drive containing several partitions, each potentially formatted with a different file system. If the partition table is damaged or overwritten, the underlying data may still exist even though the operating system no longer displays the expected volume.
What is a file system?
A file system defines how files, directories, names, timestamps, permissions and allocation information are represented on a volume. It tracks which storage blocks belong to which files and how directory entries connect to file metadata. File recovery often depends on reconstructing this structure or locating file content when some metadata has been lost.
Common file systems
| File system | Common environments | Recovery considerations |
|---|---|---|
| NTFS | Windows internal and external volumes | MFT records, attributes, allocation metadata, journals and volume boot structures. |
| FAT32 | Removable media and legacy devices | FAT chains, directory entries, cluster allocation and filename limitations. |
| exFAT | SDXC cards and removable storage | Allocation bitmap, FAT structures, directory entries and device-specific formatting. |
| APFS | Modern Apple storage | Containers, volumes, snapshots, copy-on-write metadata and encryption. |
| HFS+ | Older Mac volumes | Catalog structures, allocation files, extents and journal metadata. |
| ext4 | Many Linux systems and NAS devices | Superblocks, block groups, inode tables, extents and journal replay. |
| XFS | Linux servers and storage systems | Allocation groups, B-trees, metadata logs and filesystem geometry. |
Logical data-loss scenarios
- Accidental deletion of files or folders.
- Quick formatting or accidental reformatting.
- Partition table deletion or incorrect partition changes.
- File-system metadata corruption after power loss or unsafe removal.
- Operating-system reinstall or volume resizing.
- Damaged directory structures or inconsistent allocation metadata.
File-system repair is not the same as data recovery
Operating-system repair tools aim to make a volume consistent and mountable. They may modify metadata and can discard entries they consider invalid. If the priority is recovering the original data, making changes to the source before imaging or preserving it can reduce options. The correct approach depends on the device's stability, the file system and the type of corruption.
File carving: when metadata is missing
File carving searches for known file signatures or patterns rather than relying entirely on directory metadata. It can recover some content when file-system structures are damaged, but it may lose original names, folder paths and timestamps. Fragmented files can be especially difficult because a signature alone may not identify every extent belonging to the file.
Why the storage type matters
On a conventional HDD, deleted data may remain in magnetic sectors until overwritten. On SSDs and some flash devices, TRIM, garbage collection and controller behaviour can change the recovery outlook. Encryption, snapshots and copy-on-write features can also affect what is available. There is no single recovery method for every file system or device.
Safe steps after deletion or formatting
- Stop writing new data to the affected volume.
- Do not install recovery software on the same source device.
- Do not save recovered files back to the affected volume.
- Record the file system, operating system and actions already taken.
- For important data, preserve an image before attempting analysis where feasible.
Further reading
About this guide: General educational information from SpyClue Data Recovery. Technical procedures are model-specific and must be assessed against the actual device. This article is not a substitute for a diagnosis.