How to create an ISO from the terminal

Reading Hispanic Linux I remembered how useful it can be to use images de CD o DVD without having to burn them: we save the disk, we preserve the environment and we have a file that we can move however we want.

Create image for a DVD

We directly do:

dd if = / dev / dvd of = / home / user / Desktop / dvd.iso

Create image for a CD

dd if = / dev / cdrom of = / home / user / Desktop / cd.iso

Create image for a folder

If we have the data in a folder:

mkisofs -o /destination/cd.iso / folder_for_image

Remember that if in dd is the input stream, which in this case will be / dev / cd or / dev / dvd, but depending on the distribution and the team it could change to something like / dev / cdrom (with an ls in / dev you will find the precise data).

Source: Hispanic Linux


4 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Jerome Navarro said

    You can also use the 'cat' command with redirection as follows:
    cat / dev / cdrom> /folder/para/image.iso
    The differences between cat and dd are several and sometimes it is advisable not to use cat, especially if it is a hard disk and it is mounted (do not even think about it). For the rest I recommend that you try it and see. The advantage is that cat does it considerably faster.
    Regards!

  2.   Let's use Linux said

    Good! Thank you for your contribution!
    A hug! Paul.

    On November 21, 2012 11:48 am, Disqus wrote:

  3.   Miguel said

    Excellent contribution. Thank you.!!

  4.   Manuel said

    Thank you very much it was very useful.