Convert the.iso file to.img using the convert option of hdiutil (e.g., hdiutil convert -format UDRW -o /path/to/target.img /path/to/ubuntu.iso) Note: OS X tends to put the.dmg ending on the output file automatically. Run diskutil list to get the current list of devices. Insert your flash media. Ubuntu is a common variant of Linux, complete with a user-friendly interface and full flexibility in customizing it via the Terminal window. Windows and Linux share the ability to open ISO files, which are similar to DMG files.
Open DMG File on Linux
DMG files use Hierarchical File System (HFS) as a disk file system format. In order for your Linux machine to open DMG files it needs to support HFS and HFS+. To enable HFS and HFS+ support on your Linux machine you will need to install HFS tools and kernel modules.
Ubuntu
Below are instructions on how to install HFS and HFS+ and mount HFS+ drive on Ubuntu.
1) Install hfsprogs which enables operation with HFS and HFS+ on Linux via ports of mkfs and fsck.
sudo apt-get install hfsprogs
2) Mount or remount the HFS+ drive
sudo mount -t hfsplus -o force,rw /dev/sdXY /media/mntpoint
or
sudo mount -t hfsplus -o remount,force,rw /mount/point
3) If the drive is partially corrupted or was unmounted with an error run:
sudo fsck.hfsplus -f /dev/sdXY
CentOS
Below are instructions on how to mount HFS or HFS+ in CentOS:
1) Install hfs kernel modules and hfs+ tools:
yum install kmod-hfs
yum install hfsplus-tools
2) Mount or remount the HFS+ drive
sudo mount -t hfsplus -o force,rw /dev/sdXY /media/mntpoint
or
sudo mount -t hfsplus -o remount,force,rw /mount/point
3) If the drive is partially corrupted or was unmounted with an error run:
sudo fsck.hfsplus -f /dev/sdXY
With HFS and HFS+ enabled you are ready to mount your DMG file.
Following DMG partitioning schemes were tested to work with instructions below:
- Apple Partition Map
- CD/DVD (partitioned)
- CD/DVD (partitioned) with ISO data
- Hard disk
- Master Boot Record Partition Map
- No partition map
Below is a command to mount an image.dmg file using hfsplus file system:
sudo mount -t hfsplus image.dmg /mnt
Ubuntu Dmg Download
Here -t hfsplus tells mount command to mount with HFS+ file system. The /mnt specifies a path to where the image will be mounted.
To unmount following command is needed:
Ubuntu Dmg Torrent
sudo mount -t hfsplus image.dmg /mnt