LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2010, 02:14 AM   #1
pranks
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 0
imaging pen drive using dd


HI i want to image my pen drive using dd command
i tried

dd if=/media/disk of=/media/disk-1/images.img

where disk is my pen drive and disk-1 is my hard disk
I boot and run the pc using linux bootable cd
 
Old 06-16-2010, 02:43 AM   #2
Bubo
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
Pranks

I am not too sure what your question is, but your syntax is basically correct assuming that you are wanting to write the image file (images.img) to a second mounted device (disk-1).

Code:
dd if=/media/disk of=/media/disk-1/images.img
If I am reading your post correctly, you appear to want to copy one pen drive to another (?) which won't happen with the code you have used.

The simplest way is to create a "dd" image on your local machine then use a similar command to write the image file to the second device.

Something like:
Code:
To get the first image file:
dd if=/media/disk of=images.img bs=512 conv=noerror,sync
<this will copy the physical device at /media/disk, in blocks of 512 bytes to a file called images.img. The final part of the string basically tells dd to not stop if it finds an error (it will pad the bad sectors with zero's) and to align the blocks in both copies>

Code:
To write the copied data to the second device:
dd if=images.img of=/media/disk-1 bs=512 conv=noerror,sync
As I said, that is theory based on my perception of what you are trying to do. If I have got it wrong then by all means shout up and put me right!

Bubo
 
Old 06-16-2010, 02:48 AM   #3
Bubo
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
I forgot to say, I wrote a short blog article some time ago on the basics of using dd. The blog fell by the way side long ago but the article can still be found here
 
Old 06-17-2010, 01:37 AM   #4
pranks
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
thnx

Thnx a lot for prompt reply.
I was trying to copy pen drive data to hard disk.
Actually i was taking wrong path for pendrive .
 
  


Reply


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
Boot iso on pen drive by grub installed on pen drive jena Linux - Hardware 2 11-01-2008 09:09 AM
drive imaging tools matthewhardwick Linux - Software 2 08-12-2005 08:54 AM
Hard drive Imaging software? sohmc Linux - Software 4 05-24-2004 01:16 PM
Drive imaging witeshark General 1 01-28-2004 12:00 AM
Imaging a hard drive...is it possible nbukis Linux - General 6 04-10-2003 08:19 AM


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

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