Ok - that sounds good. I was of course aware that the (obscure?)
parameters where not needed I just wanted to show you exactly what I did
for reproducability.
I did in fact I eject the drive when trying "cp". Thank you for
explaining that there is a difference between "unmount" and "eject".
I may (but not sure) have forgotten to eject when i used "dd". I though
I did eject it, but in case I didn't: does the process work if one
forgets to unmount? Because if it doesn't - then logically I must have
ejected it, in which case there is a difference between "dd" and "cp"?
In any case, I would recommend adding to the web page "DebianInstaller
CreateUSBMedia" a warning or just additional text saying that one should
NOT eject only unmount - as some people (like me 30 minutes ago) do not
know the difference.
/Thomas
On 10/17/25 13:17, Pascal Hambourg wrote:
On 17/10/2025 at 12:00, Thomas Kragh wrote:
sudo cp debian.iso "$TARGET_DEVICE"
cp: cannot create regular file '/dev/sdb': No medium found
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.
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.
VARNING: Klicka inte på länkar och öppna inte bilagor om du inte
känner igen avsändaren och vet att innehållet är säkert.
CAUTION: Do not click on links or open attachments unless you
recognise the sender and know the content is safe.
När du har kontakt med oss på Uppsala universitet med e-post så innebär det att
vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du
läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/
E-mailing Uppsala University means that we will process your personal data. For
more information on how this is performed, please read here:
http://www.uu.se/en/about-uu/data-protection-policy