Contents
|
For an introductory explanation of ISO images, instructions for creating and also burning them see IsoImage.
The process of burning a DMG to USB in Linux is a little more complicated since it requires converting the file to an ISO before burning it to a drive. It also requires command line executions, but if you own a Linux machine you may already be familiar with command line work.
For instructions on how to mount an ISO, see MountIso.
There are many other formats of archives that have been created over the years for numerous reasons. To mount them, it is usually necessary to convert them to ISO and then use your preferred means. Unless otherwise specified, these programs are available in the Universerepository and can be installed by numerous means. For convenience apturl links have been made, click the package names and they will install as long as the protocol is supported. None of these programs are installed by default.
The following exclusively deals with the command line.
![Ubuntu iso image Ubuntu iso image](/uploads/1/2/5/7/125740675/769930843.png)
CloneCD/IMG Images
This category covers images created primarily by CloneCD. There are usually several files: a IMG (.img) archive of the dics content, the SUB (.sub) file containing subchannel data and the CCD (.ccd) text descriptor a file used only by CloneCD for storing information about an image. The IMG file is the primary container of data, and as such the only one required for conversion with ccd2iso and mounting.
- To Convert
- To Mount
CUE/BIN Images
CUE/BIN (.cue/.bin) files must be converted to be of use. This can be done using the program bchunk. To use the program, it is necessary to note the path of both the bin and cue files, then the output file.
- To Convert
MDF Images
MDF (.mdf) files are primarily created by Alcohol 120%. These can either be converted to ISO using mdf2iso or mounted directly.
- To Convert
- To Mount
NRG Images
Nero image (.nrg) files can either be converted to ISO using nrg2iso or can be mounted directly.
- To Convert
- To Mount
DMG (.dmg) images are primarily used by Apple, conversion of these files will allow data to be accessed. It will not allow the running of OSX programs on Linux without considerable effort not outlined in this guide. The following process will first convert to IMG and then to ISO, you may however stop at the first step if you wish and mount or burn.
Installation
For instructions on installation, see DMG2IMG.
To Convert to IMG
The following command will convert the example file from DMG to IMG.
Do NOT follow the instructions for mounting the file at the end of the conversion. It is not advisable to mount to the /mnt directory.
To Mount
As always a directory will be created in /media, the next step will ensure hfsplus support is available, lastly the IMG file mounted to the directory.
At this point, the image is available for browsing under the /media/example directory. These files can now be transferred to hard drive or elsewhere for storage. If you want an ISO file, continue to the next section.
![Convert Convert](https://i2.wp.com/linuxnewbieguide.org/wp-content/uploads/2016/11/Screen-Shot-2016-11-23-at-9.21.08-PM-1024x475.png?resize=584%2C271)
Creating the ISO
The IMG file we now have is still an hfsplus archive, which cannot simply be converted into an ISO. As such, we will have to use an intermediary step to convert the data from its stored format to an ISO. Since we've already mounted it to a directory, the easiest way is simply to create a new ISO with any disc authoring program you are familiar with. Brasero, GnomeBaker and K3b are just a few options for this.
Simply open your software of choice and start a new data disc. Then add the files from the mounted archive to this new data disc project. Once satisfied, select Burn and instead of recording a CD or DVD, choose to make an ISO file.
For most users, Brasero will be available, for those inexperienced in it's use the following is a guide.
If you're using GNOME then you can run Brasero from Applications -> Sound & Video -> Brasero. Start a new data disc by selecting Data Project from the main Brasero window, or through the menu Project -> New Project. Ensure the side panel is enabled from View -> Enable Side Panel. From the side panel, navigate to the directory where the IMG was mounted, usually the name of the IMG will be listed in the Places pane. In our example, the location in Places would be called example located in the /media/example directory. Simply drag all the files and folders you want to the project.
Once ready, push Burn... and ensure you select to create Image File: at the new window so it creates an ISO. If you wish to change the default name or the location it is created, select Properties. Once satisfied, push Burn and the ISO will be created. Leave Increase compatibility with Windows systems checked unless you know better.
Archive Mounter
By default in GNOME, Nautilus has support for mounting ISOs by simply right clicking on the file and selecting Open with Archive Mounter. This option still appears limited, mainly designed for archives and ISOs. This feature is still under development, thus the following guide will be preserved.
- AcetoneISO is a feature rich program which let you mount and burn ISO, BIN, NRG, MDF, and IMG files through a graphical user interface. It's available through Ubuntu's universe repository.
- Furius Iso Mount, available from the Ubuntu Software Center, enables you to mount ISO, BIN, NRG, MDF, and IMG files through a graphical user interface
- cdemu is a kernel module for mounting Cue/Bin files directly. To install it you would have to setup linux headers, compile the module and modprobe it in. This is out of the scope of this page. There is a script under development in the Ubuntu forums for automating the building of cdemuLocated Here (Use this at your own risk.)
- 'Mount and Unmount ISO images without burning them' has a nice step-by-step explanation (with screen shots) showing how to mount and unmount ISO images.
- clonezilla is an open source disk backup & restore distro
The ISO file format is pretty much entranched in the PC world as THE format to use for CD/DVD disk images. The advantages of this format are plenty – It is a standard open format and tools to work with it are readily available for all operating systems, Windows, Unix/Linux and OS X.
While Mac users can use the ISO format on their machines, Most software on OS X is distributed as a DMG file. The DMG file format has a couple of arguable advantages over the ISO format like encryption, compression etc., but the truth is that the rest of the world uses ISO and there is no way easy way to use DMG files in the PC world.
I faced this dilemma at work a couple of days back when I had a DMG file in my hand and had to burn it to a DVD but I was using a Linux machine.
I tried searching online for solution to burn a DMG on Windows but couldn’t find any free utility. So, I searched for the next logical solution. Convert the DMG to ISO and I found a way to do it – and the good thing is that the tool to be used for the conversion comes with Mac OS X and is a simple command line utility.
This method only works on a Mac, so you have to convert the DMG file to an ISO on the Mac itself and then transfer and use the resulting ISO on your PC. The utility to be used for the purpose is hdiutil and the complete command is:
Below is the screenshot of the command that I used to convert my DMG file to ISO.
The above command will create a file with a .cdr extension, which stands for a CD/DVD master. If you want, you can rename it with a .ISO extension and it should still work fine. Copy it over to your Windows or Linux/Unix machine and you’re all set.
You can now use Nero, cdrecord/wodim or the OS’s built in ISO burning tools to burn this ISO file to any media.