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.
493
questions
3
votes
0
answers
109
views
Arch Linux won't boot after changing grub option
I've posted a similar question, but only focusing on the final part which is where I am now, here: https://bbs.archlinux.org/viewtopic.php?id=299059
I wanted to add nomodeset to my grub options in an ...
0
votes
0
answers
21
views
How to limit the number of initrd images kept in /boot under Debian Linux?
initramfs failed to do its job a few days ago and I've just noticed today that my boot partition was almost full because of useless initrd images. Is there a way of telling Debian to keep only two or ...
0
votes
0
answers
30
views
Debian gave up waiting for root file system device
My computer gets stuck booting on initramfs. It says something about an unknown UUID for root.
I'm not sure what to do with this as using the shell on a live usb it looks like the correct UUID for my ...
0
votes
0
answers
46
views
How to be sure where /boot files originated from for security?
I’m contemplating automatically PGP signing all files in my boot process, from grub config onwards with detached PGP signatures.
This will be used with grub’s check_signatures with a statically built ...
0
votes
0
answers
44
views
Boot args (cat /proc/cmdline) check rootdelay= did the system wait long enough and missing modules (cat /proc/modules; ls ;dev)
Last Sunday I faced another issue in BusyBox initramfs, when I suspended my machine I wasn't able to come back to the login screen facing this screen:
I began desperately to press the power on button ...
1
vote
1
answer
22
views
How to start the busybox shell in initramfs in Linux?
I am working on an embedded Linux system (kernel-5.10.24), and now I am trying to create the initramfs where there is an interactive shell.
The rootfs is mainly based on busybox, and the initramfs ...
1
vote
0
answers
18
views
systemd initrd fail with cryptsetup device timeout
I'm trying to run systemd inside my initramfs image. I have luks full disk ecnryption, and everything worked fine until I tried using my initramfs with raspberry pi. For some reason it decrypts device ...
1
vote
1
answer
129
views
Boot from an .img device (a copy of the physical device)
There is a copy of the disk in IMG format:
root@linux /mnt # fdisk -l /mnt/output.img
Disk /mnt/output.img: 3 GiB, 3221225472 bytes, 6291456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (...
0
votes
1
answer
61
views
ZFS error for load-key
I've tried everything I know until I'm exhausted. Please, if you can help me, I need to access my project stored on my hard drive.
The command I used:
sudo zfs load-key rpool/ROOT/ubuntu_uy913x
And ...
0
votes
1
answer
133
views
Unable to mount encrypted ZFS filesystem after reboot
Key load error: Failed to open key material file: Input/Output Error.
Command: `mount -o zfsutil -t zfs rpool/ROOT/ubuntu_uy913 /root/`.
Message: `zfs_mount_at() failed: encryption key not loaded`.
`...
0
votes
1
answer
38
views
Custom initrd script failing to init "Attempted to kill init"
I am trying to create a custom ramdisk, but it keeps failing right before launching init.
Here is the script: https://gist.github.com/amanuel2/f3e8bb9399f3b3bd36a90cd925ecf63d
Logs:
Edit 2:
Logs: ...
0
votes
1
answer
127
views
Boot failing: Dracut-initqueue rm: cannot remove /lib/dracut/hooks/initqueue/finished/devexists-.....sh: Read-only file system
I started using Dracut around a year ago to use Yubikey Pin unlock and everything was fine a few days ago. After a routine apt update on my LUKS encrypted Debian Trixie machine the linux kernel was ...
0
votes
1
answer
936
views
stuck on "still waiting for dracut initqueue hook" timeout
In an attempt to use my TPM module to automatically unlock the LUKS-encrypted LVM volume, I followed a guide and set up /etc/crypttab and installed dracut which then proceeded to create what I think ...
0
votes
0
answers
23
views
Why do kernel-core and raspberrypi2-kernel4 packages in Rocky Linux repository "latest" have different kernel versions?
I'm using Rocky Linux on a Raspberry Pi, and I noticed that the kernel-core and raspberrypi2-kernel4 packages have different kernel versions. Here's the output from my system:
# uname -a
Linux rocky9 ...
0
votes
0
answers
46
views
How to use initramfs on raspberrypi cm4
base info
board:rpi cm4
img:core-image-base-xx.wic.bz, build by yocto
add u-boot(version:2022.01) support;
add Initial RAM filesystem and RAM disk (initramfs/initrd) support
initramfs:...
1
vote
1
answer
157
views
Fedora - Migrate root filesystem to new drive / partition
I need a quick bit of help. I've migrated my /root and /home directory off a BTRFS partition to and EXT4 partition, because, for some strange reason .. BTRFS always fail! .. However, now that the EXT4 ...
0
votes
1
answer
34
views
SSD Multi-Boot Grub Trouble
I have 3 Linux-Distros installed on a SSD (Ubuntu, Parrot, Kali). There are all separated from each other, meaning they don't share a /home partition or anything like that. I also have no swap ...
0
votes
1
answer
69
views
Making a Debian USB, wrong initrd.img
So, once I learned (here of course) that a 'live USB' can't be mounted nor written to, I stopped trying to update my Debian 12 install image with my files and started again with a fresh stick. Copied ...
0
votes
0
answers
106
views
When I run sudo apt-get upgrade, it shows errors regarding initramfs-tools
When I run sudo apt-get upgrade, I get this output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly ...
0
votes
1
answer
180
views
How to repack an initramfs cpio archive?
I have unpacked an initramfs cpio archive, and repacked it with sudo find -depth | sudo cpio -o -H newc > ~/repacked_initramfs.cpio, as per: https://salsa.debian.org/kernel-team/initramfs-tools/-/...
0
votes
1
answer
19
views
How can I rearchive an initramfs cpio, without losing the hard links?
I have a Debian initramfs, which:
I uncompressed with:
~/my_initramfs $ sudo cpio -idmBv < ../initramfs.cpio
.
bin
conf
conf/arch.conf
...
cpio: usr/sbin/watchdog linked to usr/bin/[
cpio: usr/...
0
votes
0
answers
19
views
how do I enable stickykeys while still in initrd
Followup to sticky keys in single user mode
But I don't need it during normal single user. I need it in initrd to enter cryptsetup password. How do I apply a custom keymap to initrd?
The manual gives ...
2
votes
0
answers
351
views
Custom Linux kernel build fails at loading initial ramdisk
I have been trying to build my own Linux kernel, but it keeps hanging after Loading initial ramdisk... I am currently using Arch linux, and have tried several different configs.
I tried both the 6.8-...
1
vote
2
answers
323
views
Debian 10 update-initramfs fails: cannot create /dev/null
trying to fix a cloned boot via chroot (new processor, hangs on boot). booted to a liveUSB and mounted the fs to /mnt. when i run update-initramfs -uv it blazes thru until near the end when it fails ...
0
votes
0
answers
213
views
How do I fix my initramfs for booting linux kernel image on qemu?
I am using an M2 mac. I built the linux kernel in a aarch64v8/ubuntu docker container. Here's the docker-compose.yml
version: "3"
services:
dev:
image: arm64v8/ubuntu
platform: ...
0
votes
1
answer
404
views
Reboot into `initramfs` after altering partition table
Problem Overview
I recently upgraded my remote server contract with IONOS, increasing my hard drive space from 8GB to 80GB. I have an Ubuntu OS running bash.
I then went about extending my working ...
0
votes
1
answer
147
views
How to switch to boot device's root file system from initramfs
I've been working on an operating system using the Linux kernel. I've successfully compiled the kernel and can boot into my initramfs through it.
The issue arises when I try to switch from initramfs ...
0
votes
1
answer
150
views
How to validate initramfs built in kernel image?
I am working on an embedded Linux system (kernel-5.10.24), and I am trying to enable initramfs in my system.
I configured the kernel as follows,
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="/...
0
votes
0
answers
256
views
startup message in Centos 7: could not boot
Dead community,
Does anyone know the solution to this error message that I get when starting Centos Linux (3.10.0-1160.66.1.el7.x86_64) 7 (Core)
[ 198.942749] dracut-initqueuel3371: Warning: /dev/...
0
votes
0
answers
65
views
Initramfs Issues
Ok, so I'm running a full Kali distro from a USB. It's been working fine for years, with one previous initramfs error a while back that eventually went away after I stopped using the USB for a few ...
0
votes
0
answers
189
views
Failed to mount /dev/sda1 as root file system in debian
mount: mounting /dev/sda1 on /root failed: Input/output error. Failed to mount /dev/sda1 as root file system
How can I solve this problem? I'm new with debian. Before this it has showed GUI but after ...
-2
votes
1
answer
131
views
how may I find the filesystem image of the OS with initramfs
I want to install Tails on my Hard Drive alongside Kali Linux.
So I installed Kali on the system and prepared Grub2.
I also created a partition of 3GB for my Tails installation, formatted it to FAT32, ...
0
votes
0
answers
42
views
error when starting Linux (unable to set superblock flags on /dev/sda6) [duplicate]
I had a problem starting my Linux, it shows this error.
I've tried different ways and it still doesn't work
0
votes
0
answers
394
views
GRUB ignores my cryptdevice parameter in /etc/default/grub
I want to create setup with a encrypted root filesystem on my Arch Linux installation, so when I successfully mounted my /boot and /boot/efi partitions, I'm contuning with grub installation with grub, ...
1
vote
1
answer
75
views
Debian, how to change md name using initramfs script and not livecd?
Is possible to change an md name while the md is still active? AFAIK is not possible
mdadm -A --update=name --name=ibmlinux-root /dev/md126
ls /dev/md/126_0
/dev/md/126_0
ls /dev/md/ibmlinux-root
...
0
votes
0
answers
159
views
Install Pop!_OS in custom mode with encrypted root partition
I've tried to install Pop!_OS in custom mode because I need Multiboot, but I also want an encrypted root partition. So I set an /boot/efi partition and unlocked a previous with luks2 encrypted and ...
0
votes
1
answer
209
views
Run the root filesystem in RAM persistently
Would it be possible to make a root partition run entirely in a ramdisk? And, at the same time, would it also be possible to make its contents persistent on every boot?
So, for example, would I be ...
0
votes
0
answers
538
views
Encrypted partitions with Ubuntu 22.04, boots to initramfs prompt
I have painstakingly followed the Ubuntu help doc for setting up encrypted partitions located here.
After the final step (remove USB and reboot), the system boots normally, asking for password.
...
-9
votes
1
answer
253
views
Linux Kali Debian initramfs due to disk inconsistency [closed]
When i started UTM (Virtual Box) it opened BusyBox with (inittramfs)
0
votes
0
answers
755
views
Alpine linux how to load system into RAM
I need advice if possible to load entire system into RAM.
Let's imagine following situation:
Booting LIVE OS from DVD and login as root
lsblk shows
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 ...
0
votes
1
answer
330
views
Booting Linux from encrypted root parition without initrd/initramfs
Booting Linux without initrd/initramfs works OK when you have simple MBR/GPT partitions, you simply append root=/dev/device and you're good to go given that your kernel contains the modules required ...
0
votes
1
answer
2k
views
Unable to fully install `initramfs-tools` on debian 12 with additional harddisk errors
I am receiving errors/warnings every time the linux kernel is being updated, which has been concerning. It says that initramfs-tools is only partially downloaded and that I don't have any space left.
...
0
votes
0
answers
108
views
How do make install and make modules_install affect the existing kernel installed?
I installed Ubuntu 23.04 from a live USB, then obtained the source for Linux 6.5.5 and built a new kernel with some settings changed (mainly for some RT kernel experiments). I did make install but am ...
0
votes
2
answers
645
views
Warning from cryptsetup-initramfs
Since today I get the following warning when running update-initramfs -u:
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
nor crypto modules. If that's on purpose, ...
0
votes
0
answers
60
views
Problem with root fs
I am trying to make my own linux. After I compiled it, I moved bzImage and initramfs to the /boot directory so the directory structure looks like:
/
boot
-bzImage
-initrd.img
When i then tried to ...
1
vote
1
answer
67
views
Corrupted Disk & Initramfs booting
I was using my Lubuntu PC when someone came and shut it down pressing the power button. When I started it again it started to show the initramfs booting (every time that I start it).
I use fsck when I ...
0
votes
1
answer
61
views
No disk file outside grub
I have issue with my disks I can't boot from them
I can't get them to display outside grub program.
When I try to boot from them I'm dropped to initramfs after ~30 seconds of boot time.
From initramfs ...
0
votes
1
answer
252
views
uname -r showing linux-image version that is unsigned
My boot menu was full and then I tried to purge some older version of linux kernel with sudo dpkg --purge linux-image-... command. As initram-fs wasn't throwing error again and again I also tried some ...
0
votes
1
answer
106
views
crypttab seems to not been active
After I upgraded from Linux Mint 21.1 to 21.2 the newest initrd stopped working. The older one works fine. Regenerating the initrd doesn't help. On startup with the newest initrd the error tells that ...
1
vote
1
answer
1k
views
Linux OS bootup sequence with systemd - what are the exact correct steps?
It would be really great if someone can confirm that the below steps are correct.
I would like to know the exact correct steps.
Power ON the computer.
Basic I/O system (BIOS/UEFI). The first program ...