Questions tagged [initramfs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

Cannot "apt upgrade" due initramfs error - "update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1."

I have a Ubuntu 22.04 VM with CloudInit on a Proxmox Host which worked well, but recently I got often the issue after some time (some days, even after reinstalling) that I can't upgrade packages due ...
Jonathan's user avatar
0 votes
0 answers
98 views

Storage configuration leads to Ubuntu Linux Server Boot failure - ( initramfs )

Ubuntu Server 22.04 installation is completed and successful but the OS doesn't boot! What does mean initramfs ? I've tried to install Ubuntu Server 22.04 on VM. Installation is completed and ...
Shahyar Ashrafik's user avatar
0 votes
0 answers
258 views

How to save my files from initramfs for Ubuntu 22.04, which is unable to boot?

My Ubuntu got broken because UUID isn't correct, and I try all the ways but not fix it, so I decided to reinstall Ubuntu again. However, I need the old files in Ubuntu, is there any way for me to copy ...
Ting-Kai Hsu's user avatar
0 votes
0 answers
24 views

Encrypted fs and liblzma.so.5 library missing

I have created a few VMs with encrypted filesystems + dropbear-initramfs (https://packages.debian.org/bullseye/dropbear-initramfs) with a procedure similar to How to unlock LUKS using Dropbear SSH ...
LetMeSOThat4U's user avatar
0 votes
1 answer
472 views

Kernel panic initramfs: no cpio magic

Im trying to boot a proxmox that was abruptly rebooted due a power lost. When trying to boot it stops with a kernel panic. The error it shows is "Initramfs unpacking failed: no cpio magic". ...
borja's user avatar
  • 13
0 votes
1 answer
1k views

Rocky 9.1 dracut fails to boot

My rocky 9.1 vm kernel is not able to load/boot/decrypt a LVM Luks2 volume during boot. Booting with 5.14.0-162.6 works fine. But fails booting the latest 5.14.0-162.18 or 5.14.0-162.12 kernel, dracut ...
sherwood's user avatar
0 votes
1 answer
188 views

dead ssd drive on zfs points to initramfs

I have an ssd drive with failed controller and which was a part of a mirrored zfs vdev. Now it boots into initramfs and says that it can't import pool "rpool". when i issue zpool import -f ...
Meni's user avatar
  • 91
0 votes
1 answer
273 views

During which dracut hook can a PXE client rename predictable interfaces names with a udev rule?

tl;dr: During load of an initramfs (execution of dracut modules) on a PXE client, I need to rename the kernel-given (predictable) interface names (right now they're unpredictable ethX names). This way,...
brimhalgh's user avatar
6 votes
1 answer
2k views

How to unlock multiple luks-devices using dropbear-initramfs

My system setup is as following: One single SSD with LUKS and LVM (and of course an unencrypted boot partition). The debian system is installed there. Two HDDs assembled as RAID0 with LUKS and LVM ...
t777's user avatar
  • 221
0 votes
1 answer
3k views

Connecting to Dropbear SSH using keyfile not possible (Permission denied (publickey)) [closed]

I'm running my home server (Ubuntu 20.04 LTS) with encrypted root and try to use dropbear in initramfs to be able to unlock it remotely during boot. To setup the remote unlocking ability I was ...
sandman85's user avatar
1 vote
1 answer
491 views

initramfs - customize init script

We have a cluster system with master and several nodes. I have set up a PXE netboot of ubuntu kernel 5.4.0-91 from the master. The nodes load the initramfs and end up in the busybox. Now I want to ...
stephanp's user avatar
1 vote
0 answers
2k views

Stuck in initramfs after logical volume resize volume group not found

Hoping someone can help me recover my ubuntu server instance. Ran out of space on a VM and decided to extend the virtual disk. lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv Size of logical ...
harri's user avatar
  • 185
0 votes
0 answers
49 views

Split initrd into smaller files

I would like to know if it's possible to have a split initrd implementation. Our reason for doing this, is the fact that our Fedora based application uses a stripped version of Fedora underneath with ...
jbbletterman's user avatar
1 vote
2 answers
3k views

OpenStack node not booting after forced shutdown, ubuntu--vg-ubuntu--lv does not exist

After forcibly rebooting my OpenStack compute & block storage node, it no longer boots; how can I fix this or recover its data? Gave up waiting for root file system device. common problems: -Boot ...
jun50's user avatar
  • 11
1 vote
1 answer
920 views

CentOS 7 (dracut) is finding inconsistent network device names causing problems for kickstart

I use the boot options biosdevname=1 net.ifnames=1 in order to get consistent, predictable device names. I'm starting to notice a problem where in some cases, the network device names are not ...
guzzijason's user avatar
  • 1,420
1 vote
1 answer
579 views

Initramfs - Set hostname from custom initrd script

In our company, I'm creating an Ubuntu Autoinstaller (v. 20.04). For some company reasons, its required modify initramfs. (initrd file). I'm created a script, and added a link to init file in main ...
Jakub Franek's user avatar
1 vote
1 answer
251 views

Intel DH895XCC Series QAT and ZFS (2.0.0) - custom initramfs with dracut

We would like to run ZFS with QAT offloading for compressions and checksums. The distribution is Centos 8.2 with the stock kernel: [root@dellqat ~]# uname -a Linux dellqat 4.18.0-193.19.1.el8_2.x86_64 ...
fstrati70's user avatar
1 vote
1 answer
425 views

HP Proliant ML350 Gen9 Server with Debian Linux Kernel Does not boot HBA mode SAS drives. initramfs timeout. long disk detection. disks not recognized

This is what I have: 1- HP Proliant ML350 Gen9 with SAS LFF (3.5 inch) Disks running in HBA mode. 2- Debian Linux version 10 (Buster) Kernel Does not boot HBA mode SAS drives normaly. I have to go to ...
superlinux's user avatar
2 votes
2 answers
2k views

ZFS modules suddenly stopped loading - Debian 10

My ZFS modules have mysteriously stopped loading at the point during boot when you would usually unlock the pool with encrypted ZFS on root (Debian 10). It drops into busybox and suggests loading the ...
Gareth's user avatar
  • 31
2 votes
1 answer
2k views

Why do I have a dracut initramfs in /var/tmp?

I never used dracut so far. I understood dracut filesystems (Wiki) as temporary systems that help mounting system specific kernel modules during the boot process. But after successful boot of my SLES ...
TheCooocy's user avatar
  • 141
1 vote
0 answers
377 views

How create RAID 1 on working Slackware 14.2?

I use Slackware 14.2 (with kernel 4.4.14-smp) on sda and I'm trying to create the RAID 1 with additional sdb. I'm using the VM VirtualBox. First, I have cleaned the sdb: dd if=/dev/zero of=/dev/sdb ...
infernalcucumber's user avatar
1 vote
1 answer
4k views

CentOS: Install dm-raid module into initramfs to enable lvm raid boot?

I have CentOS 7, and I want lvm mirrors on my root logical volume. I had some panic after I used "lvconvert -m3 cl_excalibur/root" to create two mirrors, and it would not boot. The logical volume ...
Charlweed's user avatar
  • 249
0 votes
0 answers
606 views

Ubuntu Server 16.04 initramfs error after full recovery to new hardware

I am getting an error after recovering my Ubuntu Server 16.04. It is only booting in advance recovery option (initramfs). Below is the complete error. Can anyone please help? Begin: Running /scripts/...
Taran's user avatar
  • 1
1 vote
0 answers
627 views

Reinstalling broken kernel 4.9.0.9 on Debian Stretch

Following recent Intel chip bugs I upgraded my Debian Stretch server. Microcode updated OK, but update-initramfs was hanging. So I killed it and tried to remove the kernel before trying to reinstall ...
LetMeSOThat4U's user avatar
1 vote
0 answers
385 views

Rescue an unbootable Bionic system which uses LVM but can't find its volumes

I currently have a Bionic Xubuntu machine which has a boot partition and an LVM partition containing a LUKS-encrypted system. It doesn't boot because xubuntu--vg-root does not exist (i.e. it isn't ...
Leonora Tindall's user avatar
1 vote
0 answers
1k views

Upgraded 14.04 to 16.04 and boot is dropping to initramfs prompt

Anyone know how to fix this? I upgraded a system with LVM partitions for /, /var, /usr, /home and it seems like initrd can't figure out the LVM scheme. I found a bugreport on launchpad regarding this ...
Server Fault's user avatar
  • 3,774
0 votes
0 answers
31 views

Read hostname from a secondary filesystem

I'm trying to customize a preinstalled Ubuntu image for VM instances. My idea was to add a secondary filesystem to /etc/fstab (let's call it /config) and then symlink all relevant config files to that ...
main--'s user avatar
  • 101
5 votes
4 answers
4k views

Ubuntu full disc encryption on Hetzner Cloud adding add static route in initramfs

I try to setup Ubuntu with full disc encryption on top of Hetzner Cloud. I got everything to work except the network connection in initramfs. Thanks to the UI console its possible to unlock, but I ...
user2638109's user avatar
0 votes
1 answer
921 views

How to make initrd of Ubuntu 16.04 mount /home automatically in addition to /?

This is a follow-up to a former question about systemd, BTRFS, /home being an individual subvolume and the following restriction of systemd I would like to work around: The file system where the ...
Thorsten Schöning's user avatar
2 votes
2 answers
2k views

Static route in initramfs

My hosting provider unfortunately requires the use of static routes for network configuration (gateway is on a different subnet than the host IP). For that purpose I added the following lines to the ...
Alec Hans's user avatar
0 votes
1 answer
1k views

mkinitramfs failed to determine device for /

I'm following this tutorial : Create a Custom Debian Live (it's not the first time) but this time it doesn't work when I'm trying to install linux-image-amd64 live-boot systemd-sysv in chroot ...
DSX's user avatar
  • 395
5 votes
2 answers
20k views

CentOS7 Dracut lvm command not found

I updated CentOS7 kernel because of Meltdown issue from 3.10.0-693.11.1 to 3.10.0-693.11.6, but after that update, I cannot boot as centos drop to the dracut with error warning /dev/mapper/centos-...
user979291's user avatar
4 votes
1 answer
4k views

cpio incorrectly unpacking initrd in Ubuntu Xenial

I am trying to unpack initrd image: # file /boot/initrd.img-4.11.0-14-generic /boot/initrd.img-4.11.0-14-generic: ASCII cpio archive (SVR4 with no CRC) # mkdir /tmp/initrd; cd /tmp/initrd # cpio -i -...
Selivanov Pavel's user avatar
1 vote
0 answers
703 views

LVM error causing fall back to initramfs on boot after ubuntu upgrade

I've recently updated Ubuntu from an older LTS release (12.04) to 14.04 LTS and upon reboot, ubuntu fails to load and an error in /sbin/lvm is shown: There appears to be one or more degraded LVM ...
Jimmie Lin's user avatar
1 vote
1 answer
751 views

Can't send password to scp prompt during boot

I have Ubuntu OS with encrypted partition. During boot, I want to download keyfile from remote server using scp and use it to decrypt partition. What I did: /etc/initramfs-tools/hooks/myhook.sh #...
akasummer's user avatar
  • 111
1 vote
2 answers
951 views

Ubuntu: updated mainline kernel, now drops to initramfs

I attempted to upgrade our system's mainline kernel and am now dropping into initramfs. < update>: The commands I used were: apt-get update apt-get upgrade apt-cache search linux-image //grabbed ...
A. Anon's user avatar
  • 21
8 votes
1 answer
2k views

Introspection of initramfs systemd services - How?

Background I'm running ArchLinux, using the systemd binary to start necessary services as part of the initramfs (root fs decryption, mounting etc.). I would like to examine what systemd units are ...
Benjamin's user avatar
  • 250
0 votes
1 answer
67 views

System boots to initrmafs prompt after rdiff-backup restore

I was making daily backups with rdiff-backup. system and data partitions separately. Now I restored the system from the backup, but it doens't boot. All I get is an (initramfs) prompt. I typed echo $...
unfa's user avatar
  • 171
0 votes
1 answer
1k views

NFS /sbin/init with Qemu without initrd

TL;DR : I try to tell my kernel on a Qemu machine to start /sbin/init from an NFS server but I have a kernel panic (not syncing: VFS: Unable to mount root fs on unknown-block(2,0)). I used the ...
sebastien dontneedtoknowthat's user avatar
0 votes
1 answer
232 views

Mount and copy /var to EC2 instance store during first boot

I'm running EC2 EBS images on instances with instance stores on /dev/xvdb and /dev/xvdc. I have managed to create a script to raid these two drives on first boot and mount them as /mnt. What I really ...
jamie's user avatar
  • 101
5 votes
2 answers
5k views

Linux diskless boot - NFS share not mounting during ramdisk boot

(This is my first post so hopefully I'm formatting it correctly). I've added in as much information as possible without being TL:DR. My basic issue is that I hit walls when trying to do a PXE ...
Brattex's user avatar
  • 51
3 votes
1 answer
3k views

PXE boot kernel panic

I am having trouble setting up a PXE boot server. I've got isc-dhcp-server running, tftp-hpa serves the files over tftp (verified works), and apache2 hosts the rootfs image. The PXE client seems to ...
MishaP's user avatar
  • 131
1 vote
1 answer
343 views

Ubuntu ramdisk template

I've been working on a ramdisk template for running a complete root filesystem on the RAM of a baremetal server(over IPMI so no physical access) that boots over PXE. I used debootstrap to create an ...
Mehdi Yedes's user avatar
0 votes
1 answer
1k views

Simpler way to add eth0 support in initrd.img (Centos)

I am trying to deploy clone image via pxeboot on hard disk. For this I want to use dd tool. I am aware that there are few tools like fog and clonezilla which does similar thing but this is university ...
Kapil's user avatar
  • 139
2 votes
1 answer
2k views

Linux server -- verifying bootability of initramfs image

how does one verify the bootability of initramfs image without actually rebooting the system -- the reason why we need this is - suppose if one takes the system for a short window and suddenly finds ...
sai garimella's user avatar
0 votes
0 answers
254 views

switch_root not included in initramfs image

After upgrading the kernel via yum to the latest version the initramfs image file is missing the switch_root binary from the /sbin/ folder. This causes the machine to not boot, from this kernel. ...
andrewdixon's user avatar
2 votes
1 answer
2k views

To write in mdadm.conf in initramfs prompt doesn"t not save changes after reboot

I made a mistake with my mdadm.conf with my debian backup server. I used this command : mdadm --detail --scan --verbose >> /etc/mdadm/mdadm.conf to add a raid5 (it works great). By using ...
Florian Doyen's user avatar
-2 votes
1 answer
510 views

mkinitrd to preload virtualBox LSI SAS storage drivers [closed]

I am trying to compile my own kernel (2.6.9). Everything works on the compilation and building end, but... After rebooting to the new kernel - the LVM (VolumeGroup00) cannot be loaded. My suspicious ...
evenro's user avatar
  • 119
0 votes
1 answer
1k views

grub2/initramfs disaster recovery

One of my ubuntu 12.04 is a vm on vmware ESXi host. It has separate boot and root partition. One developer did fsck on the live root partition by mistake and this vm can only boot to initramfs mode ...
user3768947's user avatar
2 votes
2 answers
19k 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 ...
Tbuermann's user avatar