Skip to main content

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
0 votes
0 answers
23 views

How to limit the number of initrd images kept in /boot under Debian Linux?

initramfs failed to do its job a few days ago and I've just noticed today that my boot partition was almost full because of useless initrd images. Is there a way of telling Debian to keep only two or ...
gouessej's user avatar
  • 111
0 votes
1 answer
39 views

Custom initrd script failing to init "Attempted to kill init"

I am trying to create a custom ramdisk, but it keeps failing right before launching init. Here is the script: https://gist.github.com/amanuel2/f3e8bb9399f3b3bd36a90cd925ecf63d Logs: Edit 2: Logs: ...
amanuel2's user avatar
  • 101
-1 votes
1 answer
40 views

Grub2 not booting initrd

I have a laptop (with UEFI) that used to be able to boot from a usb stick, but can't any more. The problem started when I interrupted a fresh install of Devuan Live. The laptop has a non-removable ...
Bruzzel's user avatar
  • 19
0 votes
0 answers
5 views

How can I see the missing contents of initrd in Debian 12 (bookworm)? [duplicate]

I have a 73M initrd, but it only contains 6.9M of files. Most of what I expect to be in the initrd is missing. root@debian:/tmp/tmp# ls -lAh /boot/initrd.img-6.1.0-18-amd64 -rw-r--r-- 1 root root 73M ...
fadedbee's user avatar
  • 971
0 votes
1 answer
70 views

How do I keep init from pivot_root and stay in ramdisk?

in short, I was not satisfied with the available distros as they are either roo large or are missing the features I need ootb, I also want it to boot it into ramdisk, so I made my own ISO. This ISO ...
qwerty_in_me's user avatar
0 votes
0 answers
87 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
9 votes
2 answers
738 views

Eliminate inclusion of X11 libs in initrd

I'm running Debian Bookworm on a TS412 (QNAP); it stores the kernel & initrd in flash. It has a total of 16MB of flash. So even after tweaking with the MD partitions the best I can get is a 12MB ...
GraemeV's user avatar
  • 178
0 votes
0 answers
69 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
766 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
1 vote
2 answers
967 views

Nixos install results in error during boot of "Timed out waiting for device /dev/dis/by-uuid/... to appear" with external NVME drive via USB

I have an issue when using an external NVME drive, grub successfully boots but once entering the entry default configuration (nixos generation) it gives me the below error: "Timed out waiting ...
Chris Stryczynski's user avatar
4 votes
1 answer
857 views

What happens to the files in directories mounted by initrd , when initrd unmounts

While the linux boots up, initrd is mounted with basic support files and kernel modules, which are needed to help further boot procedure. Later the rootfs is mounted and initrd is unmounted from the ...
Franc's user avatar
  • 299
0 votes
2 answers
1k views

Why is my boot partition full?

When I run run apt-get dist-upgrade, I get update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-6.0....
Evan Carroll's user avatar
  • 32.3k
1 vote
2 answers
2k views

What files are pulled in by update-initramfs?

I need to know what config and data files are pulled in to make the initrd.img-xxx when update-initramfs (mkinitramfs) is executed. I am having a video driver problem that I have narrowed down to the ...
Max Power's user avatar
  • 264
1 vote
2 answers
2k views

How to change default username/hostname for Ubuntu 22.04.1 LTS LiveCD?

I'm trying to edit the default username/hostname for a a custom Ubuntu 22.04.1 LTS LiveCD. I'm understanding I need to edit the /etc/casper.conf file that resides inside $ISO_MEDIA/casper/initrd, ...
joliver's user avatar
  • 111
1 vote
1 answer
854 views

create initrd image compressed with zstd

I have initrd image compressed with xz. This is how I created it from image file initrd: e2image -ar initrd - | xz -9 --check=crc32 > initrd.xz now I need same image compressed using zstd ...
Martin Vegter's user avatar
0 votes
1 answer
565 views

Boot into Xen on debian11 (initrd trouble)

Linux xd 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64 GNU/Linux Edit 2022-07-20 This issue has had comes and goes, at the moment, I am having a lot of trouble when Xen boot lands on ...
Bruno Schroeder's user avatar
0 votes
1 answer
437 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
1 vote
0 answers
1k 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
0 votes
2 answers
363 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
1 vote
1 answer
1k views

decoding failed, system halted during legacy boot (possibly due to large SATA drive attached)

I booted liveUSB stick based on Linux Mint 20.2. After outputting initrd line (one after vmlinuz) I got empty screen with "decoding failed, system halted" (tried twice, error got reproduced)...
Martian2020's user avatar
  • 1,239
0 votes
0 answers
477 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
383 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
5 votes
3 answers
1k views

Where is /cow for Linux booted from LiveUSB?

I wanted to see what files are added on top of ISO 9660 when LiveUSB Linux is running. When booted with persistence upper and work folders are on USB drive clearly seen. I run mount on Linux booted ...
Martian2020's user avatar
  • 1,239
1 vote
0 answers
125 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
0 votes
1 answer
51 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
1 vote
0 answers
581 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
8 votes
3 answers
13k views

Ubuntu 21.04 hangs at "loading initial ramdisk" after kernel update with LUKS

I've reproduced this twice from a fresh install - the setup initially works fine, but when a kernel update is applied, the system hangs on reboot. Selecting the older kernel I have available from GRUB ...
Bereded's user avatar
  • 81
0 votes
0 answers
236 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
1 vote
1 answer
3k views

How to control the OverlayFS size

I'm trying to mount the rootfs / of a Debian Buster system as overlayfs because I'm interested in using tmpfs for the /upper directory. My idea is to use this to preserve the root filesystem integrity ...
jfernandz's user avatar
  • 121
1 vote
2 answers
5k views

How to repair linux after failed to start file system

I have problem with my linux. I always had small problem with my HHD but my PC always could works correctly but yesterday its stuck and I decided to reboot it. After rebooting I get this error. [...
Tomas's user avatar
  • 11
1 vote
1 answer
878 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
2 votes
1 answer
484 views

Why do distros(e.g. Arch) use BOTH initramfs and root={smth}?

I thought the goal of initramfs is to boot a root partition and chroot into it. But I can't understand why do distro developers use initramfs if there is ALWAYS a root={smth} flag.
Mr. Infinity's user avatar
4 votes
1 answer
6k views

How to verify signed UEFI binaries?

I'm trying to understand why secure boot works on my machine. It is enabled in the UEFI config, everything boots just fine, and mokutil --sb-state says SecureBoot enabled. But I think it shouldn't. ...
stribika's user avatar
  • 5,524
1 vote
1 answer
2k 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
3 votes
1 answer
564 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
0 votes
2 answers
2k 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 ...
ferb's user avatar
  • 21
1 vote
0 answers
271 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
4 votes
2 answers
3k views

/boot/vmlinuz file is not present

I am using debian and when I was just checking my filesystem there was no vmlinuz file and after a bit of googling many user with no vmlinuz were having trouble to boot but my computer is booting well....
Sudip Ghimire's user avatar
3 votes
3 answers
9k 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 ...
PRATAP's user avatar
  • 121
1 vote
1 answer
926 views

Ubuntu 20.04 on zfs on root on LUKS on UEFI

I am following https://github.com/openzfs/zfs/wiki/Ubuntu-18.04-Root-on-ZFS but doing it for Ubuntu 20.04. When I get to: update-initramfs -u -k all nothing happens: It returns after 0.1 second and ...
Ole Tange's user avatar
  • 36k
3 votes
1 answer
1k 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/...
Parsa Mousavi's user avatar
1 vote
2 answers
184 views

Why does a shebang script run as init= have an euid of 0 when run from an initrd, but not otherwise?

I am trying to create my own PID 1 init script, to be called from the boot cmdline with init=/myscript. How can I make it work on a real filesystem, with any kernel? When it runs in an initrd, it ...
loser's user avatar
  • 13
1 vote
1 answer
3k 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 ...
luj's user avatar
  • 11
0 votes
1 answer
189 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,171
0 votes
1 answer
1k 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 ...
Gary van der Merwe's user avatar
1 vote
0 answers
189 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
0 votes
1 answer
276 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 ...
mr troubleshooter's user avatar
1 vote
0 answers
192 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
2 votes
2 answers
9k views

Grub: boot with USB key, then continue booting from SD card?

I have an old laptop that has a built-in SD card reader, only it's not available at boot. I can however grub boot linux (Debian) from a small 8GB USB key (USB 2.0), but it's very slow. The SD card is ...
D.A. Reyn's user avatar