Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [initrd]

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

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
4k views

How can I replace root / filesystem with another filesystem?

When the Linux kernel starts up, it uses initrd as the root / filesystem, then replaces that with a filesystem partition in fstab. Based on a test in an early init script, I want to replace that root ...
Sepero's user avatar
  • 1,619
3 votes
1 answer
521 views

A Small GUI Linux System with UEFI completely running on RAMDisk

I am developing a POS System and I am planning to use Linux. My requirements are as follows UEFI Support. (Running on x86 and x86_64) No Storage Drive so completely running on RAM and persistence ...
NJP's user avatar
  • 53
3 votes
0 answers
5k views

Ubuntu 18.04 LUKS boot problems

Problem description I am trying to achieve dualboot of Windows 10 (pre-installed) and Ubuntu 18.04 on a new laptop. This is not very difficult, however it appears to get much more complex if you also ...
Steiner's user avatar
  • 310
2 votes
0 answers
289 views

Initramfs not reading new configuration/scripts

I am trying to add some custom initramfs scripts to /etc/initramfs-tools/scripts/init-bottom/. However, these are not executed at next boot, after having rebuilt with # update-initramfs -u In fact, ...
Marco Venuti's user avatar
2 votes
0 answers
268 views

Using an initrd/initramfs as the root filesystem

In Android, the initial RAM disk stays mounted throughout the entirety of the time the operating system is running. No switch_root/pivot_root takes place. Is this kind of setup easy to pull off with ...
Melab's user avatar
  • 4,118
2 votes
2 answers
4k 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 ...
sherrellbc's user avatar
  • 2,521
2 votes
0 answers
829 views

Cannot boot kali linux after dist-upgrade, stucks at 'Loading initial ramdisk ...'

I did a dist-upgrade from 4.3.0-kali1-amd64 to 4.4.0-kali1-amd64 but when I restart, the screen stucks at 'Loading initial ramdisk ...'. I had to use the advanced boot options to boot using 4.3.0-...
user962460's user avatar
2 votes
0 answers
2k views

Why do I need to specify two init images - initrd and boot - inside KVM to boot to bash?

My machine is running inside a KVM virtual machine (Parallels Desktop v8), having a BIOS (not UEFI), having one SATA drive connected, one GPT partition on that disk, the partition is ext4 formatted, ...
Pro Backup's user avatar
  • 4,944
2 votes
2 answers
772 views

Script that unpacks a initrd, allows editing of the preseed.cfg and the packs it to cpio and gzip again

I want to program a script that allows what is said in the title. So basically I gunzip the initrd, than unpack the cpio, open vi to allow editing, save, pack with cpio, and gzip again, so nothing ...
Rob's user avatar
  • 21
1 vote
0 answers
967 views

RemainAfterExit not working

I have a systemd service unit, for which I want to enable RemainAfterExit. This runs in a custom intrd. Here is my unit: [Unit] Description=Ask for network config Conflicts=initrd-switch-root.target ...
Gary van der Merwe's user avatar
1 vote
0 answers
114 views

Unable to create an identical initrd on re-compression for Pop! OS 19.04

I've made changes to initramfs, but when i'm repacking, the obtained file isn't identical to the original file I've pulled out the boot image with the help of dd using dd if=INITRD.GZ of=main bs=1 ...
VPraharsha's user avatar
1 vote
0 answers
537 views

How to debug a loop in systemd-shutdown / initrd ? (Arch Linux)

I've recently installed Arch Linux to a virtual disk, under a custom configuration for root on ZFS. This was in using some scripting I've put together for managing a multiboot configuration, with ...
Sean Champ's user avatar
1 vote
1 answer
846 views

stuck at busy box, attempt to boot old linux at another partition

I have, and able to boot with arch Linux with kernel 5.10.34 normally. I have older Linux (linuxmint 20.1) on my sda6 with kernel 5.4.0-72 and 5.8.0-50. I am using grub-customizer. Kindly not answer ...
Adi Prasetyo's user avatar
1 vote
1 answer
1k views

Dropping to initramfs shell

For many years now I've been an avid windows & mac user. Most recently, the growing love-affair between tech corporatists and government bureaucrats has convinced me to take the plunge into the ...
STYX's user avatar
  • 11
1 vote
0 answers
253 views

Difference between initrd.img and a initramfs.img?

an initrd.img sets the stage for the real root file system to take over once done, as I understand it the initramfs.img is a customizable version of the initrd. lets say you are loading to a diskless ...
MacLCM's user avatar
  • 73
1 vote
0 answers
179 views

Initrd - rebooting issue

I recently booted into Root via Ubuntu kernel recovery mode. When I finished what I was doing, and not altering anything in my system, I tried to reboot with shutdown -r now. This started various ...
Paul Benson's user avatar
1 vote
0 answers
189 views

How create RAID 1 on working Slackware 14.2?

I use Slackware 14.2 (with kernel 4.4.14-smp) on sda and I'm trying to create the RAID 1 with additional sdb. I'm using the VM VirtualBox. First, I have cleaned the sdb: dd if=/dev/zero of=/dev/sdb ...
infernalcucumber's user avatar
1 vote
1 answer
1k views

How to boot OpenWRT FROM PXE?

I have downloaded OpenWRT files for PC from OpenWRT site. I have installed DHCP and TFTP (in my LAN) and can boot (other) kernels from them. Now I want to boot these OpenWRT files. I wrote in PXE ...
Dims's user avatar
  • 3,255
1 vote
0 answers
55 views

Take initrd out of the Linux boot process

I have "one" machine which is static. The following never change: CPU, GPU, motherboard, harddrive, keyboard, mouse, USB ports I have dual-boot Windows and Linux (specifically Windows 10 and Ubuntu) ...
Sujay Phadke's user avatar
1 vote
0 answers
259 views

How to add ssmtp into initramfs?

I'm trying to add ssmtp into initramfs. However, I can not find (or compile at the moment) the statically linked version. I guess my only option is adding the current, dynamically linked version. I'...
ceremcem's user avatar
  • 2,361
1 vote
0 answers
380 views

Why can't dd write to /dev/ram0 on Core Linux?

I created an ext2 file-system on /dev/ram0 ramdisk, and mounted it at /mnt/ram. mkdir /mnt/ram mkext2fs /dev/ram0 sudo mount /dev/ram0 /mnt/ram -o rw Reading from ramdisk with dd works. dd if=/dev/...
sherlock's user avatar
  • 646
1 vote
0 answers
377 views

How to boot a debootstrap-ed system bare metal?

I debootstrap an Ubuntu Xenial system as: debootstrap --variant=minbase --include=linux-image-generic,linux-headers-generic,systemd,systemd-sysv,dbus --components=main,restricted,universe,multiverse ...
sherlock's user avatar
  • 646
1 vote
0 answers
178 views

Tntfs.ko - How can I put it in an initrd file? Or load on boot?

I'm trying to load that specific module (for zenworks purposes), but I can't find the right command to put in my server boot. I tried insmod and modprobe commands, but I'm unsuccessful in doing that. ...
firewallcj's user avatar
1 vote
0 answers
87 views

Flavour of initrd

This Arch wiki page says: If you are using a systemd based initrd, you must pass: rd.luks.options=discard How do I query the initrd mini-shell to find out if I am running a systemd-based initrd?...
Tom Hale's user avatar
  • 30.8k
1 vote
1 answer
337 views

How to use only automatically build RAID arrays on Ubuntu?

I have an Ubuntu 16.06 system where / on an SSD primary partition and /home with md RAID0 on four SSD devices. The file /etc/mdadm/mdadm.conf is automatically generated by mkconf and contains no ...
Mikko Rantalainen's user avatar
1 vote
2 answers
301 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, ...
user1902689's user avatar
  • 1,218
1 vote
0 answers
4k 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 ...
TSG's user avatar
  • 1,738
1 vote
0 answers
175 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 ...
user1902689's user avatar
  • 1,218
1 vote
0 answers
464 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 ...
Neal's user avatar
  • 11
1 vote
0 answers
746 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 ...
Peter Hausdorff Smith K.'s user avatar
1 vote
0 answers
391 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 ...
enzo1959's user avatar
  • 383
1 vote
0 answers
262 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 ...
Gerhardus Geldenhuis's user avatar
1 vote
0 answers
712 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 ...
Cybercartel's user avatar
  • 4,221
1 vote
1 answer
2k 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 ...
InitializeSahib's user avatar
0 votes
0 answers
52 views

noinitrd is ignored, always runs initrd copy of /init

I use an initrd currently on an imx8 processor that uses buildroot for a base filesystem. (kernel is 5.10.52) For debugging purposes, I want to bypass the initrd and load the filesystem I copied to a ...
Floyd Brown's user avatar
0 votes
0 answers
63 views

Linux without initrd: unable to mount rootfs

Setup Partitions: # fdisk -l /dev/sda ... Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 51199 49152 24M c W95 FAT32 (LBA) /dev/sda2 51200 204799 153600 75M 83 ...
GooseDeveloper's user avatar
0 votes
0 answers
600 views

Alpine linux how to load system into RAM

I need advice if possible to load entire system into RAM. Let's imagine following situation: Booting LIVE OS from DVD and login as root lsblk shows NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 ...
Rafal Niznik's user avatar
0 votes
1 answer
390 views

Is it possible to suppress initramfs logs during shutdown?

There are quite a few Linux kernel parameters that can prevent the boot and shutdown logs from appearing on the screen. I was able to set the following kernel parameters to achieve a completely silent ...
Rtsne42's user avatar
  • 187
0 votes
2 answers
313 views

Why initrd size is not fixed?

After update-initramfs -c -k KERNELVERSION(I didn't do any change and just type this command), the initrd will always has different size with the previous initrd. And this situation happen on Debian ...
Azreal's user avatar
  • 45
0 votes
0 answers
434 views

Adjusting a RHEL 8 install for a machine without a hard drive?

I've been working with a custom RHEL 8 image (basically the official ISO but with a kickstart for packages/configuration) on a CD and have gotten it to install without issue on a piece of hardware ...
eakirk16's user avatar
0 votes
2 answers
2k views

Kernel panic - not syncing: Requested init /init failed (error -2)

Attaching a bit more of the boot log. HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages HugeTLB registered 2.00 MiB page size, ...
rish_1n4's user avatar
0 votes
0 answers
325 views

Unable to auto-mount encrypted filesystem.squashfs of Debian Live CD

Part 1 I've created a live ISO image of my system using 'live build' tool on a Debian system. For automated installation i've used a preseeding file. To protect my senstive data I'm using LUKS ...
Dheeraj -'s user avatar
0 votes
1 answer
49 views

tput from initrd

I have a script that uses tput and runs in a initrd. Specifically I'm using tput -T linux [sc|rc|ed] > /dev/tty0 to overwrite multiple lines. When I run in a qemu vm, it works perfectly. When I run ...
Gary van der Merwe's user avatar
0 votes
0 answers
227 views

/dev/sde install disk is seen as /dev/sda at boot time

I'm SystemImager image deployment software developper. I'm trying to support external disk drivers, but I'm stuck with a silly problem. When I run preinstall scripts (udev has already settled) I fetch ...
Olivier LAHAYE's user avatar
0 votes
1 answer
179 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 ...
Engineer999's user avatar
  • 1,161
0 votes
0 answers
349 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 ...
Error's user avatar
  • 391
0 votes
0 answers
1k 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. ...
mozcelikors's user avatar
0 votes
1 answer
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 ...
SecureTech's user avatar
  • 1,389
0 votes
0 answers
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 ...
RookieBeotch's user avatar