Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-26-2004, 02:39 PM   #1
LQ Newbie
Registered: Mar 2004
Location: Portland, OR
Posts: 9

Rep: Reputation: 0
Need help copying an image to/from CF cards

I need to setup a method to copy an image of a Linux install composed of 3 partitions from/to a USB CompactFlash card reader. Ideally, this would be possible from within Windows (or cygwin), but it would also be alright if it could be done from a bootable disk (E.G. G4U). I know this isn't a Windows forum by any means, but the utilities I'm using are *NIX-based (dd and G4U). Plus, I'm a Linux guy and I trust this crowd a lot more.

Using dd for Windows, I can successfully rip the image using: dd if=\\?\Device\Harddisk2\Partition0 of=c:\cf.img. However, when I try to reverse this and write back to the device using: dd if=c:\cf.img of=\\?\Device\Harddisk2\Partition0, I get the error "Error writing to file: 6 The handle is invalid. 1+0 records in, 0+0 records out.

The error is persistent whether or not the destination CF card is partitioned. I have also tried writing to the volume, which actually writes but doesn't actually work. (Can't boot, no valid partitions are created). I
also tried writing to Partition1 instead of zero, even though I am fairly certain it's Partition0 I should be writing too, but that gives the same error writing to file as Partition0.

I've also looked into using G4U. I would like to be able to rip an image and write it to something like /mnt/win/cf.img then write it back to the CF card. I can do a direct CF-to-CF copy just fine if I have two CF card readers, but I won't for long and need to be able to do this with just one. I don't think what I'm asking is possible with G4U since it's really only intended for FTP-based imaging, but it's worth an ask.

Anyhow, any help using either dd or G4U would be greatly appreciated. I'm also open to any suggestions for other open source projects that may work. Thanks!
Old 04-06-2004, 11:56 AM   #2
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Have you tried it with any other linux floppy/cd?
I would make a try with something like LNX-BBC,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying image using acroread from pdf file xptools Linux - General 9 04-15-2009 05:27 AM
Firewire pci cards/pcmcia cards bunyan Red Hat 0 03-03-2005 05:45 PM
Partition Magic / Mirroring / Image / Copying a Whole Drive? ch4os Linux - Newbie 4 01-06-2005 06:39 PM
Bash script to do copying and ISO image creating, etc. satimis Programming 2 09-19-2004 10:47 PM
formatting multimedia cards, flash cards bigearsbilly Linux - Hardware 0 03-10-2004 09:52 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration