Page 1 of 1

SD card formatted, but need files

Posted: 04 Jan 2018, 05:40
by eiger3970
Hello,
a Nikon SD card was accidentally formatted over. (not sure if a soft or hard format).
I ran a photorec command and received error:

Code: Select all

sudo photorec /media/user/3765-3831/
PhotoRec 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Unable to open file or device /media/user/3765-3831/: Inappropriate ioctl for device
I checked the permissions which seem okay with read, write and execute access:

Code: Select all

$ ls -l /media/user/3765-3831/
total 512
drwx------ 1 user user 131072 Jan  1  2016 DCIM
drwx------ 1 user user 131072 Sep  4 10:24 NCFL
-rwx------ 1 user user    512 Jan  1  2016 NIKON001.DSC
drwx------ 1 user user 131072 Sep  4 10:32 NSM
Any suggestions please?

Re: SD card formatted, but need files

Posted: 04 Jan 2018, 09:03
by cgrenier
Run PhotoRec without argument and select the device corresponding to your SD card instead of the directory where the SD card is mounted.