Skip to main content

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
0 answers
54 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 ...
Andy Choo Chi Hong's user avatar
0 votes
1 answer
29 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/-/...
fadedbee's user avatar
  • 897
0 votes
1 answer
11 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/...
fadedbee's user avatar
  • 897
0 votes
0 answers
13 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 ...
Joshua's user avatar
  • 1,893
1 vote
0 answers
98 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-...
HarlanCheese's user avatar
1 vote
2 answers
114 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 ...
WhiteRau's user avatar
  • 225
0 votes
0 answers
67 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: ...
V N's user avatar
  • 9
0 votes
1 answer
108 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 ...
user10709800's user avatar
0 votes
1 answer
40 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 ...
Juancarlos Kai Shiro's user avatar
0 votes
1 answer
56 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="/...
wangt13's user avatar
  • 429
0 votes
0 answers
114 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/...
Pampayacu's user avatar
0 votes
0 answers
35 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 ...
Lee's user avatar
  • 105
0 votes
0 answers
89 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 ...
Zukha's user avatar
  • 1
-2 votes
1 answer
68 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, ...
L00tz1ffer's user avatar
0 votes
0 answers
33 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
Flayrys Alves Pariz's user avatar
0 votes
0 answers
223 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, ...
izarc's user avatar
  • 13
1 vote
1 answer
60 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 ...
elbarna's user avatar
  • 12.7k
0 votes
0 answers
107 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 ...
opensource25's user avatar
0 votes
1 answer
137 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 ...
tlt's user avatar
  • 3
0 votes
0 answers
442 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. ...
a coder's user avatar
  • 3,253
-9 votes
1 answer
126 views

Linux Kali Debian initramfs due to disk inconsistency [closed]

When i started UTM (Virtual Box) it opened BusyBox with (inittramfs)
jaja's user avatar
  • 1
0 votes
0 answers
544 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 ...
Rafal Niznik's user avatar
0 votes
1 answer
224 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 ...
Artem S. Tashkinov's user avatar
0 votes
1 answer
1k 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. ...
tobibox's user avatar
0 votes
0 answers
87 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 ...
fisherdog1's user avatar
0 votes
2 answers
342 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, ...
Nicolas's user avatar
  • 135
0 votes
0 answers
50 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 ...
Stigl's user avatar
  • 1
1 vote
1 answer
47 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 ...
Kaster's user avatar
  • 11
0 votes
1 answer
48 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 ...
jomal j's user avatar
0 votes
1 answer
139 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 ...
nishat's user avatar
  • 1
0 votes
0 answers
135 views

How to decompress and compress initramfs?

I want to modify the content in initramfs, but I don't know how to decompress and compress after executing the command sudo update-initramfs -c -k 6.4.0-rt8? It seems like the command sudo cpio -idv &...
just a student's user avatar
0 votes
1 answer
60 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 ...
opensource25's user avatar
0 votes
1 answer
830 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 ...
Md Abbas Ali's user avatar
1 vote
1 answer
606 views

"apt upgrade" returns "Errors were encountered while processing" for linux-image and initramfs-tools [duplicate]

I recently installed debian 12 stable and when I do apt upgrade, I get error with linux-image and below is the complete traceback. What's causing it and how do I not get this error message anymore? ...
Naveen Reddy Marthala's user avatar
0 votes
0 answers
194 views

Unlock LUKS device in dropbear-initramfs remotely, How to solve network card driver problems?

I want to Unlock LUKS device in dropbear-initramfs remotely, I have 3 network card: 1,I219-LM 2,USB 8156B 3,Wi-Fi 6 AX200NGW All of them work well in Debian 12, but in dropbear-initramfs only I219-LM ...
Mr.TT's user avatar
  • 1
2 votes
0 answers
793 views

Failed to mount /sysroot

i get the follow error when try bootar a custom kernel: [FAILED] Failed to mount /sysroot [DEPEND] Dependency failed for initrd root file system. [DEPEND] Dependency failed for Mounts configured in ...
Guilherme Giácomo Simoes's user avatar
1 vote
1 answer
240 views

PXE boot: "mount: mounting /dev on /root/dev failed: invalid cross-device link"

I am trying to set up a cluster of net-booted systems, and after initially succeeding, I've run into a strange problem, that I can't relate to what I have been doing recently. I have been following ...
j4nd3r53n's user avatar
  • 715
0 votes
1 answer
181 views

Boot broken on an Oracle VPS with msg "Gave up waiting for root file system device" & empty fstab

I'm using a free-tier Oracle VPS running Ubuntu and it seems like booting no longer works. I don't have physical access to the machine so I can't really try out solutions that ask for a reboot while ...
Ishan Goel's user avatar
0 votes
0 answers
103 views

Boot from initrd on libvirt vm (UEFI + syslinux)

I'm building a simple Linux system, and I've created a kernel and an initrd using compressed cpio. My goal is to boot directly into the initrd shell instead of pivoting to another storage. Trying to ...
h0m3's user avatar
  • 51
0 votes
1 answer
210 views

GRUB not detecting patched kernel on Void Linux?

I have a Void Linux partition on my MacBook Air. I followed this guide to compile a patched version of Linux 6.3.7_1. I built the kernel in ~/build. Everything went well but when I reboot the kernel ...
benman's user avatar
  • 11
0 votes
1 answer
198 views

What are the effects of setting COMPRESSVALUE in initramfs to values other than the defaults

When configuring initramfs (at least on Ubuntu and Debian) one can choose between various compression methods, and, also, a COMPRESSVALUE that varies in meaning (0-9 for some, 1-9 for others, and 0 to ...
rbanffy's user avatar
  • 1,208
0 votes
0 answers
19 views

Can't run grub suite

I'm trying to run Grub from a custom initramfs. Only Busybox, Grub, and an init are installed. Busybox and the init are able to be run. But when I run /usr/local/sbin/grub-install it says command not ...
Juliette 's user avatar
0 votes
0 answers
83 views

mount returns errno 11 when mounting /dev or /proc

Recently I tried to create a minimal linux distro, that can run only a single program. I started by compiling the linux kernel and creating the initramfs. The initramfs contains /init (compiled c ...
doc. Chocholoušek's user avatar
0 votes
0 answers
107 views

Trying to recover my Ubuntu VM. initramfs prompt

Last time I used my ubuntu VM, it didn't shut down properly. Now the VM is no more booting up properly. Booting it with default setting gives journal errors (sorry I'm not able to have captures) ...
Sébastien DA SILVA's user avatar
1 vote
0 answers
70 views

Dracut: What does the rd.lvm.snapshot command line option do?

In the dracut.cmdline manpage, under the deprecated section, it has these old options and their replacements. rd_LVM_SNAPSHOT rd.lvm.snapshot rd_LVM_SNAPSIZE rd.lvm.snapsize But no actual ...
gdi's user avatar
  • 143
1 vote
0 answers
181 views

Temporarily bypass a forced fsck check

I have some RAM that I know for sure is faulty: Memtest86+ reports this as such. Unfortunately this means that, when I'm forced to restart the machine for an unrelated reason, Linux sometimes ...
Migwell's user avatar
  • 407
0 votes
0 answers
424 views

Persistent Arch Linux USB installation only (automatically) bootable on USB 2.0 ports

Short form: Booting Arch Linux from USB Device is possible without problems using a USB 2.0 port. Some custom persistent Windows Installation from another identical USB Device also bootable without ...
Jonas Dedden's user avatar
0 votes
1 answer
91 views

Accidentaly deleted config-6.0.0-kali6-amd64 file

I installed Kali on my Macbook together with MacOS. After some manipulations on my \boot folder on Kali, I accidentally deleted config-6.0.0-kali6-amd64. Updating, i then have update-initramfs: ...
Top Spin 1.5's user avatar
1 vote
0 answers
608 views

Booting encrypted root with encrypted USB key

Running Debian 11 with grub, full disk encryption (no LVM) on /dev/sdb2, unencrypted /boot/efi on /dev/sdb1. At boot, I want two options: typing password plugging an encrypted USB key (which stores a ...
secu4tux's user avatar
0 votes
0 answers
77 views

init script to move file and reboot

I need a tiny init script which get arguments from /proc/cmdline and then move or copy dirs or files passed to in via /proc/cmdline and reboot. Everything is fine, except /sbin/reboot does not work ...
Yaroslav Minieiev's user avatar

1
2 3 4 5
10