Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I'm trying to split my initrd into two initrd's. There's some pretty significant scripts that run in the initrd, and we wanted to split the initrd so we could rev the just the logic or just the kernel portion.

As a single initrd, it boots fine. But, when I split it into two, I get an error:

RAMDISK: incomplete write (-28 != 8388608)

The grub menu entry's initrd looks like:

initrd /initramfs-scripts.img /initramfs-kernel.img

I can't find any documentation on using two initrd's. All I have found so far are this: stackexchange question, and this: grub bug. But, it doesn't give me an idea about what I'm doing wrong.

share|improve this question
could it be that the -scripts.img and kernel.img should be in opposite order? – UldisK Nov 2 '12 at 19:40
I don't see why. It was my understanding, that the two images get extracted one after the other, and then run. And their files don't overlap. The kernel one is just /lib/modules – kjprice Nov 2 '12 at 21:50
up vote 0 down vote accepted

I'm not sure if this qualifies as a complete answer, but there's some weird behavior with pygrub and initramfs's. It seems to append a few bytes to the end. The bytes are zeroed, so cpio wouldn't care about them. However, we encrypt the initramfs, so the decryption algorithm does.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.