Questions tagged [initrd]

The initrd (Initial RAM Disk) is used to load a temporary filesystem into memory in the boot process of a linux kernel.

77 questions
20
votes
5 answers

Is it possible to boot the Linux kernel without creating an initrd image?

As I understand, initrd is a small image that is loadable in the RAM. It is used to boot a complete kernel with all the loadable modules. As part of the process, we need the vmlinuz kernel image which is a renamed version of bzImage. Is it possible…
Neel
  • 9,913
  • 16
  • 52
  • 74
7
votes
1 answer

How to make an initrd.img in Ubuntu?

[Environment: Ubuntu 10.04] I've just finished compiling Linux-2.6.20 and wanna make it work, so I think I should add something to my grub2, as I finished make modules_install make install in /boot/,I got…
genxium
  • 73
  • 1
  • 1
  • 6
7
votes
1 answer

Reversing the effects of mkimage to get an original gzipped file back

We develop for a specific embedded device at our company, and part of that is making initial root disks that get loaded onto the devices over ethernet via netboot. We've experienced some problems, and as a result, the original folder with the…
Alex Marshall
  • 10,162
  • 15
  • 72
  • 117
7
votes
3 answers

Showing a splash image while loading a huge initrd

Consider a live GNU/Linux distro with the following constraints: all the software should be contained in an initrd image (which results in its huge size) and the kernel contains as few statically-compiled modules as possible. Consider the bootup…
Zaur Nasibov
  • 22,280
  • 12
  • 56
  • 83
6
votes
1 answer

When is it necessary to rebuild the initrd (Linux initial ramdisk)?

Background: I'm developing a DKMS package for my kernel module. The DKMS manpage contains the following sentence: REMAKE_INITRD = This directive specifies whether your initrd should be remade after the module is installed onto the…
sergej
  • 17,147
  • 6
  • 52
  • 89
6
votes
1 answer

Running a script just before installation of Debian finishes using preseed

I am trying to run a script just before the installation of Debian Wheezy finishes. I am aware of "d-i preseed/late-command", viz. used run commands before the installation finishes. But I am facing a problem. I cannot figure out where to copy my…
6
votes
1 answer

initramfs - need to edit text file

I'm stuck in initramfs on Linux Mint v15 and I need to edit /bin/grub/grub/cfg. I have the sda1 device mounted but not sure what to do to edit. I try exec ./usr/bin/vi and it throws a kernel panic.
KingFish
  • 8,773
  • 12
  • 53
  • 81
4
votes
0 answers

Drawing an image on the screen during initramfs

I'm trying to draw an error image during initramfs on a base ubuntu 18.04 image. My issue is that when I write the image directly into /dev/fb0 The card only appears to redraw areas of the screen the are being changed by the console output. Is there…
Andy
  • 44,610
  • 13
  • 70
  • 69
4
votes
2 answers

reboot within an initrd image

I am looking for a method to restart/reset my linux system from within an init-bottom script*. At the time my script is executed the system is found under /root and I have access to a busybox. But the "reboot" command which is part of my busybox…
user2715068
  • 51
  • 1
  • 4
3
votes
1 answer

Why is my initramfs script not being run?

Running Ubuntu 18.04 LTS. I've put a script in the following location: /usr/share/initramfs-tools/scripts/init-bottom/dothis dothis is set as +x. I've run sudo update-initramfs -u which appears to update the initramfs contents just fine. I've…
iluomo
  • 151
  • 1
  • 7
3
votes
1 answer

ARM stucks at "Starting kernel image ..." sometimes

At the beginning I'd like to announce that it is partially a success story. :-) Context: Just for personal self-development, I had got an idea to complete semi-LFS procedure to build Linux for my ARM Cubieboard2. Why semi? Because my impatience led…
utom
  • 482
  • 1
  • 3
  • 15
3
votes
2 answers

Some details on ARM Linux boot

I'm trying to understand the details of linux booting on arm architecture. I did lot of search on the internet and understood so far some details although I feel each time I read an article it brings lot of other new terms and this makes things more…
mdaniel
  • 191
  • 1
  • 12
3
votes
2 answers

Where can I find the source code for Redhat's nash utility?

Where can I find the source code for Redhat's nash utility? Thanks, Chenz
Crazy Chenz
  • 12,650
  • 12
  • 50
  • 62
2
votes
1 answer

What is `hooker script` actually in `scripts/init-top/all_generic_ide`?

I'm studying init in Ubuntu's ramdisk. In scripts/init-bottom/udev I saw this code snippets: PREREQ="" prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac It appears almost every scripts in…
naive231
  • 1,360
  • 1
  • 11
  • 28
2
votes
1 answer

Unpacking / Packing AOSP recovery image using abootimg fails to boot

I built a recovery.img (using flo lunch setup) for my Nexus 7 device using AOSP source code. I can use it like: $ adb reboot bootloader $ fastboot boot recovery.img However, when I unpack and re-pack the recovery.img file using abootimg utility…
Stupid
  • 113
  • 5
1
2 3 4 5 6