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
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 ...
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 ...
-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 ...
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
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 ...
0
votes
2answers
276 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-...
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
182 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, ...
0
votes
2answers
214 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 ...
0
votes
1answer
103 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 ...
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 ...
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 ...
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/...
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 ...
1
vote
1answer
115 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
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 ...
3
votes
1answer
188 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
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 ...
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 ...
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. ...
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 ...
1
vote
1answer
235 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
113 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 ...
2
votes
0answers
23 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 ...
0
votes
1answer
264 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
159 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 ...
0
votes
0answers
87 views

Custom built kernel produces non-bootable initramfs - CentOS 7

I've been building my own kernel (4.19.37) and have no issues during build (make) or install (make install_modules + make install). Everything seems to go fine until I execute grub2-mkconfig -o /boot/...
1
vote
2answers
142 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 ...
0
votes
0answers
41 views

Does /etc/fstab overwrite mounts done during initramfs

I am experimenting with an Archlinux VM and two virtual disks. I am trying to mount / as an OverlayFS with, for example: sda1 containng the lowerdir and sdb1 containing the upperdir and the workdir. ...
2
votes
1answer
78 views

initrd and initramfs confusions

I read from arch wiki: In case your root filesystem is on LVM, you will need to enable the appropriate mkinitcpio hooks, otherwise your system might not boot. However, both my initrd and ...
0
votes
1answer
1k views

Ubuntu 18.10 boots into initramfs busy shell [closed]

I am getting booted into the initramfs shell directly in ubuntu 18.10 I have tried the exit command which leads to the manual fsck is required on /dev/sda2 When I enter fsck /dev/sda2 the shell ...
0
votes
2answers
206 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
0answers
56 views

Linux booting to initramfs on fresh load

I keep coming back to initramfs after installing various linux distros. The live usb works fine but once installed it is only booting to initramfs, forcing mount did not work and reinstalling windows ...
0
votes
0answers
135 views

unable to install pop-desktop

Usually I find a way around, but I don't understand what is the problem here: darknmy@pop-os:~$ sudo apt install pop-desktop Reading package lists... Done Building dependency tree Reading state ...
0
votes
1answer
154 views

from Grub to initramfs to end kernel panic - surface 3

I installed lubuntu on my surface 3 and after updating it and restarting, it took me to grub so I did the following commands: grub> set root=(hd1,msdos1) grub> linux /vmlinuz(version no.) grub&...
2
votes
1answer
581 views

invalid line /etc/crypttab

I am troubleshooting a debian system that will not boot; the system booted fine, and one day ceased to do so (possibly but not definitely related to an apt upgrade). It has a small boot partition (...
0
votes
0answers
227 views

Unable to re-create initramfs using dracut

I am experimenting on some rescue situations using CentOS7 minimal image and virtualbox. I: deliberately deleted my initramfs file booted from CentOS7 minimal iso image entered into rescue mode ...
0
votes
0answers
41 views

trap signal in bash initramfs fails to work

inside /init bash script executed by the kernel in initramfs.img i need to send a signal to drop me to a rescue shell, so i have trap "exec /bin/bash" SIGINT but ctrl+C isn't effective. First why ...
0
votes
0answers
21 views

Are the only HOOKS available for me to use listed under the mkinitcpio -L command?

Are the only HOOKS available for me to use with my system listed within the output of the following command? $ mkinitcpio -L
-1
votes
1answer
131 views

Archived rootfs: convert tar to cpio for initramfs

I have a Debian rootfs as a tar file. I would like to specify it as the initramfs source in Kconfig (using PetaLinux), but the source must be a cpio archive. How can I convert the .tar to .cpio, ...
3
votes
1answer
221 views

Content of initramfs

I've unpacked the cpio file initramfs-4.19.10-200.fc28.x86_64.img and only found this: . ├── early_cpio └── kernel └── x86 └── microcode └── GenuineIntel.bin Has this ...
0
votes
0answers
96 views

linux kernel auto load driver module

I want to know how linux kernel know which module must load on startup ? i know some modules must defined in /etc/modules . but what happened if i change physical hardware ? for example ...
2
votes
0answers
125 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 ...