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
3
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
2answers
68 views

Grub: boot with USB key, then continue booting from SD card?

I have an old laptop that has a built-in SD card reader, only it's not available at boot. I can however grub boot linux (Debian) from a small 8GB USB key (USB 2.0), but it's very slow. The SD card is ...
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
9 views

Failed to connect to lvmetad after shrinking linux partition with cfdisk

WARNING: Failed to connect to lvmetad. Falling back to device scanning. Device /dev/sda2 has size of 1113587712 sectors which is smaller than corresponding PV size of 1952473088 sectors. Was device ...
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
votes
0answers
118 views

Can't boot on Linux Mint after kernel updates

I'm using Linux Mint right now, Mint comes by default with the Kernel 4.15 which works very good, but this week I installed the 5.3.0-19 version that works fine, but then I found a critical problem in ...
2
votes
1answer
79 views

file /proc/cmdline is empty

I'm having a problem to boot my system, because the initramfs which should get its values from /proc/cmdline, such as the root device, isn't able to obtain any value, and that's because this file is ...
1
vote
1answer
1k views

SW RAID-1 grub-install

I just changed /sda system disk in SW RAID using following steps, simply put: sfdisk -d /dev/sdb | sfdisk /dev/sda mdadm --manage /dev/md0 --add /dev/sda2 Now disk is initializing chcked by: cat /...
0
votes
1answer
31 views

Where is the documentation for the IP variable in initramfs.conf?

Multiple sources, including this one, mention using the IP variable in initramfs.conf to set a static IP address in the pre-boot environment, and I have used this successfully in the past. However, ...
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 ...
0
votes
0answers
48 views

Initramfs not able to mount /system

I Built 3.18 kernel for my android device. its stuck at init where the init is supposed to find the /system from Android DT and mount it , unfortunately it fails to find the location the error from ...
2
votes
1answer
24 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 ...
1
vote
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
2answers
271 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
211 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
92 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?
1
vote
1answer
181 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
vote
0answers
31 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
140 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
102 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
39 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
37 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 ...
4
votes
2answers
16k 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
1k 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
218 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
42 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 ...
19
votes
1answer
13k 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
38 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
114 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
43 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
205 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
806 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
585 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 ...
3
votes
1answer
187 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
107 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 ...
0
votes
0answers
120 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. ...
1
vote
1answer
232 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
111 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
49 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. ...
2
votes
2answers
197 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 ...