delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-3.0 required=5.0 tests=BAYES_00,J_CHICKENPOX_25,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Hannu Koivisto <azure AT iki DOT fi> |
Subject: | Raw device access to an SD card |
Date: | Thu, 05 Mar 2009 17:49:59 +0200 |
Lines: | 21 |
Message-ID: | <83zlg0otp4.fsf@kalahari.s2.org> |
Mime-Version: | 1.0 |
User-Agent: | Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |