dd to clone a cdrom [SOLVED]

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
banjoman
Level 4
Level 4
Posts: 288
Joined: Thu Nov 11, 2010 4:46 am

dd to clone a cdrom [SOLVED]

Post by banjoman »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Habitual

Re: dd to clone a cdrom

Post by Habitual »

Use the /dev/device instead...

Code: Select all

dd if=/dev/cdrom of=/home/steve/filename.iso
banjoman
Level 4
Level 4
Posts: 288
Joined: Thu Nov 11, 2010 4:46 am

Re: dd to clone a cdrom

Post by banjoman »

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...
Locked

Return to “Scripts & Bash”