On 22/09/2020 20.02, David C. Rankin wrote:
On 9/21/20 2:58 AM, Carlos E. R. wrote:
dd if=/dev/sde of=card.img bs=16M status=progress
if you can't open the block device...
Well, then we'll get an error message, in the terminal or in the syslog.
dd isn't an option because it will exit on the first read error.
That's fine, we want to see what error it prints and writes to syslog, if any. Besides, using "conv=sync,noerror" it will not abort, as Bengt Gördén wrote.
I think my last option is just writing a small C source to open the block device and use a low-level 'read()` from the open file descriptor. Though if I was a betting man, I would be the read with proper validation would fail and it would behave like dd. I'm saving that for a rainy day.
No need. dd has options for almost any need. dd-rescue is not appropriate, because retry read on a card doesn't work.
I order more SD cards for the trail cam. One more cat down.... Damn foxes.
Ow. Just order the cards from a reputable site, surprises with photos are just not worth the savings. By the way: there are applications on Android to trigger the camera on movement. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)