LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-18-2012, 05:41 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 2,142

Rep: Reputation: 177Reputation: 177
Make an ISO image of a cdrom?


Hi,

I would like to image a cdrom.

I have tried:

Code:
dd if=/dev/sr0 of=image-au.iso
I am a bit surprised that it does not work. Permissions and /dev/sr0 are working. How to make an iso file surely?

thanks
 
Old 08-18-2012, 06:07 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,908

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
use mkisofs, and standard burning programs (wodim, k3b) or growisofs.
 
Old 08-18-2012, 06:46 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
What exactly do you mean by "does not work"? I just test-copied a cdrom with dd and it performed just fine.

And is there anything special about the input disc you used? Could it be corrupt or have copy protection systems in place or something? Or does it happen with all discs?
 
Old 08-18-2012, 11:02 AM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,552

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
Looks like businesskid is explaining how to make an iso image from a filesystem. The dd command has always worked well for me (except when I've run out of space on the partition into which I was trying to copy the cd)
 
Old 08-18-2012, 11:07 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,399

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
The intended output file name "image-au.iso" suggests that the source is an audio CD. Those do not contain a normal filesystem and indeed cannot be read by dd. CD ripping tools are needed to extract the audio tracks.
 
Old 08-18-2012, 11:09 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
I keep .isos in ~/ISOs, for use in VirtualBox, and this has always worked for me:
Code:
dd if=/dev/sr0 of=~/ISOs/xpp.iso
For XP Pro, for example. Maybe include the path to the .iso?
 
Old 08-18-2012, 11:10 AM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,215

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
it would be helpful if you posted any relevant error messages generated by the failed attempt as well as the output of
Code:
ls -lac /dev/sr0
as well as where you are trying to store the file (naturally you must have write permissions to the folder you are trying to place the iso image)

simply saying 'it doesn't work' could be any of a potentially infinite number of possibilities, impossible to tell what the issue is without more information
 
Old 08-18-2012, 05:43 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,356

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
Could the cd be protected by some scheme?
 
Old 08-18-2012, 06:51 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
An audio CD doesn't have a file system on it. Gaps between tracks are used to seperate one audio track from the next. A data CD uses a file system and the /dev/sr0 device accesses it.

Another program good at imaging data CDs is ddrescue. It will retry copying the last block if the is a problem and reduce the block size dynamically. If parts can not be read, they will be filled with zeros. An error at the beginning might still allow later data to be read.
 
Old 08-18-2012, 07:36 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,356

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
I never assumed it was an audio cd.
 
Old 08-19-2012, 09:00 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
I missed that myself until the post pointing it out.
 
Old 08-19-2012, 10:05 AM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,356

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
I don't think we will ever know what the OP has.
 
Old 08-19-2012, 10:15 AM   #13
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
The OP specifically says "cdrom" several times. The only, rather vague, clue that he might be using audio cds is in the example filename. At this point we still don't know what he's really working with.

Note that images of audio cds can be created, although they won't be iso9660 files, but generally some kind of bin/cue style file pair. k3b, for example, can be used to create a binary image and a separate toc file for it (I believe it uses readom/readcd as the background tool for this).
 
  


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
How to make boot.iso image from rhel6 installation dvd iso ? Rohit_4739 Linux - Newbie 4 05-25-2012 07:45 AM
How to make an ISO of a cdrom of music? frenchn00b Linux - General 2 05-09-2010 12:34 PM
mounting .iso image as cdrom vinaytp Linux - Newbie 5 06-30-2009 07:59 AM
cannot burn iso image with k3b: cdrom doesn't realize blank dvd is inserted fritz_p Linux - Newbie 2 05-07-2009 11:35 PM
map iso image to /dev/cdrom Four Fedora 1 10-06-2008 11:07 PM


All times are GMT -5. The time now is 10:06 PM.

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