The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
2answers
55 views

Kernel Panic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0)

After updating more than ~1000 things my installation of RHEL 2.6.32-220.el6.x86_64. I get the following kernel panic message: Kernel Panic - Not syncing : VFS: unable to mount root fs on unknown-...
2
votes
1answer
2k 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 ...
0
votes
2answers
90 views

LVM on LUKS FDE: GRUB won't mount my root partition / during boot even though cryptomount and cryptdevice are given in grub.cfg

I have a triple boot setup (3xLinux). All Linuces share /home and swap, and their / partitions are next to each other. All reside in an LVM on LUKS: # lsblk NAME MAJ:MIN RM ...
1
vote
1answer
57 views

How does initramfs mount root filesystem?

The iniramfs is like a small os which mount root file system and hand over control to systemd. So, how does initramfs work internally? Is there any scripts executed to mount the root in linux?
0
votes
1answer
53 views

Boot problems with empty fstab in initramfs

I have recently reinstalled my Linux Mint 19.2 from a USB which went fine. Upon starting the system, though, it get's stuck at initramfs. The error messages above state Mount: mounting /dev on /root/...
-1
votes
0answers
13 views

I have to run lvm vgscan from dracut to boot

New Linux learner here. Appreciate your patience. I'm running Centos7 on Oracle VM VirtualBox. When I start the VM, I get a errors that seem to be related to initqueue timeout. The only way for me ...
1
vote
0answers
19 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, ...
1
vote
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 ...
1
vote
1answer
90 views

Kali Linux (old install) will not boot

Thank you to everyone for the advice, I have tried everything I could think of but nothing seems to solve the problem. I will format the drive and reuse it. I have this horrible feeling the drive may ...
0
votes
1answer
57 views

Disabling Hibernation Boot on Debian Buster

i recently installed Debian 10 Buster with KDE Plasma Desktop to my laptop. When i logon, system starts up the apps while they were open before shutdown. I edited the file /etc/initramfs-tools/conf....
2
votes
1answer
25 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 ...
1
vote
1answer
30 views

How to autoprobe block devices in initramfs?

I am building a custom Alpine image based on isolinux. Basically, I am squashing rootfs, and mounting it as overlayfs. Bootloader does its job fine, kernel loads, but I am stuck at initramfs. Let ...
3
votes
2answers
15k views

Missing root VG, dropped to an initramfs shell

My Linux Mint 17.1 (64-bit) uses LVM on its OS drive (an SSD). I must have done "something" to wreck my system, because last time I rebooted, the boot failed. Instead, I got the message "Alert! /dev/...
1
vote
1answer
500 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. initrafs-tools is installed. root@pc:/home/.../linux-firmware/...
0
votes
1answer
4k views

root file system stays read-only

I am currently trying to start working with an embedded linux device (arm). When I am trying to install packages it fails saying that some /usr/... path points to a read-only filesystem. By looking ...
2
votes
1answer
95 views

initramfs unpacking failed: uncompession error (debian 10) [closed]

I've use debian 8-9-10 in my old Lenovo Idepan 310 without any probelem since 3 years ago, previously I also use Debian 8 in my two asus laptops without problems. Today is my first time seeing ...
1
vote
1answer
3k views

Ubuntu 16.04 stops booting, it has LVM and LUKS encryption configured, superblock restore already tried

Suddenly my Ubuntu 16.04 drops me into an initramfs prompt like this: BusyBox v.1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) Enter 'help' for list of built-in commands. (initramfs) ...
0
votes
0answers
20 views

What does this dracut log output mean? Why is there an infinite loop?

I'm fighting a server with Centos 7 that doesn't start. I've no idea why. I found that I can pass the rd.debug parameter to the kernel and it logs a LOT of dracut initialization messages. 1.6MB in ...
18
votes
1answer
12k views

When would you use pivot_root over switch_root?

I'm wanting to understand the Linux init process better in order to netboot a system over ceph rather than nfs. In the process I've come across two forms of switching root. One called switch_root, ...
4
votes
1answer
13k 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: ...
1
vote
1answer
1k 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 ...
1
vote
0answers
32 views

Early User Space Init Not found

I have been compiling a kernel for my Android device and there is this problem that I have encountered. I have ported the kernel from v3.10.108 to 3.18. I have got the kernel to last part and solved ...
2
votes
1answer
3k 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
76 views

how to populate /sys in a initramfs?

I'm trying to boot an OS (linux kernel) using the debian kernel so i needed to use an initramfs (as everything is builded as modules). But after booting into the initramfs, it doesn't seems to ...
3
votes
1answer
2k 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 ...
3
votes
0answers
42 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 ...
0
votes
2answers
140 views

Why does systemd update trigger to build initramfs?

Today I got a systemd-242.0-3 update (plus some related). After installing that package, terminal shows initramfs is build from scratch. The output is like this: :: Running post-transaction hooks... (...
0
votes
1answer
768 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 ...
0
votes
1answer
445 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
102 views

Grub2/LUKS How to avoid to type the passphrase twice?

I am on the latest OpenSUSE Tumbleweed and this guide has not worked for me. I did everything like in the guide except I did not generate a new random key and added it to the harddisk but used the ...
1
vote
1answer
69 views

Dependency failed for /boot LUKS on external USB drive after Debian update initramfs

Please somebody help me :( after a firmware update my Debian Sid with encrypted LUKS root does not boot clean anymore. At boot, after inserting my passphrase, there are a bunch of messages and a ...
1
vote
1answer
1k views

(Linux) unable to mount from initramfs [closed]

I am trying to install Linux (Debian) on a new laptop. This requires special care because the laptop keyboard needs a kernel patch (and I have not compiled a kernel for about 10 years). Also, because ...
9
votes
7answers
7k views

Hibernation resume fail on linux kernel 4.9.0, Debian 9

I recently upgraded my kernel from 3.16.4 (Debian jessie) to 4.9.0 (Debian stretch). Everything was fine, until I tried to "Hibernate" (suspend to disk). When I use Hibernate option in LXDE, it ...
2
votes
1answer
1k views

Proper manual OS setup on LUKS encrypted drive with non-aes algorithm on yum-based distro (CentOS)

I'm trying to achieve LUKS-encrypted CentOS 7 install with separate /boot partition and lvm on EFI-friendly motherboard. I've done partitioning fresh CentOS install from old CentOS(installed from GUI)...
0
votes
0answers
73 views

Initramfs problem. Alert! /dev/sda9 does not exist. Dropping to a shell!

I installed a new copy of parrot OS and I am facing this issue. I wiped my entire disk and tried again. The same problem has persisted. After entering the 'exit' command. This is the output I get. ...
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 ...
1
vote
1answer
85 views

How to avoid “can't access tty; job control turned off” when boot to initramfs

i'm testing my custom initramfs now, but everytime the log there will have the "can't access tty; job control turned off". The /dev in initramfs has four files: null, sda1, ttyS0. The kernel ...
1
vote
2answers
69 views

Custom initramfs not detected

I have custom initramfs that should start busybox shell. The cpio archive contains directory bin/ with busybox and init. busybox is statically linked binary: bin/busybox: ELF 64-bit LSB executable, ...
0
votes
1answer
30 views

Booting on a x64 machine with BIOS?

I have a packard bell ze7 it's a x64 machine and it only has BIOS. Before I got it, I thought that's a non-existent combination... I'm building Gentoo by hand, my own initramfs, all that good stuff. ...
0
votes
1answer
1k 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 ...
2
votes
2answers
159 views

Kexec into new kernel, but I can't access the initramfs prompt!

I used kexec to successfully load my kernel, but it's just printing dmesg lines. How do I get out of this to drop into the initramfs prompt? Ctrl-Alt-F2 just loads a black screen and ctrl-c does ...
2
votes
0answers
18 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 ...
6
votes
4answers
10k views

Unlock LUKS encrypted Debian root with key file on boot partition

I'm trying to decrypt the Debian root with a key file stored in the boot partition (decrypted partition). This will break the security, but it doesn't matter now. I have to conclude this successfully ...
11
votes
3answers
3k views

Why use cpio for initramfs?

I am making my own initramfs following the Gentoo wiki. Instead of the familiar tar and gzip, the page is telling me to use cpio and gzip. Wikipedia says that cpio is used by the 2.6 kernel's ...
0
votes
5answers
3k 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
1k views

CentOS server failed to mount /sysroot: bad initramfs?

Our VPS SSD host based on KVM has experienced crashes during the last months: I was given just two screenshots of logs from my collegues and no journalctl log at all. We have two other hosts but from ...
0
votes
1answer
153 views

“apt-get dist-upgrade” reports error “depmod: ERROR: Bad version passed uname” and various warnings

Running # apt-get dist-upgrade produced the following warnings/errors: WARNING: missing /lib/modules/uname depmod: ERROR: Bad version passed uname (2 times) dpkg: warning: version 'uname' has bad ...
1
vote
1answer
99 views

What is the relationship between dracut and initramfs?

When experiencing a boot failure I see the system drop to a prompt which says dracut. It is my understanding dracut is used to generate an image of initramfs. What I'm confused about is that based on ...
1
vote
2answers
114 views

Save variable from initramfs (at boot time)

How can I save environment variables at boot time before the real filesystem has been mounted ? I know there is /etc/environment but whithin initramfs that file is not accessible yet. I also thought ...