Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-09-2012, 03:33 AM   #1
LQ Newbie
Registered: Jan 2012
Posts: 9

Rep: Reputation: Disabled
dd Command


I am currently trying to create a image file to load on a CF Card using the dd command. but for some reason it firstly created a blank image file and now it is creating no image file.

What I am trying to do is the following: I downloaded a embcop file and then also three plugins to add to this program. I placed the files of the plugins under tools of the main file, embcop, as I would like to create one image file (now firstly I do not know if this is the correct place to put the plugins). Now I have saved the file on my Desktop, with the New Folder that I would like to place it in. I typed in the following:

sudo dd if=/home/anesh/Desktop/NacBox of=/home/anesh/Desktop/NACBox.gz

Now it reads it but this is the response I get:
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000435447 s, 0.0 kB/s

meaning that it is not detecting any files and not writing any records

Then after I created this image file I must now load it onto the CF Card.

Can any one please assist me with some advise as to how to get this thing working.

Thank you so much

Last edited by LindaVermeulen; 01-09-2012 at 03:39 AM.
Old 01-09-2012, 08:11 AM   #2
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
I can't see why you need to do that. Why don't you just mount your CF card and copy the files?????

Anyway, to create an image the way to go is: create what you need in a device, and once you have it dd that device.

For instance. Create a partition in a usb memory and create the filesystem (mkfs), copy the file and the plugins where you want them to be in the usb.

Suppose your device is /dev/sdh1, and you have copied your files there, the only thing you have to do is

dd if=/dev/sdh1 of=/home/anesh/yourUSBimage.img
You will have a file in your directory containig the image.
Old 01-09-2012, 02:29 PM   #3
Registered: Mar 2008
Posts: 19,217

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
I agree that usually the tool dd is not used for a folder /home/anesh/Desktop/NacBox

Consider tar piped to compression or other file based way to backup a folder. And try to keep away from actions that both copy from a folder and write to it at the same time.

Why did you choose dd?


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
Executing shell command from JSP file with command line arg from URL orcusomega Programming 2 01-13-2012 03:38 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM
how to copy drive using dd and tee command parallely? source code of dd command mdfakkeer Linux - Software 1 02-10-2010 01:31 PM
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 02:14 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 06:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 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