Questions tagged [initrd]

initrd is a method for loading a temporary file system into memory, during the process of booting the Linux kernel.

Filter by
Sorted by
Tagged with
1
vote
2answers
183 views

Can initramfs programs access all memory - do they run in real or protected mode?

This is in the context of current 64-bit processors and current linux kernels (I'm using 4.6.4.) Is it possible for me to write a program that during boot can examine base memory, 640k and under, ...
1
vote
2answers
2k views

Booting kernel (FIT image) with no rootfs

An embedded Linux device I am working with has the following kernel parameter: root=/dev/ram0 Additionally, the kernel image is bundled together with an initrd and device tree to make a flattened ...
1
vote
0answers
3k views

Add AHCI to initrd on CentOS7 after installation

I built a complete CentOS7 system with lots of tools, preferences, etc in a VMware guest. Once working fine I moved it to my physical server. I managed to get grub2 installed and the bootloader now ...
1
vote
1answer
938 views

Shell prompt from initrd

I have a problem with a Linux system that won't boot. The bootloader happily loads the kernel and initrd, but then the initrd script whines and complains and moans that it can't find the root device. ...
1
vote
0answers
123 views

Interaction of initrd commands and systemd services doing same thing

I have a general idea of how the boot process works, but now that I'm customizing the initrd process, I can't wrap my mind around this. If there's a systemd service that can connect to a remote ...
1
vote
0answers
384 views

Mounting real rootfs after initial booting using initrd

I'm booting kernel with root=/dev/ram0 on a embedded environment. After initial booting, how can I mount real rootfs present at /dev/mtd3 and make it as the only rootfs. I'm using root=/dev/ram0 ...
1
vote
0answers
651 views

Build Mini Linux and Embedded Linux

How to build Mini Linux with Busybox, Kernel-3.15.3, Syslinux? I've built my Mini Linux using these steps: Steps in Building Base Mini Linux Distro 0 . Compile the kernel and see the ...
1
vote
0answers
355 views

How customize initrd via linuxrc

I have the need to use the same disk and so the same bootloader on devices with different motherboard. Each motherboard has it's own way of mapping devices so sometime the bootdisk is mapped ad hda ...
1
vote
0answers
258 views

not all initrd.img's are born equal?

I am trying to get a Red Hat 5.8 box booting via pxe. The box is a virtual machine on ESX5.0 it has a Paravirtual SCSI Controller and VMXNET3 network driver. Now these drivers do not come default in ...
1
vote
0answers
693 views

Configure vmware-tools without an initrd image?

Is it possible to run vmware-tools without an initrd? I don't know why I should use an initrd and it makes my kernel compilation more complicated. I can boot into my kernel without initrd but when I ...
1
vote
1answer
937 views

GRUB freezes after loading initrd unless exact steps are taken

I have a HP Notebook 15-f004wm, which I use as my daily driver. However, there's a strange issue where GRUB "freezes" (a.k.a can't get past "Loading initrd...") whenever I try to boot. The only way ...
0
votes
2answers
557 views

is /sbin/init an executable?

# Mount the root filesystem. 1 .mount -o ro /dev/sda1 /mnt/root # Boot the real thing. 2 .exec switch_root /mnt/root /sbin/init This is a piece of code from /init file of initramfs as mentioned in ...
0
votes
2answers
1k views

How to pack an extracted initrd (x-cpio archive)?

I am customizing an Ubuntu 20.04 ISO, in this process, I have to edit the files inside initrd file which is inside the casper directory Ubuntu20.04-ISO/casper/initrd How to recompile this file type of ...
0
votes
2answers
158 views

Linux 2.4.0 - How to Create a Root Filesystem for a diskless install

I have a really old build of Linux (version 2.4.0). Please don't ask me why I have such an old version since it's for a very specialised bit of old hardware. Anyway, problem is, I get this message ...
0
votes
1answer
1k views

qemu can't run linux kernel

I saw this question and I did pretty much the same but I enabled initrd in configuration to use temporary root file system and no other modification but I still get this error on: qemu -kernel linux-...
0
votes
1answer
246 views

Problem extracting the “initrd” archive in kernel 5.4

I can see my initrd is occupied almost 90 MB of disk but after extracting it via cpio , it contains only a 30 KB microcode : $ cpio -it < initrd.img-5.4.0-18-generic . kernel kernel/x86 kernel/...
0
votes
1answer
1k views

How to copy the /bin files along with dependencies using commands?

The /bin folder of Ubuntu 14.04 has files with dependencies. I want to copy the symbolic links along with the files, into a separate directory. Is there an inbuilt command for this?
0
votes
1answer
2k views

How to create initrd.img from initrd.lz

I need to create initrd.img file from initrd.lz file. How may I do this?
0
votes
1answer
253 views

In a systemd initrd, how do I persist a mount into the new root

Background I'm building a custom initrd using dracut. It: mounts an ext4 disk partition to /data retrieves a squashfs image over the network, which it stores in /data mounts the squashfs mounts an ...
0
votes
1answer
72 views

kernel sysfs doesn't recognize storage kobjects [closed]

I am using ubuntu kernel 4.xx with corresponding ubuntu initrd.img, and it works. But, I want to use a custom initramfs inspired by lfs (linux from scratch) initramfs. The kernel extracts, and runs ...
0
votes
1answer
3k views

GRUB Can't find sda partition

I have dualboot on my laptop with windows being the primary OS. Today after my linux os froze I hard rebooted the laptop. After that I got a kernel panic. I've been trying to solve it using GRUB. I ...
0
votes
1answer
6k views

How to change the kernel on Kali Linux live usb persistence?

I am using Kali Linux on a bootable USB with persistence. I have updated it using all the update/upgrade/dist-upgrade commands. When I tried to install VMware I noticed a problem with the kernel. It ...
0
votes
1answer
512 views

Running code before initrd has been removed and after the root filesystem has been mounted

I looked here Kernel boot process and I tried to understand how to run a script before initrd filesystem removed and but after the root filesystem has been mounted (EncFS), If I understand it ...
0
votes
1answer
1k views

how to add application to initrd.gz

I have an initrd.gz (from linux parag*n live cd) I want to edit the file inside and add app like apache,ophcrack,etc. So far I've done extracting by following these step wiki.ubuntu.com/...
0
votes
1answer
346 views

How are the services exactly starting in (K)Ubuntu?

I have latest Kubuntu. I have installed mysql. I was looking into the /etc/init. I see the following: In /etc/init/mysql.conf description "MySQL Server" ...
0
votes
2answers
4k views

Kernel/grub : how override root parameter inside initrd script

I have an old kernel ( 2.4.37.9 ) and I want to override or substitute the root=XXXXX parameter to send to the kernel inside the initrd script. I already made some attempt to do that but it seems ...
0
votes
0answers
31 views

How to repack the initrd file of debian?

I want to customize the initrd, so I try to extract and repack the initrd from Debian 11(kernel 5.10.0). But after I repack the initrd(gzip), I found that: initrd file is larger than before.(41.8MB &...
0
votes
0answers
43 views

grub2: specify http location for linux and initrd in grub.cfg

I am trying to configure network boot to install different Linux OS versions on PowerPC environment. I have an CentOS source machine with httpd, dhcpd and tftp configured. My http server is hosting ...
0
votes
0answers
20 views

How to update pci.ids in initrd

I am trying to make my network card work during a CentOS 7 PXE installation. Using inst.dd with the involved rpms/isos does nothing at all, so I was trying to follow CentOS 7.6 - Initrd.img not ...
0
votes
1answer
701 views

CentOS 7.6 - Initrd.img not loading updated driver

I have been trying to load an updated initrd.img file with updated drivers on booting the Centos 7.6 ISO, however it seems to still load the old driver even though I have replaced the driver. Steps ...
0
votes
1answer
38 views

initrd and intramfs purpose confusion

My understanding of the purpose of having initrd or intramfs is for the kernel to be able to mount a temporary file system in RAM to load drivers and other things in order to be able to mount the ...
0
votes
1answer
146 views

Ubuntu 18.04.3 netboot PXE fresh installed boots up with Ethernet not managed by Network Manager

I'm trying to set up a PXE server to deliver Linux image for end user workstation in my company. I've finally made it to set up dnsmasq and nfs-kernel-server so now I can get the images via network ...
0
votes
0answers
142 views

trap signal in bash initramfs fails to work

inside /init bash script executed by the kernel in initramfs.img i need to send a signal to drop me to a rescue shell, so i have trap "exec /bin/bash" SIGINT but ctrl+C isn't effective. First why ...
0
votes
0answers
682 views

Accessing initramfs-tools features in Yocto generated initramfs image

I would like to load a few kernel modules, and activate framebuffer access prior to Plymouth launch. This is normally done using /etc/initramfs-tools directory provided with the initramfs-tools. ...
0
votes
1answer
2k views

uCLinux (linux 4.9 nommu) VFS: Cannot open root device “(null)”

I'm stuck with this kernel panic. What I want is to embed an initramfs into the kernel xip Image, but linux panic and tell me to pass a valid "root=" rootfs value. But WHY does Linux look for this ...
0
votes
1answer
98 views

linux + dose each security kernel rpm will install the relevant initrd and vmlinuz files under /boot

I just print the kernel rpms that need to install on my redhat machine (version 6.5) # yum list-security --security | grep kernel-[0-9] RHSA-2014:1143 security kernel-2.6.18-371.12.1.el5.x86_64 ...
0
votes
1answer
1k views

How to extract initrd image from RHEL iso and put a script in initrd /bin/

I have written a customized shell script(command) ,which i want to put in initrd /bin and then, i want it to be copied to Linux OS /opt/xyz directory .Where xyz is customized directory created during ...
0
votes
0answers
2k views

New Fedora Install Hangs on Initrd Default Target

I am attempting to install Fedora 19 on a brand new system. Here is my HW. Intel Core i5-6500 6M Skylake GIGABYTE G1 Gaming GA-Z170X-Gaming 3 (rev. 1.0) LGA 1151 Intel Z170 HDMI SATA 6Gb/s USB 3.1 ...
-3
votes
1answer
296 views

Which would mount faster initrd or initramfs ? [closed]

I want to boot my linux as fast as possible. I have to make a choice between initrd and intiramfs. Which one should mount faster and have smaller size?

1 2
3