On 17/10/2025 at 12:00, Thomas Kragh wrote:
As others pointed out, cp works as well as dd and is simpler, no need for obscure parameters. "No medium" found may indicate that /dev/sdb is an empty drive or card reader, a defective drive or an "ejected" media.sudo cp debian.iso "$TARGET_DEVICE" cp: cannot create regular file '/dev/sdb': No medium found
The target device must be unmounted but not ejected, as this disable it and makes it unusable for read/write operation. Unfortunately, some file managers do not have a separate "unmount" option, only "eject" which performs both unmount and eject.