this is the way i do it aswell.

i have an ide type interface for my flash cards and i simply plug in a card 
(doesnt seem to mind to much about hotplugging it) and then type :

sudo dd if=./<insert image name here> of=/dev/hdc

hdc is the flash ide converter type thing.

regards
Justin

On Tuesday 14 May 2002 10:42 pm, Hugh Blemings wrote:
> Hi Hussain,
>
> On Tue, 14 May 2002 14:23:49 -0400
>
> "Hussain, Omar [LBRT/LNA]" <[EMAIL PROTECTED]> wrote:
> > Anyone know of a device that will do a low level copy of a flash card ?
> > I set up linux on a 128meg compact flash card, but I can't duplicate it
> > very easily. I bought an IDE to compact flash adaptor, but that is
> > useless, it reports different cylinders for different cards of the same
> > size. jeesh...
>
> I'd defer to others more experienced than I but I don't think the
> different geometries is an issue and is probably a reflection of what the
> card is saying.  Most IDE to CF adapters are completely passive, merely
> putting the CF card into IDE rather than memory mode.
>
> If you can rig the IDE to CF adapter up on a system that has a hard disk
> to act as temporary storage I would assume something like;
>
> (Plug in original CF card, I'm assuming it's /dev/hde)
>
> # dd if=/dev/hde of=cf-image.raw
>
> (unplug CF card)
>
> # dd of=cf-image.raw of=/dev/hde
>
> Will do the trick.  Note that you're using /dev/hde rather than /dev/hde1
> as you're taking the entire device, not just a partition
>
> You may need to shutdown to swap cards depending on how the IDE to CF
> adapter works.  Also pay close attention to what you specify as the input
> device (if) and output device (of) - if you get it wrong you'll end up
> wiping the CF card, your hard disk or something else!
>
> Hope this helps - certainly seems to work quite OK with conventional hard
> disks, and I'm pretty sure I've did it with CF devices a few years back.
>
> Cheers,
> Hugh

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to