dd to clone a cdrom [SOLVED]

Forum rules
Before you post please read how to get help
banjoman
Level 3
Level 3
Posts: 155
Joined: Thu Nov 11, 2010 4:46 am

dd to clone a cdrom [SOLVED]

Postby banjoman » 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.

User avatar
Habitual
Level 12
Level 12
Posts: 4097
Joined: Sun Nov 21, 2010 8:31 pm
Location: Youngstown, Ohio

Re: dd to clone a cdrom

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

Use the /dev/device instead...

Code: Select all

dd if=/dev/cdrom of=/home/steve/filename.iso
Windows assumes you're an idiot.
Linux demands proof of it.

banjoman
Level 3
Level 3
Posts: 155
Joined: Thu Nov 11, 2010 4:46 am

Re: dd to clone a cdrom

Postby banjoman » 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...


Return to “Scripts & Bash”

Who is online

Users browsing this forum: No registered users and 1 guest