Is it at typing error or did you really use “if=" twice when writing back to the device?

Sent from my BlackBerry — the most secure mobile device
From: community-noreply@qnx.com
Sent: 14 January 2022 20:00
To: ostech-core_os@community.qnx.com
Reply to: ostech-core_os@community.qnx.com
Subject: Failed dd clone of compact flash

I tried using dd to clone the compact flash
dd if=dev/sda  of=/image.img  # copy original compact flash to a file
dd if=/image.img if=dev/sda    #copy file to target compact flash

but when I use the cloned compact flash I get an error that it can't read(?) the mounted drive:
mount -tgnx6 /dev/hd0t179 /d0
  mount: can't mount /d0 (type qnx6)
  mount: possible reason: read only file system.

What am I missing when making the clone?



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post121675
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com