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 12-20-2004, 04:06 AM   #1
pippet
Member
 
Registered: May 2004
Posts: 67

Rep: Reputation: 15
dd command


Hi,
How should i use dd command to create an image file of a CD?
 
Old 12-20-2004, 04:38 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Code:
dd if=/dev/dvd of=~/image.iso
This will create an image of the /dev/dvd device named image.iso in your home directory. You may need to replace /dev/dvd with the actual device name of your DVD player.

Note that multi-layer DVDs can't easily be burnt from an image. Also, the filesystem may not necessarily be ISO9660.
 
Old 12-20-2004, 04:41 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
dd if=/dev/cdrom of=cd.img

in the simplest case. 'man dd' for details.

-- Oops. Sorry about that. I went to let the cat in between typing and posting.

Last edited by slakmagik; 12-20-2004 at 04:42 AM.
 
Old 12-21-2004, 01:23 AM   #4
pippet
Member
 
Registered: May 2004
Posts: 67

Original Poster
Rep: Reputation: 15
can i use the following command to copy an image file to usb device?
$ dd if=boot.iso of=/dev/sda1

Do i have to specify anything else? My intension is to create a bootable usb frm the image.
 
Old 12-21-2004, 04:13 AM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Mmm. As far as I know. I just got my first USB device a few days ago... well, two actually, counting today (early Christmas ) - so I don't know but, so far, my USB hard drive is just another hard drive. Not sure about other devices, though. Maybe somebody more familiar with them could say for sure.
 
Old 01-07-2005, 07:25 PM   #6
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Most USB devices I've seen come with a VFAT image, and you seem to be proposing to install an ISO9660 (.iso) filesystem. It could work; it depends on which filesystems the bootloader supports.

Just a thought: you should be warned that it's not a good idea to run formatting tools directly onto a USB flash device (as you might be tempted to do); these perform many more reads/writes than is strictly needed, which wears the device out. Use a blank file of appropriate length (dd if=/dev/zero of=fs.img) then format that file as an image, then copy the image across with dd as you propose.
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 11:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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