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"

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

What Others Think

are you kidding?
linuxrawkstar · 698 weeks and 3 days ago
Either you are novice.. or you are kidding.. I have been using it for so long time. Check it before voting.
sata · 698 weeks and 3 days ago
mine is cat /dev/sr0 > ./mydisk.iso cat: /dev/sr0: Input/output error what about other???
megerdin · 698 weeks and 3 days 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 · 698 weeks and 3 days ago
You'd probably be better off using dd.
hooobs · 698 weeks and 3 days ago
That is, dd if=/dev/cdrom of='mydisk.iso'
hooobs · 698 weeks and 3 days ago
GAH!! This is simply the worst use of cat I've seen. Are you not aware of the tools you have at your disposal? Do you not realize that there is no error checking while creating that ISO image? @hoooobs you too. 'dd' is a horrible way of creating an ISO. Lastly, is the search bar invisible? Does no one know how to search? readom dev=/dev/scd0 f=./mydisk.iso Use the right tools for the right jobs.
atoponce · 698 weeks and 3 days 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 · 698 weeks and 3 days 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 · 698 weeks and 3 days ago
How about mkisofs?
deltwalrus · 698 weeks and 3 days 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 · 698 weeks and 3 days 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 · 698 weeks and 3 days 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 · 698 weeks and 2 days 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 · 698 weeks and 2 days 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 · 698 weeks and 2 days 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 · 698 weeks and 2 days ago
@atoponce Thanks!
megerdin · 698 weeks and 1 day 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 · 698 weeks ago
@atoponce if you are so worried about errorchecking you can always just md5sum it afterwards.
sirlewk · 691 weeks and 6 days ago
seofox · 38 weeks and 1 day ago ????? ??? ????? ???? SEO ????? ????? ????? ???? ????? ????? ??? ???? ???? ??????? Search Engine Optimization ??? ????? ??????????? ?? ????? ?????????? ????? ????? ?? ????
seofox · 28 weeks ago
seofox · 26 weeks and 5 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? 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.


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: