DD command output to file
Hi All,
Just been looking round your site for the answer to this question. I have win XP installed on 5 PCs on CF cards. I am trying to clone the cards from a card reader to a file on a usb HD. I have been able to clone the CFs to the HD as an image but not to a file. I am runing Linux from a CD and using the following : dd if=/dev/sda1 of=/dev/sdb1 I have tried dd if=/dev/sda1 of=~/backup.img to send it to my users directory. But this fails, I presume as the directory is no my CD. Any help would be great. Thanks Jon |
Try of=/home/<your logon name./backup.img. The shell does not "see" the ~ in that position because it is not at the beginning of a "word". From the GNU Bash Reference: "If a word begins with an unquoted tilde character (‘~’) ...".
|
Hi,
Thanks for that, Still a bit lost though. Any help on the command I need to create a image of a filesystem from device a to a file on device b. Where device a is a cf card, device b is a usb HD and the file name is backup.img Thanks again jon |
To write to a file, you have to have the correct pathname and the device has to be mounted.
Example: to write a file named "myfile" to partition #2 of drive #1: The device is most likely sda2. Let's mount it in /mnt (but could be anywhere you like): Code:
mkdir /mnt/abc |
Quote:
Okay. This help might be what you need for the purpose: right click and save this pdf instructions in working with windows and linux using "dd" command to back up windows files. Also to get the soul of what and how "dd" does for your work read this. Quote:
Yes you can do it, so long as you have properly mounted the devices involved in the process. Hope this helps. Good luck. |
Thanks all for your help. Ill give it a go.
I have been able to do a clone however with PING 3.0 Jon |
it would be of great help if you specify the error message you're getting so others can give you a more clear answer/workaround
|
All times are GMT -5. The time now is 08:34 AM. |