public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jim Garrison <jhg@jhmg.net>
To: cygwin@cygwin.com
Subject: Re: /usr/bin/dd *.iso to USB stick?
Date: Fri, 22 Sep 2023 16:10:05 -0700	[thread overview]
Message-ID: <c8593576-f08e-41fb-ad2e-abf9682f5b90@jhmg.net> (raw)
In-Reply-To: <CANH4o6O5eijgsjD_VsRDtZkRDZARONzfyfN2NdiKq3qkNeBv=Q@mail.gmail.com>

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


  reply	other threads:[~2023-09-22 23:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-22  5:40 Martin Wege
2023-09-22 23:10 ` Jim Garrison [this message]
2023-09-23  8:21   ` Christian Franke
2023-09-25 14:05   ` [EXTERNAL] " Lavrentiev, Anton (NIH/NLM/NCBI) [C]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c8593576-f08e-41fb-ad2e-abf9682f5b90@jhmg.net \
    --to=jhg@jhmg.net \
    --cc=cygwin@cygwin.com \
    --cc=jhg@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).