Create a iso from the disk.

cat /dev/cdrom > ~/mydisk.iso
Generate the iso from the disk, easily. same as "dd if=/dev/cdrom of=~/mydisk.iso"

-10
By: sata
2009-03-26 05:54:41

What Others Think

are you kidding?
linuxrawkstar · 890 weeks and 1 day ago
Either you are novice.. or you are kidding.. I have been using it for so long time. Check it before voting.
sata · 890 weeks and 1 day ago
mine is cat /dev/sr0 > ./mydisk.iso cat: /dev/sr0: Input/output error what about other???
megerdin · 890 weeks and 1 day ago
This works .. in some machines have a soft link for /dev/sr0 as /dev/cdrom. it worked for me in suse. That inupt output error may be if u dont have a cd placed in ur cdrom!!
klosd · 890 weeks and 1 day ago
You'd probably be better off using dd.
hooobs · 890 weeks and 1 day ago
That is, dd if=/dev/cdrom of='mydisk.iso'
hooobs · 890 weeks and 1 day ago
@atoponce On my centos box, I don't have readom, nor did yum find it when I told it to search. So in this case dd (my preferred choice) for creating images, is the right tool. There is more than one way to do things. You may not feel the way others do it is best, but it's what works for them.
rattis · 890 weeks and 1 day ago
@rattis Then, in your case, use the 'cdrecord' package with the 'readcd' binary, which is essentially 'readom'. You can use your 'dd' or 'cat' to create your ISO, but when you burn the ISO, and you find you didn't get all the bits, you get to do it again. Why not do it the right way?
atoponce · 890 weeks and 1 day ago
How about mkisofs?
deltwalrus · 890 weeks and 1 day ago
thanks, atoponce, for saying what I was too tired to say last night in the wee hours of the morning. mkisofs is also nice.
linuxrawkstar · 890 weeks and 1 day ago
Come on people, let's be civil. It is a little tiring when the non-optimal methods for doing something (in this case optical media -> iso file) keep getting posted, I agree. We all weren't born with command-line knowledge, though, were we? I propose some sort of greatest hits page or FSC (frequency submitted commands) page where we list the bad, decent, and best ways to do things. Maybe we should adopt a behavior where one simply links to another submission, in a comment, as the most optimal way of doing something. With enough linking to the optimal procedure, google is likely to pick up on that optimal solution.
bwoodacre · 890 weeks and 1 day ago
@atoponce: I haven't had a problem where dd hasn't worked for me yet. Until I have a problem where it fails, I'll keep doing things the way I do them. If it works, it is the right way.
rattis · 890 weeks and 1 day ago
@rattis Using that argument, you could continue pulling your USB drive from the port without successfully unmounting it. You might not have data loss the first, second, or even third time doing it, but when it happens, you'll wish you did it right to begin with.
atoponce · 890 weeks ago
@delwalrus @linuxrawkstar 'mkisofs' is good for making an ISO image from a directory, but isn't really designed to do it from optical media. But it is certainly a step in the right direction.
atoponce · 890 weeks ago
wodim provides the readom command cdrecord provides readcd One of the two -should- be installed on any Linux system you would burn discs on.
Viaken · 890 weeks ago
@atoponce Thanks!
megerdin · 889 weeks and 6 days ago
@atoponce,Worst Use! What does it mean? If anything works, then simply, it works. If "$ dd if=/dev/cdrom of=~/mydisk.iso" works then "$ cat /dev/cdrom >~/mydisk.iso" works too. And should I point that the later one is more easier? Why every body is Voting -ve. I cannot understand.
sata · 889 weeks and 5 days ago
@atoponce if you are so worried about errorchecking you can always just md5sum it afterwards.
sirlewk · 883 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: