Questions tagged [initramfs]

The "initial RAM file system" is the successor of initrd. It is a root filesystem that is embedded into the kernel and loaded early in the boot process.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

How to make a common /boot partition for multiple linux distros?

I'm trying to multiboot windows along with two linux distros namely Parrot OS Electro Ara and Ubuntu 20.04 and grub and bootloader was initially installed by Parrot OS. So to not interfere that I ...
1 vote
2 answers
39 views

how can I make sysfs parameter value persist for each reboot?

I have to write some sysfs parameter files and each reboot. I wonder if there is a way to automatically set those as early as possible, preferably even during initramfs. Is there canonically way to do ...
  • 1,010
0 votes
0 answers
26 views

Constant ext4 corruption

For the second time now in about 6 weeks, my Proxmox root has reported ext4 errors and I've had to fix them by booting into initramfs and running fsck.ext4. There's one file I can't seem to delete - ...
  • 1,470
2 votes
1 answer
32 views

How do I view contents of initramfs.img in Debian-based distributions?

I often have open questions regarding the booting of a machine with GNU/Linux installed. In such cases, it could be helpful to view which files are present in the initramfs image. I have googled for a ...
2 votes
1 answer
55 views

Preventing boot prompting twice for encryption passphrase on Debian based OS

A friend of mine has Debian without systemd running on a disk with full disk encryption (including /boot on the same partition as / using LVM). She is prompted twice for the encryption password when ...
0 votes
1 answer
20 views

Is initramfs expandable when embedded in kernel?

If I embed initramfs in the kernel image, (I can do this by setting the config variable for the iniramfs file source location, and initramfs becomes located in data section I guess), and after I boot ...
  • 305
0 votes
0 answers
23 views

initramfs on zram

I use a minimal initramfs as my root filesystem which I load from the network. Since the initramfs is just there to get the system started (and I have no other rootfs) I'd like ir to take up as little ...
  • 1
1 vote
1 answer
47 views

How do I uncompress or unarchive the contents of initramfs img file in Arch Linux?

I have been using Arch Linux for a while and studying about the initramfs. I thought of looking into the contents of the file to get a clear idea of it. I googled for various ways to peek through the ...
0 votes
0 answers
36 views

how can I omit modules with initramfs-tools?

In debian-like distros, initramfs-tools is used to automatically generate ramdisk. I only find options to add extra modules via initramfs.conf or /etc/initramfs-tools/modules. But how can I blacklist ...
  • 1,010
0 votes
1 answer
114 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 ...
0 votes
0 answers
41 views

Root partition encrypted with LUKS and Yubikey to Decrypt (problems with initramfs)

I am working on a Raspberry Pi 3B v1.2, and I have already encrypted my root partition of the OS with LUKS. The problem is that I would like to decrypt it or have the appropriate password to decrypt ...
0 votes
0 answers
70 views

How to mount / as overlayfs without an initramfs?

Suppose I want to mount / directly as the overlayfs, is this possible without using a initramfs? Let's say in my /etc/fstab I have: /dev/sda1 /boot /dev/sda2 / Now mkfs.ext4 -F /dev/sda3 mkdir /...
  • 3,422
0 votes
1 answer
44 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 ...
  • 179
1 vote
0 answers
135 views

Clevis auto decrypt not wokring ( Kali 2022.2 + LUKS + TPM2 + Clevis )

I cannot figure out how to get clevis to auto-decrypt my root partition on boot. What I want I want to use the TPM2 chip on my kali PC to have an encrypted disk that self-decrypt on boot. The main ...
  • 11
0 votes
0 answers
241 views

/etc/crypttab not updating in initramfs

I have a new installation of ubuntu 22.04, with full disk encryption (LUKS) and ZFS picked from the ubuntu installer options. I need to make some edits to /etc/crypttab so that unlocking my drives ...
0 votes
0 answers
73 views

How to use initramfs hooks?

I am building linux kernel 5.15 and I want to build an initramfsimage with a hook script. Where I should keep my script? Is it in the /etc/initramfs-tools/hooks/ or in /etc/dracut.conf.d? Which ...
  • 177
4 votes
1 answer
234 views

How do I tell whether an update will require an initramfs update?

Sometimes, when running sudo apt-get upgrade, towards the end there are lines like: Processing triggers for initramfs-tools (0.133+deb10u1) ... update-initramfs: Generating /boot/initrd.img-5.10.103-...
0 votes
1 answer
335 views

Initramfs error when apt-get upgrade

I'm getting an error everytime i do an apt/apt-get upgrade. I've searched everywhere online for solutions but couldn't find anything Here's the error i get code: apt-get upgrade Reading package lists.....
1 vote
2 answers
686 views

initramfs got corrupted/ misconfigured, how to boot properly?

How to boot properly, fix the boot loader? Why my initramfs-fallback have higher size than newly created? (use mkinitcpio instead update-initramfs on arch) -rw------- 1 root root 29MB Mei 30 06:49 ...
0 votes
1 answer
470 views

update-initramfs is disabled (live system is running without media mounted on /run/live/medium)

I'm trying to install nvidia drivers by following steps in this site. But I'm unbale to update initramfs as the title says, its showing: I: update-initramfs is disabled (live system is running ...
0 votes
1 answer
187 views

Dropbear ssh server immediately quits after startup

I built a linux kernel (v. 5.17.1) with default config and created a minimal root fs using buildroot (both for x86_64). I modified the configuration of buildroot to use glibc and added DHCP for eth0. ...
  • 121
0 votes
2 answers
123 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 ...
  • 21
0 votes
1 answer
747 views

update-initramfs does not fully create initrd for new kernel

I seem to be having a bizarre problem installing a new custom kernel. update-initramfs fails during dpkg -i with: update-initramfs: Generating /boot/initrd.img-5.15.7-hardened1-test1 find: ‘/tmp/user/...
  • 75
0 votes
0 answers
44 views

How to copy shared library into initrd?

My initrd cannot convert text file from UTF-16 to UTF-8 by "iconv" and it seems to be caused by there is no the folder "/main/lib/x86_64-linux-gnu/gconv/" and the file "/main/...
  • 21
0 votes
0 answers
121 views

raspberry pi initramfs busybox ping bad address but nslookup works

I already read: Busybox ping IP works, but hostname nslookup fails with "bad address" I have the exact same symptoms. cat /etc/*release* PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"...
0 votes
1 answer
3k views

Error message here end Kernel Panic - not syncing: attempted to kill init! exitcode=0x00007f00

My OS crashed while I was using normally the navigator and a text editor, so I've decided to force the shutdown manually, when the screen turned on and it was loading the OS it appeared that busybox ...
  • 1
0 votes
1 answer
278 views

Boot taking forever with a 106 JBOD attached. - WARNING: Device /dev/xxx not initialized in udev database even after waiting 10000000 microseconds

When attaching a 106 JBOD enclsoures (106 18TB drives via HBA card) to a Debian Bullseye server, i get spammed with the following for each path to any of the 106 drives. It makes a reboot take a huge ...
1 vote
1 answer
165 views

update initramfs every time rpm is installed or updated

i am working on rpm which contains kernel modules to be installed in to /lib/modules/<uname -r>/updates folder. Since the module is part of initramfs. when ever i install rpm i have to manually ...
0 votes
1 answer
1k views

Decrypting a full disk LUKS encryption manually from initramfs

I recently installed a fresh Ubuntu 20.04 image on my laptop while doing so i chose a full disk encrpytion using a password. (I think it is LUKS but I do not know how to verify this). For some reason ...
0 votes
0 answers
176 views

how does switch_root command make /sbin/init in the new filesystem pid 1 process?

when kernel boots into initramfs, an init process is started and do some preparations for the real rootfs. when the real rootfs is ready, the init process in the initramfs should hand over to another ...
0 votes
0 answers
328 views

cryptsetup uuid problem in initramfs while mounting btrfs

I have a BTRFS disk array, where all disks are LUKS2 encrypted. During the bootup, I unlock disks 1 by 1 using cryptsetup open. After that, I want to mount the BTRFS array using mount /dev/mapper/one-...
0 votes
0 answers
26 views

Is my old HP laptop preventing Linux from running smoothly?

I have an older HP laptop. I don't know all the specs but I believe it is a G60 notebook with a dual core intel pentium processor. It used to have Windows Vista on it. I don't remember the exact hard ...
1 vote
2 answers
314 views

Custom Build - Unable to mount filesystem

So I'm building a custom Linux-based OS, and I chose to run it as a RAM disk (initramfs). Unfortunately, I keep getting a Kernel Panic during boot. RAMDISK: gzip image found at block 0 using ...
0 votes
1 answer
155 views

initramfs: set resolution / rotation on bootup

I have a laptop with a peculiar screen setup. The machine has an i915-based graphics adapter, and the screen is configured to be sideways by default. Everything looks good in rEFInd, but when booting ...
0 votes
0 answers
24 views

PPP connection in initramfs

I have Debian installed on LUKS encrypted partition, and I don't have an external router, so the system handles ppp connection to the internet after bootup. I wanna be able to remotely unlock ...
0 votes
0 answers
64 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 ...
0 votes
1 answer
326 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, ...
0 votes
0 answers
104 views

Why do all systemd experiences(drop-in configuration, add new service, etc) not work in initramfs?

I am trying to customize a centos7.6 initramfs by adding a systemd service to do something before fsck get called or ideally immediately after the rootfs device get created. I have experiences on how ...
  • 229
0 votes
1 answer
70 views

how to interrupt command initramfs

I have made a huge mistake. I'm currently loaded into initramfs, trying to fix an error similar to this post. I decided to cat /dev/XXXX, where I'm pretty sure XXXX is the main partition where Ubuntu ...
  • 3
1 vote
0 answers
234 views

Unable to run fsck on boot Archlinux

I'm running Archlinux on ODROID-N2+ with Petitboot (based on Uboot) bootloader. I followed the archlinux wiki to enable fsck on boot, but it still never runs. I have fsck set as the last hook in ...
2 votes
1 answer
269 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 ...
0 votes
1 answer
50 views

"Error: Timeout reached while waiting for PID 212" while decrypting LUKS over SSH

I've been trying to open a LUKS container via SSH using dropbear and initramfs/initrd image. My setup works well. I mean, I log via SSH to the target machine, then I see the prompt saying Please ...
0 votes
2 answers
412 views

Stuck in initramfs after reboot

I got that error already twice while having my laptop, and I previously were able to fix it after them google search and switching to AHCI in BIOS. However, this time it seems to be another problem ...
0 votes
1 answer
141 views

How to compile and install kernel.org kernel on a separate partition and then setup dual boot

That question: Compiling and installing a kernel.org kernel to a custom volume on disk partially answers my question, however, not completely! I have a disk with 30GB capacity. It has 2 partitions ...
  • 123
0 votes
0 answers
143 views

Elementary OS stuck, doesn't boot

I have no idea what went wrong. I know how to chroot. I am a student and this is my only computer. I have some urgent work pending so please help me if you can. I have encrypted luks drive.
0 votes
2 answers
557 views

Regular update broke initramfs on Elementary OS 6

NOTE: I have above average Linux experience but not an elite. I have an Nvidia GTX 1650 laptop card. I use Linux XanMod CacULE kernel. I use the latest Mesa and Nvidia drivers from http://ppa....
0 votes
0 answers
64 views

Docker: prevent useless update-initramfs from running (with FROM ubuntu:20.04)

I am using FROM ubuntu:20.04 as base image in Dockerfile. Installation of some packages (I suspect wireguard-tools, there is VPN running inside the container) triggers update-initramfs run, which ...
  • 741
0 votes
0 answers
395 views

GRUB is very slow after upgrading to an NVIDIA GPU

I'm using Debian for almost 7 years now and it runs flawlessly. I have been using an AMD GPU for most of the time, but now I've purchased a NVIDIA RTX 3070 card for my system. I've performed a fresh ...
1 vote
1 answer
3k views

update-initramfs: failed for /boot/initrd.img-4.15.0-112-generic with 1

descriptions: when i run dist-upgrade i ran into the problem with below detail 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. perl: warning: Setting ...
0 votes
0 answers
1k views

Error in updating initramfs in ubuntu 20.04

I was installing a Linux kernel(version 5.6.0-rc+) on Ubuntu. For that I compiled the kernel as follow: sudo make ARCH=x86_64 x86_64_defconfig sudo make -j256 sudo make modules sudo make ...
's user avatar

1
2 3 4 5
9