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 08-18-2012, 06:41 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,710

Rep: Reputation: 256Reputation: 256Reputation: 256
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, 07:07 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,073

Rep: Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482
use mkisofs, and standard burning programs (wodim, k3b) or growisofs.
 
Old 08-18-2012, 07:46 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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, 12:02 PM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
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, 12:07 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,797

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
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, 12:09 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

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, 12:10 PM   #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,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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, 06:43 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,176

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

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 08:36 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,176

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

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I missed that myself until the post pointing it out.
 
Old 08-19-2012, 11:05 AM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,176

Rep: Reputation: 3644Reputation: 3644Reputation: 3644Reputation: 3644Reputation: 3644Reputation: 3644Reputation: 3644Reputation: 3644Reputation: 3644Reputation: 3644Reputation: 3644
I don't think we will ever know what the OP has.
 
Old 08-19-2012, 11:15 AM   #13
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

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

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

All times are GMT -5. The time now is 12:52 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
Open Source Consulting | Domain Registration