2 of 2 replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/

How to mount/convert a raw CD-ROM image (.img)

I got a raw .img image from the Internet Archive and I would like to mount it on my Linux, or at least convert it to an ISO file.

This image works fine under Windows, when using e.g. MagicDisk to emulate a virtual CD drive.

Under Linux, however, most solutions I found on the net do not work here:

  • Mounting it as an ISO-9660 image (i.e. mount -t iso9660 ...)

    Image is not an ISO-9660 file, so it fails:

    mount: wrong fs type, bad option, bad superblock on /dev/loop1,
           missing codepage or helper program, or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    $ dmesg | tail 
    ISOFS: Unable to identify CD-ROM format.
  • file provides no useful information:

    `cdrom.img: AIX core file fulldump 32-bit 64-bit`
  • fdisk -l/parted, as suggested here, does not help:

    Disk cdrom.img: 124 MB, 124749824 bytes
    255 heads, 63 sectors/track, 15 cylinders, total 243652 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Disk cdrom.img doesn't contain a valid partition table
    $ sudo parted cdrom.img
    GNU Parted 2.3
    Using /tmp/cdrom.img
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) u
    Unit?  [compact]? B
    (parted) print
    Error: /tmp/cdrom.img: unrecognised disk label
  • Most tools which I usually apply to ISO files (e. g. Ark to uncompress and read contents) do not work either, since it is not an archive.

How can I mount, or at least convert this kind of file?