Can I convert a dmg file to iso in terminal?












17















I use dmg2img to convert a dmg file. What package will convert a dmg 2 iso?










share|improve this question



























    17















    I use dmg2img to convert a dmg file. What package will convert a dmg 2 iso?










    share|improve this question

























      17












      17








      17


      10






      I use dmg2img to convert a dmg file. What package will convert a dmg 2 iso?










      share|improve this question














      I use dmg2img to convert a dmg file. What package will convert a dmg 2 iso?







      12.04






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 5 '14 at 15:56









      Louise AvonLouise Avon

      3162512




      3162512






















          2 Answers
          2






          active

          oldest

          votes


















          26














          Follow the steps below.



          Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



          sudo apt-get install dmg2img


          Once installed, run the following command:



          dmg2img <file_name>.dmg


          That will convert the .dmg to ,img file in ISO format. Then just run



          mv <file_name>.img <file_name>.iso





          share|improve this answer



















          • 2





            I'm pretty sure this leaves you with an apple img file; file InstallESD.iso returns Apple Driver Map, and I can't open it as an iso.

            – bukzor
            Feb 28 '15 at 20:57











          • What are you using to open the ISO file?

            – Mitch
            Mar 1 '15 at 4:53











          • @bukzor works fine for me with sudo mount file.iso emptydirectoryname.

            – Wildcard
            Oct 20 '18 at 3:08



















          1














          In order to convert the dmg to iso you need:



          1) Convert the dmg to img using dmg2img



          you can install it using:
          sudo apt-get install dmg2img



          Then (if your dmg is named image.dmg in the current folder):



          dmg2img image.dmg image.img



          2) To mount the img



          mkdir /media/image



          sudo modprobe hfsplus



          sudo mount -t hfsplus -o loop image.img /media/image



          3) To burn the files in /media/image coming from the mount to an iso file:



          You may use brasero for that step.
          You can install it using:



          sudo apt-get install brasero



          Detailed instructions can be found there:
          http://dailytechnologiesupdate.blogspot.co.il/2011/11/converting-dmg-to-iso-file-in-ubuntu.html






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f477290%2fcan-i-convert-a-dmg-file-to-iso-in-terminal%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            26














            Follow the steps below.



            Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



            sudo apt-get install dmg2img


            Once installed, run the following command:



            dmg2img <file_name>.dmg


            That will convert the .dmg to ,img file in ISO format. Then just run



            mv <file_name>.img <file_name>.iso





            share|improve this answer



















            • 2





              I'm pretty sure this leaves you with an apple img file; file InstallESD.iso returns Apple Driver Map, and I can't open it as an iso.

              – bukzor
              Feb 28 '15 at 20:57











            • What are you using to open the ISO file?

              – Mitch
              Mar 1 '15 at 4:53











            • @bukzor works fine for me with sudo mount file.iso emptydirectoryname.

              – Wildcard
              Oct 20 '18 at 3:08
















            26














            Follow the steps below.



            Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



            sudo apt-get install dmg2img


            Once installed, run the following command:



            dmg2img <file_name>.dmg


            That will convert the .dmg to ,img file in ISO format. Then just run



            mv <file_name>.img <file_name>.iso





            share|improve this answer



















            • 2





              I'm pretty sure this leaves you with an apple img file; file InstallESD.iso returns Apple Driver Map, and I can't open it as an iso.

              – bukzor
              Feb 28 '15 at 20:57











            • What are you using to open the ISO file?

              – Mitch
              Mar 1 '15 at 4:53











            • @bukzor works fine for me with sudo mount file.iso emptydirectoryname.

              – Wildcard
              Oct 20 '18 at 3:08














            26












            26








            26







            Follow the steps below.



            Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



            sudo apt-get install dmg2img


            Once installed, run the following command:



            dmg2img <file_name>.dmg


            That will convert the .dmg to ,img file in ISO format. Then just run



            mv <file_name>.img <file_name>.iso





            share|improve this answer













            Follow the steps below.



            Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



            sudo apt-get install dmg2img


            Once installed, run the following command:



            dmg2img <file_name>.dmg


            That will convert the .dmg to ,img file in ISO format. Then just run



            mv <file_name>.img <file_name>.iso






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 5 '14 at 17:24









            MitchMitch

            84.6k14173229




            84.6k14173229








            • 2





              I'm pretty sure this leaves you with an apple img file; file InstallESD.iso returns Apple Driver Map, and I can't open it as an iso.

              – bukzor
              Feb 28 '15 at 20:57











            • What are you using to open the ISO file?

              – Mitch
              Mar 1 '15 at 4:53











            • @bukzor works fine for me with sudo mount file.iso emptydirectoryname.

              – Wildcard
              Oct 20 '18 at 3:08














            • 2





              I'm pretty sure this leaves you with an apple img file; file InstallESD.iso returns Apple Driver Map, and I can't open it as an iso.

              – bukzor
              Feb 28 '15 at 20:57











            • What are you using to open the ISO file?

              – Mitch
              Mar 1 '15 at 4:53











            • @bukzor works fine for me with sudo mount file.iso emptydirectoryname.

              – Wildcard
              Oct 20 '18 at 3:08








            2




            2





            I'm pretty sure this leaves you with an apple img file; file InstallESD.iso returns Apple Driver Map, and I can't open it as an iso.

            – bukzor
            Feb 28 '15 at 20:57





            I'm pretty sure this leaves you with an apple img file; file InstallESD.iso returns Apple Driver Map, and I can't open it as an iso.

            – bukzor
            Feb 28 '15 at 20:57













            What are you using to open the ISO file?

            – Mitch
            Mar 1 '15 at 4:53





            What are you using to open the ISO file?

            – Mitch
            Mar 1 '15 at 4:53













            @bukzor works fine for me with sudo mount file.iso emptydirectoryname.

            – Wildcard
            Oct 20 '18 at 3:08





            @bukzor works fine for me with sudo mount file.iso emptydirectoryname.

            – Wildcard
            Oct 20 '18 at 3:08













            1














            In order to convert the dmg to iso you need:



            1) Convert the dmg to img using dmg2img



            you can install it using:
            sudo apt-get install dmg2img



            Then (if your dmg is named image.dmg in the current folder):



            dmg2img image.dmg image.img



            2) To mount the img



            mkdir /media/image



            sudo modprobe hfsplus



            sudo mount -t hfsplus -o loop image.img /media/image



            3) To burn the files in /media/image coming from the mount to an iso file:



            You may use brasero for that step.
            You can install it using:



            sudo apt-get install brasero



            Detailed instructions can be found there:
            http://dailytechnologiesupdate.blogspot.co.il/2011/11/converting-dmg-to-iso-file-in-ubuntu.html






            share|improve this answer






























              1














              In order to convert the dmg to iso you need:



              1) Convert the dmg to img using dmg2img



              you can install it using:
              sudo apt-get install dmg2img



              Then (if your dmg is named image.dmg in the current folder):



              dmg2img image.dmg image.img



              2) To mount the img



              mkdir /media/image



              sudo modprobe hfsplus



              sudo mount -t hfsplus -o loop image.img /media/image



              3) To burn the files in /media/image coming from the mount to an iso file:



              You may use brasero for that step.
              You can install it using:



              sudo apt-get install brasero



              Detailed instructions can be found there:
              http://dailytechnologiesupdate.blogspot.co.il/2011/11/converting-dmg-to-iso-file-in-ubuntu.html






              share|improve this answer




























                1












                1








                1







                In order to convert the dmg to iso you need:



                1) Convert the dmg to img using dmg2img



                you can install it using:
                sudo apt-get install dmg2img



                Then (if your dmg is named image.dmg in the current folder):



                dmg2img image.dmg image.img



                2) To mount the img



                mkdir /media/image



                sudo modprobe hfsplus



                sudo mount -t hfsplus -o loop image.img /media/image



                3) To burn the files in /media/image coming from the mount to an iso file:



                You may use brasero for that step.
                You can install it using:



                sudo apt-get install brasero



                Detailed instructions can be found there:
                http://dailytechnologiesupdate.blogspot.co.il/2011/11/converting-dmg-to-iso-file-in-ubuntu.html






                share|improve this answer















                In order to convert the dmg to iso you need:



                1) Convert the dmg to img using dmg2img



                you can install it using:
                sudo apt-get install dmg2img



                Then (if your dmg is named image.dmg in the current folder):



                dmg2img image.dmg image.img



                2) To mount the img



                mkdir /media/image



                sudo modprobe hfsplus



                sudo mount -t hfsplus -o loop image.img /media/image



                3) To burn the files in /media/image coming from the mount to an iso file:



                You may use brasero for that step.
                You can install it using:



                sudo apt-get install brasero



                Detailed instructions can be found there:
                http://dailytechnologiesupdate.blogspot.co.il/2011/11/converting-dmg-to-iso-file-in-ubuntu.html







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jul 3 '17 at 8:16

























                answered Jul 3 '17 at 8:11









                Frank AFRIATFrank AFRIAT

                112




                112






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f477290%2fcan-i-convert-a-dmg-file-to-iso-in-terminal%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕