I was trying to burn an iso image to a DVD with the command:
sudo dd if=/path/to/iso.iso of=/dev/sdb bs=1024k status=progress
However, I ended up overwriting about 1.4 GB on my USB drive which had important data on it before I killed the process with Ctrl+C! I had like 10 GB of data on the drive, so it's not all gone. I tried to recover the data with testdisk
, but I can't find the data. I know that PhotoRec could recover photos and videos from my USB drive, but I also had .odt
, .docx
, .pptx
and many other types of files. I also had my encrypted diary on the USB drive (with its private key).
Is there any way I could recover the data? I know that the USB drive was formatted with NTFS.
P.S. After this, I corrected the command to:
sudo dd if=/path/to/iso.iso of=/dev/sr0 bs=1024k status=progress
This command returned an error message saying the /dev/sr0
is read-only despite that the DVD was completely blank and not used before.
/dev/sr0
is a separate "problem". There should be one problem per question. (2) Your question may be closed as a duplicate of this one, becausephotorec
and similar programs are usually the best one can do at home. (3) One can straightforwardly read fromsr0
, but writing is more complicated. To burn a DVD you still need a dedicated program, e.g.cdrecord
.photorec
is only for media files, as it's purpose is to search for and recover file types based on extension and supports >100 extensions