I'm a programmer and currently trying to restore some accidentally deleted data from an SD card formatted with FAT32 LBA.
In the "Undelete" screen of the TestDisk 7.1 terminal application on Linux, I can see the missing directories listed in red colour as:
Code: Select all
drwxr-xr-x 0 0 0 10-Jul-2023 10:57 FARO_LS04927_2616.fls
drwxr-xr-x 0 0 0 10-Jul-2023 10:57 FARO_LS04927_2617.fls
However, it does something unexpected:
In the store directory I selected, it creates dirs named after the missing directory (e.g. "FARO_LS04927_2616.fls"), but then puts into each such named directory the entire current root-level contents of the SD card's file system.
This makes no sense to me; I would expect that either it puts restored files into those directories, or nothing, if nothing could be restored.
Am I missing something / not using TestDisk correctly?
Thanks!