Recovering Deleted Files

From Open Source Ecology
Jump to: navigation, search

In command line:

mount

/dev/mmcblk0p1 on /media/marcin/EOS_DIGITAL2 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) marcin@Precision-M6500:~$

(It is FAT. So check out https://linuxconfig.org/data-recovery-of-deleted-files-from-the-fat-filesystem)


marcin@Precision-M6500:~$ pwd /home/marcin marcin@Precision-M6500:~$ dd if=/dev/mmcblk0p1 of=sdcard.dd dd: failed to open ‘/dev/mmcblk0p1’: Permission denied marcin@Precision-M6500:~$ sudo su [sudo] password for marcin: root@Precision-M6500:/home/marcin# dd if=/dev/mmcblk0p1 of=sdcard.dd 31266816+0 records in 31266816+0 records out 16008609792 bytes (16 GB) copied, 2196.68 s, 7.3 MB/s root@Precision-M6500:/home/marcin# ls -l sdcard.dd -rw-rw-r-- 1 marcin marcin 16008609792 Jan 17 18:59 sdcard.dd root@Precision-M6500:/home/marcin#