This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Raw device access to an SD card


Greetings,

The goal is to create a bootable Linux installation on an SD card
by writing an existing image using dd in Cygwin.  The card is
inserted to an SD card slot of a laptop and apparently appears as
\\.\physicaldrive2 to the OS.

Now, "dd if=\\\\.\\physicaldrive2" reads something (hopefully from
that card, hard to say for sure) but an attempt to write with "dd
if=image of=\\\\.\\physicaldrive2" fails with "Invalid argument"
error.  Should this work?  Is there something that one must do
first?  I tried "mount -f -b //./physicaldrive2 /dev/foo" as
suggested by someone but according to the Cygwin user's guide that
is deprecated and besides, /dev/foo behaved just like
\\\\.\\physicaldrive2 directly.  FWIW, I tried to find if the card
device gets mapped to some /dev/sd? but that didn't seem to be the
case.  Only /dev/sda was available (hard drive).  Is it possible to
list that kind of mappings somehow?

-- 
Hannu


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]