Skip to main content

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.

186 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
588 views

How to abort/cancel a running command in initramfs?

When I invoke a long-running command, e.g. du, I don't see a way to abort/cancel it (Strg/Ctrl+c doesn't work), other shells/ttys aren't available. Am I completely doomed after having started a long ...
Kalle Richter's user avatar
5 votes
0 answers
5k views

Mounting squashfs image with read-write overlay for rootfs

I am trying to update a custom initramfs init script to mount a squashfs image as the root file system. I have been testing the mounting of a squash image to a loop device in read only, mounting ...
Jose Rodriguez's user avatar
5 votes
0 answers
3k views

How do I add modules, binaries or scripts to initramfs in RHEL distributions?

I have an initramfs script I developed for Debian distributions that required some extra binaries to be loaded into the image. I'm now trying to port this to RHEL distributions and I'm struggling. To ...
dsclose's user avatar
  • 201
4 votes
5 answers
17k views

Kernel cannot find init in initramfs image

I'm trying to get my embedded system to run an initramfs. Right now 'init' in this initramfs does nothing but echo a message to test if it is being ran. My init script: #!/bin/sh echo "HELLO ...
dangeroushobo's user avatar
4 votes
1 answer
4k views

How to debug systemd "init" freeze during boot?

I'm trying to get my own init script running on some ARM hardware and Debian Jessie with systemd. The overall boot concept and init script is almost identical to a x86 variant, which works fine. For ...
Udo G's user avatar
  • 1,123
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,609
3 votes
0 answers
1k views

Stuck on /init with custom CPU

For a university project I was tasked with implementing privilege levels on an existing RISC-V (rv32i) processor with the end goal to have it run Linux. Due to complexity, my project ended with the ...
Harald Øvsthus's user avatar
3 votes
0 answers
590 views

How grub tells kernel where to find initramfs?

In grub there is the following line which loads the initramfs file into memory: initrd16 /<initramfs_file>.img But how actually does kernel knows that its init is in that image ? Is it some ...
ransh's user avatar
  • 1,427
3 votes
0 answers
1k views

rEFInd very slow to load initramfs

I'm trying to switch from grub to rEFInd, and I get much slower boot time. rEFInd itself it fast to load (I disabled auto detect) but when it comes to loading the kernel it hangs on "loading initramfs....
tourdetour's user avatar
3 votes
1 answer
271 views

Making update-persistent changes to initrd in CentOS

I am booting a CentOS image via NFS, which requires a custom initramfs from dracut, with some extra modules. I want the kernel to get updated normally, using yum update. This will automatically ...
Dan's user avatar
  • 133
3 votes
1 answer
2k views

Linux Mint: Error! Your kernel headers for kernel 4.4.0-38-generic cannot be found

After several attempts to fix the issue by myself I've decided to post here, basically everytime I'm running an upgrade I received this error message: fabrizio@fabrix ~ $ sudo apt-get upgrade Reading ...
fdicarlo's user avatar
  • 131
3 votes
0 answers
789 views

How do I bypass entering exit manually at the initramfs prompt?

I installed lubuntu onto my desktop PC and it does not have any other OS on it. Everytime the system boots up, I get to the initramfs prompt. It does not show any errors. If I enter exit, the system ...
Ankit Saini's user avatar
3 votes
0 answers
249 views

Chainload Windows from initramfs

Is there any way to chainload Windows from/within initramfs ? I am having grub on MBR. An entry in grub.conf, Will boot into the initramfs, execute some task and then boot into the windows (of-course ...
SHW's user avatar
  • 14.8k
3 votes
0 answers
753 views

Changing a root file system from initramfs to JFFS2

I am running Linux on an ARM based development board from flash memory. The rootfs is initramfs. I chose this in the configuration utility under "file system". Then I realized that I need ...
gpuguy's user avatar
  • 1,366
2 votes
0 answers
793 views

Failed to mount /sysroot

i get the follow error when try bootar a custom kernel: [FAILED] Failed to mount /sysroot [DEPEND] Dependency failed for initrd root file system. [DEPEND] Dependency failed for Mounts configured in ...
Guilherme Giácomo Simoes's user avatar
2 votes
0 answers
686 views

Can't boot and stuck on BusyBox

When i try to boot on my Linuxmint laptop, i'm stuck on BusyBox with this message -Boot args (cat /proc/cmdline) -Check rootdelay= (did the system wait long enough?) -Missing modules (cat /proc/...
macrico's user avatar
  • 21
2 votes
0 answers
1k views

How to setup tang/clevis failover on headless debian?

Goal: I want to run a debian host with NBDE/FDE: For decryption it should check for a tang server first. If not available it should fallback to manual decryption via SSH (busybox or the like). ...
pico_prob's user avatar
  • 131
2 votes
0 answers
762 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 ...
Raphael's user avatar
  • 21
2 votes
0 answers
669 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 ...
Xystem303's user avatar
2 votes
0 answers
199 views

Mint Linux - Calling update-initramfs from a mounted partition

I'm kind of a newbie to linux. I'm having trouble installing a mint linux on a KVM while passing a nvidia graphics card. The first problem I'm having is the known issue "Initramfs unpacking ...
Matheus Simon's user avatar
2 votes
2 answers
2k views

How do I get a script included in initramfs with dracut?

I am using dracut to create an initramfs to test a script for creating a key in the TPM chip. For now, this script is just a dummy script, so I can see if I've created the initramfs correctly: #!/usr/...
Jeff's user avatar
  • 21
2 votes
0 answers
121 views

Fedora boots to blank screen and never shows login or other text

I tried part of this tutorial and firmly broke my Fedora bootup. Usually when I boot up, the first thing that happens is I get a screen with my available kernels, I select one, and then it goes to a ...
bluesquare's user avatar
2 votes
0 answers
499 views

Custom boot logo without custom kernel?

If you build a custom Linux kernel, you can include a custom logo image that is displayed almost immediately on boot, followed by the regular boot messages (or Plymouth boot graphic). Is there some ...
Miral's user avatar
  • 351
2 votes
0 answers
332 views

Cannot boot from grub / initramfs to desktop in linux mint

Recently I had to download some files for my uni coursework on Docker. I think they were temporarily installed on /var/ and I had to create some syslinks to enable me to have the space to install it. ...
Samuelf80's user avatar
2 votes
1 answer
885 views

How can I change the name of an unencrypted LUKS partition mounted as the root filesystem?

When I installed Linux, the block-device-path of my root LUKS device was /dev/md125 and the unencrypted partition was /dev/mapper/md125_crypt. I have since renamed the MD device to /dev/md0, and now I'...
ATLief's user avatar
  • 308
2 votes
1 answer
382 views

Get packed/unpacked initrd (initial ramdisk) files running again

Ahoy friends. Currently i'm trying to get Parted Magic running on my PXE server providing NFS support. So i had to edit the initrd.img file, had to add the scripts, and everything worked well. But ...
Fabian Druschke's user avatar
2 votes
0 answers
284 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
1 answer
796 views

How can I implement resuming from hibernation in my initramfs script? (swap file on encrypted root partition)

So I messed up and executed echo disk > /sys/power/state instead of echo mem > /sys/power/state accidentally. And then realized what I had just done. Some details about the setup: It's using ...
Hibernating bear's user avatar
2 votes
0 answers
208 views

No network at 3rd stage of PXE Boot

I try to boot with PXE an Ubuntu Image made from debootstrap on a Dell PowerEdge M610 with a Broadcom NetXtrem II (BCM 5709S) (bnx2 driver). When i try to boot, everythings goes well at the bios ...
Asuka ZENKO's user avatar
2 votes
0 answers
722 views

How to tell Linux where initramfs is in RAM

I'm trying to boot a Linux kernel running on top of Xen with a initramfs copied into RAM by the bootloader. In the device tree I took out a chunk of memory so the kernel will not overwrite the area ...
jesse_partman's user avatar
2 votes
0 answers
189 views

How to run adb in initramfs?

Seem my hook is work(sometime first run is failed but again run is seem no any library problem), Seem lack socket support in initramfs?my system is debian 9.Seem normal debian system provide socket ...
illiterate's user avatar
2 votes
0 answers
133 views

Freeze during [update-initramfs -u]: 'unable to enumerate USB device'

While following the Nvidia installation documentation https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-nouveau-ubuntu I had to regenerate the kernel initramfs. I ran the ...
nick88's user avatar
  • 43
2 votes
0 answers
690 views

Disk appears OK, will read/write in LiveCD, will not boot, stops at initramfs/busybox

Installed Ubuntu twice and Linux Mint once onto an SSD that used to be a system disk after Ubuntu was corrupted in upgrade. Every time, I get the same result. When I try to boot from the disk, I get ...
ezgoodnight's user avatar
2 votes
0 answers
1k views

How to mount tmpfs to rootfs?

I am trying to do a factory reset mechanism as a command. For that I am following these steps: Copy the default rootfs files to /tmp Kill all the currently running processes Mount tmp as root file ...
user246936's user avatar
2 votes
2 answers
6k views

ERROR: device '' not found. Skipping fsck (can't boot)

I have a Manjaro Linux installation and after a pacman - syu update (potentially updating the kernel) , and restarting my computer, I get the following error message after grub: [ 4.896409] Initramfs ...
Paradox's user avatar
  • 754
2 votes
0 answers
266 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,058
2 votes
0 answers
4k views

Linux Mint 18 keeps booting to initramfs even after multiple reinstalls

Update: I have successfully repaired my Mint installation using the Super GRUB2 Disk, and can now boot into all my operating systems successfully. Once I was in Mint, I updated everything that needed ...
Wayward_One's user avatar
2 votes
1 answer
3k views

Where are kernel and initramfs files for systemd-boot?

I'm trying to do a fresh install and use systemd-boot as the bootloader for my ESP, but in the install instructions on step 4 it says: Copy your kernel and initramfs onto that ESP. But where are ...
starscream_disco_party's user avatar
2 votes
0 answers
826 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
859 views

Make changes to busybox/initramfs that are persistent?

I am in the process of recovering my 32-bit Debian Jessie box with a lvm+LUKS disk. I am coming back from a system that had a root partition but no boot partition. Grub executes, but either vmlinuz or ...
vespid's user avatar
  • 339
2 votes
0 answers
458 views

How to boot Linux Mint from USB drive via Grub2

I am trying to install Linux Mint Cinnamon 64 bit on a USB drive so I have a portable desktop wit persistence. I am trying to do this manually because I haven't fount a program that does this ...
Hunter Robertson's user avatar
2 votes
1 answer
814 views

How do I prevent the kernel from pivoting and overwriting the initial file system?

How do I prevent the kernel from pivoting and overwriting the initial file system? What switches do I pass to the kernel? Do I need to add any code to the initramfs? I cross-compiled busybox and ...
jc__'s user avatar
  • 2,615
2 votes
0 answers
843 views

Disable KMS on Debian Sid

I've recently started having trouble resuming my Sid laptop from suspend. I'm not sure if this was caused by an upgrade or by me tinkering to try and get a splash screen working, but anyway, I have my ...
Joel Cross's user avatar
2 votes
0 answers
2k views

module scsi_wait_scan not found on CentOS kernel-ml causes kernel panic on boot

I am attempting to upgrade from kernel-lt to kernel-ml, following the instructions here, however on boot the console is flooded with module "scsi_wait_scan" not found This leads to a general kernel ...
sg90's user avatar
  • 81
2 votes
0 answers
1k views

Unable to boot with dracut and luks: '/dev/resume' : file exists

I am installing gentoo and have performed my first reboot after configuration and installation within my chroot environment. I am using LUKS and LVM to manage encryption of my drives. I am encrypting ...
tensai's user avatar
  • 303
2 votes
0 answers
1k views

How to regenerate an initramfs with ash built-in shell?

I foolishly edited my /etc/mkinitcpio.conf and now my computer won't boot. It drops down to (initramfs). It claims it cannot find the root device. However, cat /proc/cmdline shows the correct UUID of ...
curios's user avatar
  • 93
2 votes
1 answer
1k views

Server won't boot, kernel panic - not syncing

After a reboot of a CentOS 6.2 server we are getting a kernel panic with the following error: Kernel panic - not syncing: Attempted to kill init! Panic occurred, switching back to text console When ...
Tbuermann'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,924
2 votes
0 answers
951 views

Booting over the LAN using uboot

I am trying to boot my beaglebone over the LAN. I am able to download the Kernel uImage from the TFTP server. Here is what I did - U-Boot SPL 2011.09-00053-gb423c52 (Aug 10 2012 - 11:26:55) Texas ...
Lord Loh.'s user avatar
  • 1,976
1 vote
0 answers
98 views

Custom Linux kernel build fails at loading initial ramdisk

I have been trying to build my own Linux kernel, but it keeps hanging after Loading initial ramdisk... I am currently using Arch linux, and have tried several different configs. I tried both the 6.8-...
HarlanCheese's user avatar