Author Topic: how can i create an iso image from a bunch of files????  (Read 503 times)

Offline geraldw321

  • Full Member
  • ***
  • Posts: 81
how can i create an iso image from a bunch of files????
« on: December 13, 2012, 04:50:57 PM »
hi there  im trying to backup some old cd/dvd's i cant seem to find a prog to make an iso image of the discs ????    ive tried these command line entries



    eHow
    Computer Software
    Data File Types
    ISO Images
    How to Make an ISO Image in Linux

How to Make an ISO Image in Linux
By Kristen Waters, eHow Contributor

    Print this article

An ISO image is an archive image of optical disk such as a CD or DVD. The image can be created by adding files to a directory or by directly copying an existing CD or DVD. Linux is an open source operating system based on the Unix operating system. Linux distributions often use ISO images as a way for users to download installation media. They can also be used for movie DVDs and to back up files.
Other People Are Reading

    How to Make an ISO Image
    How to Use Linux to Burn ISO Image Files

Instructions

    ISO from directory
        1

        Open a terminal window. The terminal window will be found under the "System Tools," "Accessories" or "Utilities" section of the main menu.
        2

        Type the command "mkdir iso_dir" to create a directory that will contain the files that you want in the ISO image.
        3

        Copy the files that you want contained in the ISO image into the "iso_dir" directory.
        4

        Type the command "mkisofs -o cd.iso iso_dir/" to create an ISO image with the name "cd.iso".


but that didnt work  .  ive looked at several programs with my full monty release but cant figure out which one will work ?

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2378
Re: how can i create an iso image from a bunch of files????
« Reply #1 on: December 13, 2012, 04:58:19 PM »
K3b has a option after creating a data disk to "create only a iso or image". That will leave you with the required .iso

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10665
  • MLUs Forever!
Re: how can i create an iso image from a bunch of files????
« Reply #2 on: December 13, 2012, 05:59:42 PM »
Quote
Type the command "mkisofs -o cd.iso iso_dir/" to create an ISO image with the name "cd.iso".


but that didnt work  .  ive looked at several programs with my full monty release but cant figure out which one will work ?

Not very useful telling us 'it didn't work' ......  error messages are needed!

In any case try

mkisofs -o cd.iso  iso_dir/

If you get an error copy & paste it from the terminal into your next post.

« Last Edit: December 13, 2012, 06:02:56 PM by Just17 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline µT6

  • Hero Member
  • *****
  • Posts: 1900
Re: how can i create an iso image from a bunch of files????
« Reply #3 on: December 13, 2012, 06:09:27 PM »
brasero can do that too
"A question that sometimes drives me hazy: am I or are the others crazy?"

Albert Einstein

Offline rich2005

  • Sr. Member
  • ****
  • Posts: 257
Re: how can i create an iso image from a bunch of files????
« Reply #4 on: December 14, 2012, 01:59:18 AM »
you could try acetoneiso, it is in the repo.


Offline geraldw321

  • Full Member
  • ***
  • Posts: 81
Re: how can i create an iso image from a bunch of files????
« Reply #5 on: December 14, 2012, 05:16:49 AM »
Quote
Type the command "mkisofs -o cd.iso iso_dir/" to create an ISO image with the name "cd.iso".


but that didnt work  .  ive looked at several programs with my full monty release but cant figure out which one will work ?

Not very useful telling us 'it didn't work' ......  error messages are needed!

In any case try

mkisofs -o cd.iso  iso_dir/

If you get an error copy & paste it from the terminal into your next post.



hello again  .  my error  it did work  it just put the iso. image into my home directory . where i didnt see it  till later  last night  .   

Online pags

  • Hero Member
  • *****
  • Posts: 2519
  • Keep it clean.
Re: how can i create an iso image from a bunch of files????
« Reply #6 on: December 14, 2012, 08:33:28 AM »
If you're starting from optical media, you can do this with two console commands.

The first (with the CD/DVD inserted in the drive) is:
Code: [Select]
isoinfo -d -i /dev/cdrom

Since data CD's and DVD's all have 2K (2048 byte) clusters, this command will tell us how many clusters are on the media (it's size).  You should get output similar to this:
Quote
CD-ROM is in ISO 9660 format
System id:
Volume id: MPPRO2010
Volume set id:
Publisher id:
Data preparer id:
Application id: EASY CD CREATOR 6.1 (042) COPYRIGHT (C) 1999-2003 ROXIO, INC.
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 342084
Joliet with UCS level 3 found
NO Rock Ridge present

I've highlighted the important number in red.

The next command is dd.
Code: [Select]
dd if=/dev/cdrom of=/path/to/iso/file.iso bs=2048 count=342084

Where "/path/to/iso/file/iso" is where you want the file created, and what you want to call it, and be sure to adjust "count=342084" to match whatever value isoinfo found for you on your optical media...
NB:  I've never seen it, but I imagine if you get a different value for "Logical block size" from isofinfo, then change the "bs=2048" portion of dd to match it accordingly.

If you have any questions, feel free to ask.



Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11589
  • ----IOFLU----
Re: how can i create an iso image from a bunch of files????
« Reply #7 on: December 14, 2012, 12:44:25 PM »
pags:

Not disputing what you have posted above will work, but the command given, without the count entry will work just as well when copying existing CD/DVD disks. Without the count entry dd will simply copy what it finds on the disk up to and including the last block, then stop.

The block count is primarily a limiting argument, ie if I want to copy the MBR of a drive, I would use;

dd if=/dev/sda of=/path/to/filename bs=512 count=1

... which would limit the number of blocks copied to the single first block of the first sector of the hard drive. If I wanted to add the reserve area that includes the embedded  grub stage1_5 files I would do that with a count=63.

With a CD/DVD being copied, one wants the whole thing copied from beginning to end, so dd doesn't need a limiting count number. One can verify this by making two iso images of the same disk using dd, one with the count entry and one without, then do an md5sum check of each image, as well as the original disk. If the count entry is correct for the first image, both images will have the same md5sum number as that of the original disk.

The problem comes in if the count entry is too small, due to a typo when entering the command, in which case the image would get truncated. At best, the count is unneeded, hurts nothing if correct, or too large, but can introduce error if too small.
« Last Edit: December 14, 2012, 12:46:35 PM by Old-Polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Online pags

  • Hero Member
  • *****
  • Posts: 2519
  • Keep it clean.
Re: how can i create an iso image from a bunch of files????
« Reply #8 on: December 14, 2012, 01:02:02 PM »
O-P, that's an almost always yes.  ;D

There can be rare cases for hybrid-CDs (audio CDs with data portions, etc.).  An ISO image is primarily only useful for data.  Red Book (???going by memory, here...feel free to correct me) audio CD's can't be dumped directly to an ISO image, and an ISO image containing an audio portion may end up being corrupt.

Using the count as reported ensures the copy only entails the data portion.  However, you are very correct in pointing out that a typo that is too small will render the image invalid.  In such a case, I would recommend that the computer be used for what it is good for, and copy/paste the value, so the user doesn't have to type it (says the guy correcting a bunch of typos this very minute...)
 :o

Thanks for your input!

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11589
  • ----IOFLU----
Re: how can i create an iso image from a bunch of files????
« Reply #9 on: December 14, 2012, 01:45:13 PM »
O-P, that's an almost always yes.  ;D

There can be rare cases for hybrid-CDs (audio CDs with data portions, etc.).  An ISO image is primarily only useful for data.  Red Book (???going by memory, here...feel free to correct me) audio CD's can't be dumped directly to an ISO image, and an ISO image containing an audio portion may end up being corrupt.

Using the count as reported ensures the copy only entails the data portion.  However, you are very correct in pointing out that a typo that is too small will render the image invalid.  In such a case, I would recommend that the computer be used for what it is good for, and copy/paste the value, so the user doesn't have to type it (says the guy correcting a bunch of typos this very minute...)
 :o

Thanks for your input!


I thought typos were mandatory when doing forum posts... are you now telling me they are not?  ;D ;D

I haven't come across any of those hybrid audio/data CDs myself, so have nothing to test with, but being as it is only the data portion that exists on an actual file system that dd can relate to, I would think that dd would see that filesystem as the entire disk, from its perspective, and still not require a count entry. The audio portion of the disk would be completely invisible to dd.

If you have such a disk, I would be interested in the results of trying dd on it, with and without the count entry.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Online pags

  • Hero Member
  • *****
  • Posts: 2519
  • Keep it clean.
Re: how can i create an iso image from a bunch of files????
« Reply #10 on: December 14, 2012, 01:56:25 PM »
O-P, that's an almost always yes.  ;D

There can be rare cases for hybrid-CDs (audio CDs with data portions, etc.).  An ISO image is primarily only useful for data.  Red Book (???going by memory, here...feel free to correct me) audio CD's can't be dumped directly to an ISO image, and an ISO image containing an audio portion may end up being corrupt.

Using the count as reported ensures the copy only entails the data portion.  However, you are very correct in pointing out that a typo that is too small will render the image invalid.  In such a case, I would recommend that the computer be used for what it is good for, and copy/paste the value, so the user doesn't have to type it (says the guy correcting a bunch of typos this very minute...)
 :o

Thanks for your input!


I thought typos were mandatory when doing forum posts... are you now telling me they are not?  ;D ;D

I haven't come across any of those hybrid audio/data CDs myself, so have nothing to test with, but being as it is only the data portion that exists on an actual file system that dd can relate to, I would think that dd would see that filesystem as the entire disk, from its perspective, and still not require a count entry. The audio portion of the disk would be completely invisible to dd.

If you have such a disk, I would be interested in the results of trying dd on it, with and without the count entry.

I've come across them...I don't recall which ones, at the moment.

I'll see what I can find over the holidays...wish me luck!
(hey, what do you know? no tiepows!)

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11589
  • ----IOFLU----
Re: how can i create an iso image from a bunch of files????
« Reply #11 on: December 14, 2012, 02:33:17 PM »
 ;D ;D ;D ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...