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

Copy folder/files from a custom initramfs to real root when the root_switch is done, and run one of the copied files (best set as systemd service)

In grub.cfg besides the default initramfs I'm using a custom iniramfs menuentry "Custom Install Ubuntu Server" { set gfxpayload=keep linux vmlinuz autoinstall url=http://.....
user avatar
0 votes
1 answer
39 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. ...
user avatar
  • 121
0 votes
2 answers
38 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 ...
user avatar
  • 21
0 votes
1 answer
152 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/...
user avatar
  • 43
0 votes
0 answers
17 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/...
user avatar
  • 21
0 votes
0 answers
43 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)"...
user avatar
0 votes
1 answer
859 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 ...
user avatar
  • 1
0 votes
1 answer
90 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 ...
user avatar
1 vote
1 answer
69 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 ...
user avatar
0 votes
1 answer
367 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 ...
user avatar
0 votes
0 answers
59 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 ...
user avatar
0 votes
0 answers
251 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-...
user avatar
0 votes
0 answers
20 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 ...
user avatar
1 vote
2 answers
125 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 ...
user avatar
0 votes
0 answers
74 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 ...
user avatar
0 votes
0 answers
14 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 ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
0 votes
1 answer
158 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, ...
user avatar
0 votes
0 answers
46 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 ...
user avatar
  • 209
0 votes
1 answer
35 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 ...
user avatar
  • 3
1 vote
0 answers
118 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 ...
user avatar
2 votes
1 answer
160 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 ...
user avatar
0 votes
1 answer
26 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 ...
user avatar
0 votes
2 answers
86 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 ...
user avatar
0 votes
1 answer
64 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 ...
user avatar
  • 123
0 votes
0 answers
92 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.
user avatar
0 votes
2 answers
433 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....
user avatar
0 votes
0 answers
40 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 ...
user avatar
  • 741
0 votes
0 answers
233 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 ...
user avatar
0 votes
0 answers
16 views

ecryptfs in initramfs

I have a dir /encrypted, ecncrypted with ecryptfs and I need to mount /encrypted to /unencrypted during boot process, just after real root has been mounted. I've add mount.ecryptfs to /usr/sbin of ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
0 answers
826 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 ...
user avatar
0 votes
0 answers
56 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 ...
user avatar
1 vote
1 answer
273 views

Raspberry 4 stuck in initramfs

im new on this site so i hope im not making myself look super stupid (beside the fact that my english isnt that best) I got myself a Raspberry Pi 4B with an 64GB SDCard of Sandisk Ultra. Installed on ...
user avatar
0 votes
0 answers
13 views

What is the value for the sof driver module?

I want to put the sof driver in initramfs on debian 11 distro kernel as described [here][1] I want to add the "value" of the module in /etc/initramfs-tools/modules. I am using Intel Baytrail ...
user avatar
0 votes
1 answer
284 views

file system requires manual fsck on boot

Our company is providing customers with a digital signage Kiosk Machine that is running Customized Ubuntu 20.04. Our customers sometimes report that the Kiosk Machine is not booting because they land ...
user avatar
0 votes
0 answers
165 views

How to add Binary into initramfs?

Environment: Debian 11 Kernel: 5.10.0 I try to make my own Debian installer and add binary into initrd. I found that I can't use "mke2fs -t ext4" and "mkfs.ext4" to format my ...
user avatar
  • 21
2 votes
2 answers
426 views

Got error on system boot, need check filesystem manually

Debian, installed on SSD disk. On system boot got error: ROOT: UNEXPECTED INCONSISTENCY; RUN fsck manually (i.e. without -a or -p options) fsck exited with status code 4. The root filesystem on /dev/...
user avatar
  • 1,183
0 votes
0 answers
38 views

How can I make a section of initramfs conditional so that I can choose a different graphics card driver from a menu at each boot?

On Debian 11, I would like to have a menu option at boot up time (like on the GRUB menu) that gives the following options: Debian 11 (vfio) Debian 11 (nvidia) And then I want to have a configuration ...
user avatar
  • 1,011
0 votes
0 answers
43 views

Kernel error code -2 when running /init?

So I'm trying to create a linux distribution that uses as muck Suckless software as possible, and here is the /init script in the initramfs: #!/bin/mksh /bin/ubase-box mount -t devtmpfs devtmpfs /...
user avatar
0 votes
0 answers
144 views

Installing Ubuntu 21.04 with LVM on LUKS2 with integrity check returns errors when generating initramfs

TL;DR: I'm unable to generate initramfs after encrypting volumes with LUKS2 with integrity option and LVM on top of those volumes: cryptsetup: ERROR: first: Source mismatch cryptsetup: WARNING: target ...
user avatar
  • 3
0 votes
0 answers
158 views

How to modified vmlinuz&initrd.img in correct way without update-initramfs -u command?

I had mad a Ubuntu LiveCD USB stick in persistent mode.Follow this article I install Nvidia driver, Cuda in chroot environment. The finally what I want is boot in persistent mode. And run nvidia's ...
user avatar
  • 25
0 votes
0 answers
19 views

Ubuntu dosnt load and show initramfs command

I installing ububtu 20 in old pc. The problem is ubuntu dosnt load and stay in this page. I try many ways but dosnt work. I decided to show thus error here mabe any one can help me
user avatar
  • 1
0 votes
0 answers
121 views

How can I avoid a circular dependency when building out of tree module and kernel with initramfs?

I'm cross compiling a kernel and have an out of tree kernel modules provided by a device vendor. Originally the kernel was built, then the module which worked fine. Now I'm trying to enable initramfs ...
user avatar
0 votes
0 answers
47 views

older Linux kernel does not boot with newer distro

I have to install a self compiled 4.17 kernel on a new Ubuntu 21.04 distro and run into the issue, that the system seems to be stuck after printing "Loading initial ramdisk...". Same problem ...
user avatar
  • 101
0 votes
0 answers
18 views

How do I know what moduels are required for wireless in initramfs

I'm trying to get wireless to work during initrd/initramfs loading on a rasp pi. I'm on raspbian. The best (only?) resource I could find is this writeup on custom initramfs-tools scripts. This doesn't ...
user avatar
1 vote
1 answer
383 views

Arch boot: Echo asterisks when typing cryptsetup password

I am trying to setup my initramfs with mkinitcpio -P so it decrypts my LUKS/LVM partition containing the root file system on startup. I followed the steps on here . Everything already works fine, by ...
user avatar
  • 21
0 votes
1 answer
83 views

Is it possible to have separate initramfs images with different versions of the same DKMS module?

I'm wanting to have a setup where I can essentially have two versions of the NVIDIA driver kernel module installed at the same time. I want to go about this by having two initramfs images to boot from ...
user avatar
  • 1
0 votes
1 answer
393 views

Ubuntu VG Missing On Boot, Can Recover with LiveCD. How to Edit Grub.conf?

Running Ubuntu 20.04, I did what I thought was a simple apt update/upgrade (nvidia drivers) and then I rebooted. I get the error: Begin: waiting for root file system lvm : error while loading shared ...
user avatar
  • 101
0 votes
1 answer
1k views

systemd says "networking.service failed" but network is up

Normally, I run Gentoo with openrc init, but am installing a Debian 10 server and having some trouble understanding systems. The server boots via a custom dracut initrd which created a bonded network ...
user avatar

1
2 3 4 5
9