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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-18-2012, 06:41 AM
|
#1
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,710
|
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
|
|
|
08-18-2012, 07:07 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,073
|
use mkisofs, and standard burning programs (wodim, k3b) or growisofs.
|
|
|
08-18-2012, 07:46 AM
|
#3
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852
|
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?
|
|
|
08-18-2012, 12:02 PM
|
#4
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791
|
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)
|
|
|
08-18-2012, 12:07 PM
|
#5
|
Senior Member
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,797
|
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.
|
|
|
08-18-2012, 12:09 PM
|
#6
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
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?
|
|
|
08-18-2012, 12:10 PM
|
#7
|
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
|
it would be helpful if you posted any relevant error messages generated by the failed attempt as well as the output of
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
|
|
|
08-18-2012, 06:43 PM
|
#8
|
Moderator
Registered: Mar 2008
Posts: 22,176
|
Could the cd be protected by some scheme?
|
|
|
08-18-2012, 07:51 PM
|
#9
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
08-18-2012, 08:36 PM
|
#10
|
Moderator
Registered: Mar 2008
Posts: 22,176
|
I never assumed it was an audio cd.
|
|
|
08-19-2012, 10:00 AM
|
#11
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
I missed that myself until the post pointing it out.
|
|
|
08-19-2012, 11:05 AM
|
#12
|
Moderator
Registered: Mar 2008
Posts: 22,176
|
I don't think we will ever know what the OP has.
|
|
|
08-19-2012, 11:15 AM
|
#13
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852
|
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).
|
|
|
All times are GMT -5. The time now is 12:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|