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
1answer
17 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
15 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
26 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
42 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
16 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
94 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
30 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
64 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
41 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 ...
2
votes
1answer
69 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 ...
2
votes
1answer
58 views

Kali Linux (old install) will not boot

I need help with a old (6 yrs ) install of Kali Linux which now fails to boot. The OS does not need to be fixed, as all I want to do is recover some photo files on the drive. These photos can not be ...
1
vote
1answer
50 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
43 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
348 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
54 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
40 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
23 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
124 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
16 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
117 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
87 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
25 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
93 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
29 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
56 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
527 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
102 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
50 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
74 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
78 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&...
1
vote
1answer
315 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
164 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
37 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
19 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
101 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
133 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
78 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 ...
1
vote
0answers
71 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 ...
0
votes
0answers
157 views

bind to vfio-pci or pci-stub at startup

I'm trying to bind a NIC to pci-stub or vfio-pci at startup so my libvirt-managed VM can use it on autostart, but the NIC keeps being claimed by ixgbe. I tried inserting into /etc/initramfs-tools/...
1
vote
1answer
53 views

What frees the `.init.ramfs` image after it is unpacked into the `rootfs`?

Under the old initrd system, Linux used to free the initrd image. This was traced on the console: Freeing initrd memory: xxxxk freed. What this referred to was actually releasing the memory ...
1
vote
1answer
77 views

Order of kernel upgrade commands for gentoo

I have simple bash script to update the kernel. It includes building the kernel, rebuilding external modules, building initramfs with genkernel and updating grub config, here is the script: #!/bin/...
2
votes
1answer
247 views

Can't mount squashfs loop during initramfs

I am trying to mount a squashfs file during initramfs. I have included loop and squashfs modules. Currently using mount /foo.squashfs /mountpoint or mount -t squashfs -o loop /foo.squashfs /...
0
votes
1answer
88 views

add intel driver module to initram for pxeboot

I'm triying to boot system-rescue-cd via pxe. The Problem on the actual system is, the driver for the network card (intel 82574L) e1000e is not in the initram.igz file, so the system can boot the ...
1
vote
2answers
158 views

how to know the right size of /boot

for now /boot on our linux machines is /dev/sda1 497M 157M 340M 32% /boot we want to create a new linux redhat template and I have the feeling that /boot size is too small for ...
1
vote
1answer
94 views

System goes into initramfs mode

I am trying to boot my system but it goes to initramfs and nothing happens. On using exit command it shows: ALERT! UUID=3668c6fc-7986-490b-8642-705c4532d16a does not exist. Dropping to a shell! On ...
0
votes
1answer
759 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 /...
1
vote
0answers
50 views

Can not Mount “/dev/hdb on /cdrom” on Carrier i-Vu CCN

I had to replace a hard drive in a Carrier I-VU HVAC Control server for a nursing home with no heat. I am not a HVAC guy but am trying to get heat back on because repairman could not get it for a week....
1
vote
1answer
82 views

Using command (dd if=/dev/mmcblk0p1 | sha1sum) while running from initramfs

I have an opensource airgapped raspberry pi project seen at the following link: www.privatekeyvault.com I have provided a method for installing LUKS full disk encryption seen at the following: https:/...
0
votes
5answers
2k 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
53 views

kernel sysfs doesn't recognize storage kobjects [closed]

I am using ubuntu kernel 4.xx with corresponding ubuntu initrd.img, and it works. But, I want to use a custom initramfs inspired by lfs (linux from scratch) initramfs. The kernel extracts, and runs ...