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
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
kernel hard-disk grub disk-image
New contributor
New contributor
edited 16 hours ago
Rui F Ribeiro
41.5k1483141
41.5k1483141
New contributor
asked 16 hours ago
Bobby DilleyBobby Dilley
162
162
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
New contributor
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
New contributor
add a comment |
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.
New contributor
add a comment |
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.
New contributor
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.
New contributor
New contributor
answered 15 hours ago
Bobby DilleyBobby Dilley
162
162
New contributor
New contributor
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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