dd to clone a cdrom [SOLVED]

Forum rules
Before you post please read this

dd to clone a cdrom [SOLVED]

Postby banjoman on Fri Nov 18, 2011 11:03 am

I am trying to use dd in a terminal to clone a cdrom,
Code: Select all
dd if=/media/<name of CD> of=/home/steve/<filename>.iso


however nothing is taken or written and I get;
Code: Select all
dd: reading `/media/<name of CD>': Is a directory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000314844 s, 0.0 kB/s

the name of the CD I am using is the one that is displayed in the folder media

am I using the wrong name or the wrong location for the source?
Last edited by banjoman on Tue Nov 29, 2011 12:44 pm, edited 1 time in total.
banjoman
Level 3
Level 3
 
Posts: 113
Joined: Thu Nov 11, 2010 4:46 am

Linux Mint is funded by ads and donations.
 

Re: dd to clone a cdrom

Postby Habitual on Fri Nov 18, 2011 3:28 pm

Use the /dev/device instead...
Code: Select all
dd if=/dev/cdrom of=/home/steve/filename.iso
What's a landing but a take off in reverse?
User avatar
Habitual
Level 8
Level 8
 
Posts: 2213
Joined: Sun Nov 21, 2010 8:31 pm
Location: LM17Q-Xfce

Re: dd to clone a cdrom

Postby banjoman on Fri Nov 25, 2011 7:15 am

thanks so much, I had come across the command in this format, but thought I had to replace 'cdrom' with the title of the CD I had inserted, so of course it did not work

/dev/cdrom actually refers to a file inside the /dev/ directory... what sort of file is it? a set of instructions to operate the drive? or read the contents of the disc?

job done now and an extra command under my belt...
banjoman
Level 3
Level 3
 
Posts: 113
Joined: Thu Nov 11, 2010 4:46 am


Return to Scripts & Bash

Who is online

Users browsing this forum: Mik3e and 3 guests