DMG to ISO

Source: Internet
Author: User

The DMG format is used in MAC and cannot be used directly in Ubuntu.

The ISO format is commonly used in most Linux and Windows Image file formats.

To facilitate Mac Virtual Machine installation in Ubuntu or windows, you need to convert the ISO format.

1. Open the terminal and install dmg2img. Sudo apt-Get install dmg2img

2. Convert the DMG format to the IMG format. dmg2img/path/to/example. DMG/path/to/example. img

3. Mount the imgfile.

Sudo mkdir/Media/Example

Sudo modprobe hfsplus

Sudo Mount-T hfsplus-o loop example. img/Media/Example

At this time, an error occurs:

Mount: Wrong FS type, bad option, bad superblock on/dev/loop0, missing codePage or Helper Program, or other error in some cases useful info is found in syslog-Try dmesg | tail or so

Use

/Usr/sbin/sfdisk img_mac_x_lion.img to adjust the partition

Press enter, and enter y.

Then mount the device to/Media/MAC.

 

4. Use brasero to convert IMG to ISO format. brasero in applications-> sound & Video

5. Click an ISO icon and you will be taken out.

References:

1. http://hi.baidu.com/heutsnc/blog/item/777ac861f68ab25eeaf8f850.html

2. http://webcache.googleusercontent.com/search? Q = cache:-uqe6lhwnfcj: bytes

3. http://webcache.googleusercontent.com/search? Q = cache: 83priz6mmkej: www. psibo. unibo. IT/areait/partitions.html + bad + superblock + on +/dev/loop0 & Cd = 1 & HL = en & Ct = clnk & GL = HK & client = Ubuntu

Category: Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.