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
0answers
17 views

Switching rootfs fails with permission errors - how to debug?

I'm poking around in modifying a bespoke Linux distribution and I found that it's not booting because it cannot switch to the target rootfs in the last step of the init. It essentially does the ...
0
votes
1answer
1k views

Stuck in BusyBox initramfs while booting Parrot OS 4.7 I don't know what to do

I installed Parrot OS 4.7 on Dual Boot with Windows 10 and this happens during booting I tried deleting the partition and reinstalling Parrot OS again but still the same issue! As you can seeThe image ...
0
votes
0answers
40 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 ...
18
votes
7answers
24k views

Why do I need initramfs?

I found out that if I choose jffs or sd as filesystem (and not initramfs), the kernel size will be very small (1.4 MB as compared to with initramfs which is 3.4MB). It means that initramfs takes ...
1
vote
0answers
41 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 ...
2
votes
1answer
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 ...
0
votes
0answers
10 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 ...
5
votes
1answer
14k views

Arch Linux in Qemu : Failed to access perfctr msr error

I got the Arch Linux (march build) iso file through bittorrent lately. I tried to run it in VM, but it only gets up to the main screen (The screen where you select what you want to do) shown below: ...
0
votes
1answer
14 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 ...
1
vote
5answers
9k 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 ...
0
votes
1answer
27 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 ...
3
votes
2answers
11k views

Missing modules (cat /proc/modules; ls /dev) and UUID doesn't exist in BusyBox

I'm stuck in the boot and can't open any terminal. When I try to boot my laptop it shows the following error: Gave up waiting for root device. Common problems: -Boot args (cat /proc/cmdline) -Check ...
0
votes
1answer
21 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 ...
4
votes
1answer
3k 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 ...
0
votes
1answer
13 views

Initramfs error code 8 after booting to Windows on other hard drive

I have multiple hard drives on my computer with different partitions, with different Windows installations and older (malfunctioning) Ubuntu versions. When I change my hard drive boot priority in the ...
1
vote
1answer
57 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.
5
votes
1answer
3k views

“cryptsetup: ERROR: Couldn't resolve device” combined with “cryptsetup: WARNING: target 'sda3_crypt' not found in /etc/crypttab”

After setting up hibernation on ubuntu 20.04 and modifying it that it works for encrypted swap partitions, I'm getting several issues: First, after rebooting from hibernation, I got "Gave up ...
1
vote
1answer
30 views

How does linux know to mount / without /etc/fstab

When /etc/fstab gets deleted/name is changed booting into the machine still works, in addition the root file system (/) is still mounted and on the correct storage device, how does it know to mount / ...
0
votes
1answer
602 views

Pop OS 20.04 LTS | initramfs-tools error on apt

I was upgrading my python3 from 3.8.5 to 3.9, so I (probably shouldn't have) ended up apt removing python-apt. After that, I tried reinstalling it but this error came up: $ sudo apt-get install ...
3
votes
2answers
2k views

Unlock LUKS non-root filesystem partition on boot

I have a system with an unencrypted / partition on Ubuntu 16.04, but with a LUKS encrypted ZFS zpool on 3 partitions. In order for the system to boot properly I want for the LUKS encrypted volumes to ...
2
votes
2answers
13k views

update-initramfs command not found

How can I update initramfs somewhat how it is described elsewhere for adding firmware? For a Debian 10 I get a command not found error. initramfs-tools is installed. root@pc:/home/.../linux-firmware/...
3
votes
1answer
2k 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 ...
1
vote
0answers
31 views

Method to “unzip” and “zip” this boot image with root filesystem folders?

I am struggling with "unzipping" and "zipping" back this root filesystem from my bootable usb. I have found some similar questions but they are too old, i think, and maybe the root ...
0
votes
0answers
17 views

init unable to find root device on computer in restoration

I'm a bit out of solution on this one : I am restoring an old computer (15 years old...), which was running archlinux. I have inadvertently erased the pacman package database (and all /var ...), and I ...
1
vote
1answer
2k views

Unable to boot into Zorin OS - ending in BusyBox

I'm running Zorin OS 12.2 (downloaded and installed in September 27th this year) on a Dell XPS 13. I installed Zorin instead of the pre-installed Windows 10 (I'm aware that Dell XPS ships with Ubuntu ...
0
votes
0answers
19 views

Clonned Linux from USB

I have several net-top-boxes, all of them has 32GB mSata ssd and linux OS (f25, I guess). Almost all theese devices has same problem time to time, wont boot, freezing while posting, caused by SSDs. I ...
1
vote
2answers
69 views

Don't working Centos7 root password recovery methods

Each time whenever I tried to get in initrd shell i was faced with the same problem "Starting switch boot" and it did nothing... I tried to put rw init=/bin/sh instead of ro in kernel boot ...
2
votes
1answer
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 ...
2
votes
2answers
4k 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 ...
1
vote
1answer
1k views

Dracut will not create images containing modules not in use by the current system

Ok so dracut is not performing as I believe it should and I cannot find a workaround. I have created several images before but now I am trying to create a live boot initramfs to go along with a custom ...
0
votes
2answers
2k views

Ubuntu will no longer boot after upgrade from 20.04 to 20.10

Thanks in advance for the help. I have a Dell Precision 7540 that has Ubuntu 20.10 installed (previously 20.04). It is a pretty normal installation with a single physical nvme disk, with separate ...
15
votes
3answers
8k views

Is the entire kernel loaded into memory on boot?

I read through this popular IBM doc (I see it referred quite often on the web) explaining the function of the initial RAM disk. I hit a wall in conceptualizing how this works though. In the doc it ...
4
votes
1answer
5k views

How to boot into root btrfs file system with minimal initramfs without udev hook?

Arch Linux is UEFI booted from USB flash drive with GPT and three partitions: EFI (vfat file system) root (btrfs file system, was converted from ext4) home (btrfs file system, was converted from ext4)...
1
vote
1answer
2k views

openSUSE stalls at “loading inital ramdisk” in VirtualBox

I am looking to switch to OpenSUSE on my machine. So I decided to test OpenSUSE on virtual box to try it out. But when the installation was complete (with no errors) , the system stops at "loading ...
0
votes
1answer
32 views

how to trigger intentionally to rebuild initramfs and vmlinuz

I was learning to use debootstrap and forgot to include some modules when initramfs was rebuild. Later I copied over what was missing, but the missed files were not included when the system was ...
5
votes
3answers
4k views

Extracting concatenated cpio archives

initramfs archives on Linux can consist of a series of concatenated, gzipped cpio files. Given such an archive, how can one extract all the embedded archives, as opposed to only the first one? The ...
0
votes
1answer
66 views

How to change the language in busybox

I turned off the computer, but when I opened it again, it gave me an error: I find the solution of it,(i need to write fsck /dev/sda8) however my keyboard is in russian, so i can not type anything in ...
3
votes
1answer
3k views

Why is unpacking rootfs image as initramfs slow

I have a new gentoo install and the only boot step that takes time is the one that says: Trying to unpack rootfs image as initramfs... It does take around 10 second at boot time. I tried to read on ...
2
votes
0answers
62 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 ...
0
votes
0answers
21 views

How to configure linux kernel so that it does not require initrd?

What should be done in the menuconfig to compile a kernel which does not require initial ramdisk?
1
vote
1answer
2k views

How to find modules used in initrd?

Is there a way to see all the kernel modules/drivers put in the initrd/intramfs?
0
votes
1answer
46 views

Why genkernel decides to only include 4 modules in my initramfs?

The /lib/firmware in my initramfs-5.*.img has only 4 modules: modules/5.10.12-gentoo/kernel/ ├── drivers │   └── net │   ├── macvlan.ko.xz │   └── vxlan.ko.xz └── net ├── ipv4 │   └── ...
2
votes
1answer
160 views

Do I need to update initramfs on every kernel recompilation?

Suppose that: any kernel configuration regarding initramfs (loading external initramfs support and compression) No RAID or lvm used rootfs uses ext4 Is it really necessary to generate a new ...
1
vote
0answers
77 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/...
1
vote
1answer
110 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 ...
0
votes
0answers
96 views

unable to decrypt luks partition in initramfs

I'm setting up decrypt over ssh and have successfully created an initramfs I can boot into. currently though, whether pasted or typed manually, my password fails to be accepted, but I've confirmed ...
0
votes
0answers
74 views

getting weird errors while installing RHEL on hardware: dracut-initqueue[1063]: warning: dracut-initqueue timeout - starting timeouts scripts

installation of RHEL8 on vmware was very smooth with the same ISO, so i thought to directly install it on hardware (as i faced some issues in the past with debian on hardware so i decided to try the ...
0
votes
0answers
77 views

LVM volume group and its logical volumes not activated during startup on Debian Buster

My LVs in the only volume group I have are marked as "inactive" (vgscan) or "NOT available" (lvdisplay) respectively after machine restart. vgchange -an makes them active / ...
0
votes
1answer
29 views

Fedora and default permissions for initramfs

I'm on Fedora 33 and I would like initramfs to be readable by any user after each kernel upgrade. How can I change its default permissions?
0
votes
0answers
67 views

Booting live OS (Tails) from SD Card

I get the following error while booting Tails from a micro Secure Digital (SD) Card: (initramfs) Unable to find a medium containing a live file system. On boot, my laptop Dell recognizes the micro SD ...

1
2 3 4 5
8