Issue with merging two HDD images into 12019 Community Moderator ElectionGrub fails to install - Debian Wheezy with mdadm RAID1 and GPT partition tableIn which partition I have to put vmlinuz-* and initrd.img-*?How to install a CentOS image manually?Partition from second hard drive gets mounted as /How to add Ubuntu into grub on CentOSGRUB can't find windows ESPCan't mount disk imageErrors during LFS first bootCopied Arch not shown in EFIGRUB Partion Naming Conventions

Extract substring according to regexp with sed or grep

Why is implicit conversion not ambiguous for non-primitive types?

Output visual diagram of picture

Do I have to take mana from my deck or hand when tapping this card?

How do you say "Trust your struggle." in French?

What should be the ideal length of sentences in a blog post for ease of reading?

What is it called when someone votes for an option that's not their first choice?

Why does a 97 / 92 key piano exist by Bosendorfer?

Is this saw blade faulty?

Are all namekians brothers?

Calculate Pi using Monte Carlo

Pre-Employment Background Check With Consent For Future Checks

Is there any common country to visit for persons holding UK and Schengen visas?

Could a welfare state co-exist with mega corporations?

Can you take a "free object interaction" while incapacitated?

Taking the numerator and the denominator

Highest stage count that are used one right after the other?

Do people actually use the word "kaputt" in conversation?

What do the positive and negative (+/-) transmit and receive pins mean on Ethernet cables?

Does capillary rise violate hydrostatic paradox?

What is the tangent at a sharp point on a curve?

Relations between homogeneous polynomials

Connection Between Knot Theory and Number Theory

Why is indicated airspeed rather than ground speed used during the takeoff roll?



Issue with merging two HDD images into 1



2019 Community Moderator ElectionGrub fails to install - Debian Wheezy with mdadm RAID1 and GPT partition tableIn which partition I have to put vmlinuz-* and initrd.img-*?How to install a CentOS image manually?Partition from second hard drive gets mounted as /How to add Ubuntu into grub on CentOSGRUB can't find windows ESPCan't mount disk imageErrors during LFS first bootCopied Arch not shown in EFIGRUB Partion Naming Conventions










1















I've got two HDD image files, which both of have 2 partitions each.



On each image, the first partition is the grub boot partition, and the second partition contains the files and kernel. The second partition on the first image contains a 2.4 kernel, and the second partition on the second image contains a 2.6 kernel.



I'm trying to put them onto one drive, so that I can choose to boot either the 2.4 kernel and files or the 2.6 kernel and files.



I have written the first image onto a drive, and then used gparted to copy the second partition from the second image onto the drive, so that it now has 3 partitions (grub, 2.4, 2.6).



I have added a grub boot entry using (hd0, 2) as the partition for root, kernel etc. and added root=/dev/hda3 to what I beleive is called the cmdline.



The first grub entry works for the first partition, but when trying to run the second entry it boots up, but seems to fail to be able to access any of the files and gives a DMA error when checking /dev/hda. The application then fails as it can't write or read certain files.



If I try this the other way round, by imaging the second image first, and then adding the partition from the first image second, the same error happens where I can boot the first image I wrote, but not the copied over partition.



I'm trying this on a very closed system running kernels 2.4/2.6 so I'm limited to how much digging I can do, but would be able to read the specific DMA error by taking a picture later if that is required.










share|improve this question









New contributor




Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    1















    I've got two HDD image files, which both of have 2 partitions each.



    On each image, the first partition is the grub boot partition, and the second partition contains the files and kernel. The second partition on the first image contains a 2.4 kernel, and the second partition on the second image contains a 2.6 kernel.



    I'm trying to put them onto one drive, so that I can choose to boot either the 2.4 kernel and files or the 2.6 kernel and files.



    I have written the first image onto a drive, and then used gparted to copy the second partition from the second image onto the drive, so that it now has 3 partitions (grub, 2.4, 2.6).



    I have added a grub boot entry using (hd0, 2) as the partition for root, kernel etc. and added root=/dev/hda3 to what I beleive is called the cmdline.



    The first grub entry works for the first partition, but when trying to run the second entry it boots up, but seems to fail to be able to access any of the files and gives a DMA error when checking /dev/hda. The application then fails as it can't write or read certain files.



    If I try this the other way round, by imaging the second image first, and then adding the partition from the first image second, the same error happens where I can boot the first image I wrote, but not the copied over partition.



    I'm trying this on a very closed system running kernels 2.4/2.6 so I'm limited to how much digging I can do, but would be able to read the specific DMA error by taking a picture later if that is required.










    share|improve this question









    New contributor




    Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      1












      1








      1








      I've got two HDD image files, which both of have 2 partitions each.



      On each image, the first partition is the grub boot partition, and the second partition contains the files and kernel. The second partition on the first image contains a 2.4 kernel, and the second partition on the second image contains a 2.6 kernel.



      I'm trying to put them onto one drive, so that I can choose to boot either the 2.4 kernel and files or the 2.6 kernel and files.



      I have written the first image onto a drive, and then used gparted to copy the second partition from the second image onto the drive, so that it now has 3 partitions (grub, 2.4, 2.6).



      I have added a grub boot entry using (hd0, 2) as the partition for root, kernel etc. and added root=/dev/hda3 to what I beleive is called the cmdline.



      The first grub entry works for the first partition, but when trying to run the second entry it boots up, but seems to fail to be able to access any of the files and gives a DMA error when checking /dev/hda. The application then fails as it can't write or read certain files.



      If I try this the other way round, by imaging the second image first, and then adding the partition from the first image second, the same error happens where I can boot the first image I wrote, but not the copied over partition.



      I'm trying this on a very closed system running kernels 2.4/2.6 so I'm limited to how much digging I can do, but would be able to read the specific DMA error by taking a picture later if that is required.










      share|improve this question









      New contributor




      Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I've got two HDD image files, which both of have 2 partitions each.



      On each image, the first partition is the grub boot partition, and the second partition contains the files and kernel. The second partition on the first image contains a 2.4 kernel, and the second partition on the second image contains a 2.6 kernel.



      I'm trying to put them onto one drive, so that I can choose to boot either the 2.4 kernel and files or the 2.6 kernel and files.



      I have written the first image onto a drive, and then used gparted to copy the second partition from the second image onto the drive, so that it now has 3 partitions (grub, 2.4, 2.6).



      I have added a grub boot entry using (hd0, 2) as the partition for root, kernel etc. and added root=/dev/hda3 to what I beleive is called the cmdline.



      The first grub entry works for the first partition, but when trying to run the second entry it boots up, but seems to fail to be able to access any of the files and gives a DMA error when checking /dev/hda. The application then fails as it can't write or read certain files.



      If I try this the other way round, by imaging the second image first, and then adding the partition from the first image second, the same error happens where I can boot the first image I wrote, but not the copied over partition.



      I'm trying this on a very closed system running kernels 2.4/2.6 so I'm limited to how much digging I can do, but would be able to read the specific DMA error by taking a picture later if that is required.







      kernel hard-disk grub disk-image






      share|improve this question









      New contributor




      Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 16 hours ago









      Rui F Ribeiro

      41.5k1483141




      41.5k1483141






      New contributor




      Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 16 hours ago









      Bobby DilleyBobby Dilley

      162




      162




      New contributor




      Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          1














          I have figured out the issue, and although it is an unusual one it might help people trying to work on embedded systems, written as badly as the one I'm working with.



          When booting, the initrd (initial ram disk) image gets mounted and a file called linuxrc in the root of that gets run. This file is responsible for mounting the HDD partitions and getting the OS started. In my case, the line that would normally mount whatever partition was defined in cmdline as root= was commented out, and a line that always statically mounted /dev/hda2 was added in, which is likely why it wouldn't boot.






          share|improve this answer








          New contributor




          Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.



















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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
            );



            );






            Bobby Dilley is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507167%2fissue-with-merging-two-hdd-images-into-1%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            I have figured out the issue, and although it is an unusual one it might help people trying to work on embedded systems, written as badly as the one I'm working with.



            When booting, the initrd (initial ram disk) image gets mounted and a file called linuxrc in the root of that gets run. This file is responsible for mounting the HDD partitions and getting the OS started. In my case, the line that would normally mount whatever partition was defined in cmdline as root= was commented out, and a line that always statically mounted /dev/hda2 was added in, which is likely why it wouldn't boot.






            share|improve this answer








            New contributor




            Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
























              1














              I have figured out the issue, and although it is an unusual one it might help people trying to work on embedded systems, written as badly as the one I'm working with.



              When booting, the initrd (initial ram disk) image gets mounted and a file called linuxrc in the root of that gets run. This file is responsible for mounting the HDD partitions and getting the OS started. In my case, the line that would normally mount whatever partition was defined in cmdline as root= was commented out, and a line that always statically mounted /dev/hda2 was added in, which is likely why it wouldn't boot.






              share|improve this answer








              New contributor




              Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                1












                1








                1







                I have figured out the issue, and although it is an unusual one it might help people trying to work on embedded systems, written as badly as the one I'm working with.



                When booting, the initrd (initial ram disk) image gets mounted and a file called linuxrc in the root of that gets run. This file is responsible for mounting the HDD partitions and getting the OS started. In my case, the line that would normally mount whatever partition was defined in cmdline as root= was commented out, and a line that always statically mounted /dev/hda2 was added in, which is likely why it wouldn't boot.






                share|improve this answer








                New contributor




                Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                I have figured out the issue, and although it is an unusual one it might help people trying to work on embedded systems, written as badly as the one I'm working with.



                When booting, the initrd (initial ram disk) image gets mounted and a file called linuxrc in the root of that gets run. This file is responsible for mounting the HDD partitions and getting the OS started. In my case, the line that would normally mount whatever partition was defined in cmdline as root= was commented out, and a line that always statically mounted /dev/hda2 was added in, which is likely why it wouldn't boot.







                share|improve this answer








                New contributor




                Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 15 hours ago









                Bobby DilleyBobby Dilley

                162




                162




                New contributor




                Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Bobby Dilley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




















                    Bobby Dilley is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    Bobby Dilley is a new contributor. Be nice, and check out our Code of Conduct.












                    Bobby Dilley is a new contributor. Be nice, and check out our Code of Conduct.











                    Bobby Dilley is a new contributor. Be nice, and check out our Code of Conduct.














                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f507167%2fissue-with-merging-two-hdd-images-into-1%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

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.