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 01-09-2012, 04:33 AM   #1
LindaVermeulen
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Rep: Reputation: Disabled
dd Command


Hi

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 04:39 AM.
 
Old 01-09-2012, 09:11 AM   #2
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 201

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

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

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
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?
 
  


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
Executing shell command from JSP file with command line arg from URL orcusomega Programming 2 01-13-2012 04:38 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 12:21 PM
how to copy drive using dd and tee command parallely? source code of dd command mdfakkeer Linux - Software 1 02-10-2010 02: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 03:14 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 07:30 PM


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