/usr/bin/dd *.iso to USB stick?

Jim Garrison jhg@jhmg.net
Fri Sep 22 23:10:05 GMT 2023


On 9/21/2023 22:40, Martin Wege via Cygwin wrote:
> Hello,
> 
> How can I use /usr/bin/dd to copy a *.iso image (Debian netinstall
> boot image) to a USB stick as raw bytes?

I do this frequently.  You must start the Cygwin shell with admin
rights, then use Windows Disk Management mmc app to identify
the disk and convert from Disk n to /dev/sd[x], where Disk 0 is
/dev/sda, Disk 1 is /dev/sdb, etc.

BIG CAVEAT: You're in admin mode.  Use the wrong device name and you
will trash target device if it's writable, including your Windows boot
drive.  And no, the boot drive is not always Disk0 /dev/sda.

I always use hexedit to examine enough of the target device to assure
myself that it's the correct target.

-- 
Jim Garrison
jhg@acm.org



More information about the Cygwin mailing list