Convert .dmg files to .iso files how to so on ubuntu

Asked by Nathaniel edwards

I have a retail mac cd which shows up as DMG file I need to convert it to an ISO file so it can be readable on ubuntu
I found this link on how to do it
http://hints.macworld.com/article.php?story=20040121135301830
it says To convert the file to an ISO image, to type the following command at your terminal window:

 hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso
Replace /path/to/filename.dmg with the path and name of the existing .DMG file, and replace /path/to/savefile.iso with the desired path and name for the converted image.

the problem is that the command above is for windows what is the proper command for ubuntu

the link then states "This then creates an ISO image burnable in Nero on Windows, or pretty much anything on Windows that will burn ISOs and same with Linux."

i dont have nero what do I do to complete this step?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nathaniel edwards (loekanle) said :
#1

when it creates an ISO image what will it be burnable in on ubuntu?

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2
Revision history for this message
Nathaniel edwards (loekanle) said :
#3

dmg2img /path/to/example.dmg /path/to/example.img

where do I find the file name to enter

I have the cd in the computer but cant seem to find any relevant data to enter in the example spot

but the cd shows up as a dvd icon which says boot camp and ive search all through it

Revision history for this message
Nathaniel edwards (loekanle) said :
#4

Im having a hard time locating the file in ubuntu home folder or anywhere in ubuntu

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#5

Please send us the output of the following command:

 sudo find / -name *.dmg ; mount; df -h

Revision history for this message
Nathaniel edwards (loekanle) said :
#6

/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /dev/shm type tmpfs (rw)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
/dev/loop0 on /var/spool/havp type ext3 (rw,mand,commit=600,commit=0,commit=600,commit=0,commit=600,commit=0,commit=600,commit=0,commit=0,commit=0)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/nate/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=nate)
/dev/sr0 on /media/Boot Camp type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 291G 18G 259G 7% /
none 1.5G 696K 1.5G 1% /dev
tmpfs 1.5G 1.5M 1.5G 1% /dev/shm
none 1.5G 304K 1.5G 1% /var/run
none 1.5G 4.0K 1.5G 1% /var/lock
/dev/loop0 97M 5.6M 87M 7% /var/spool/havp
/dev/sr0 790M 790M 0 100% /media/Boot Camp

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

What are the contents of that Mac CD? If it is 'Boot Camp' your system seems to be able to use it already without conversion (see the line "/dev/sr0 790M 790M 0 100% /media/Boot Camp" in the df -h output above).

Open Nautilus and look in /media - what do you see there?

Revision history for this message
Nathaniel edwards (loekanle) said :
#8

when in home folder i go to file system and locate the file media

the file boot camp is there with a cd on a file logo

and when I click it I get the same stuff when I put the cd in and click it

so I get several files

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

If I do not misinterpret your response "so I get several files", you are already able to access the files on the CD without any DMG-to-ISO conversion.

What do you want to achieve?
- create a copy of the CD?
- Run the Mac program on your Ubuntu system?
- access pictures, videos that are stored on the CD?
- ...?

Revision history for this message
Nathaniel edwards (loekanle) said :
#10

im trying to install in a virtual box

but cant because it is a DMG file

i have to convert to ISO in order to install in virtual box

Revision history for this message
Nathaniel edwards (loekanle) said :
#11

when I try to boot within virtualbox I cant find the proper file

Revision history for this message
Nathaniel edwards (loekanle) said :
#12

when I type the command codedmg2img /path/to/bootcamp.dmg /path/to/bootcamp.img

 this is what I get
dmg2img v1.6.2 is derived from dmg2iso by vu1tur (<email address hidden>)

what does it mean

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

According to http://en.wikipedia.org/wiki/Apple_Disk_Image DMG is a format used by Apple for storing CD disk images on hard disk.

From all your information above I can only read that you have a Mac CD, but you nowhere provided the proof that you do really have a DMG file.

And the line "/dev/sr0 on /media/Boot Camp type iso9660" of the mount command indicates that the CD is iso9660 format and can be read on your system.

So the question seems more to be - why can't your virtualbox not read the CD?
Are there any error messages from your virtualbox commands?

Can you help with this problem?

Provide an answer of your own, or ask Nathaniel edwards for more information if necessary.

To post a message you must log in.