Questions tagged [initrd]

In computing, initrd (initial ramdisk) is a scheme for loading a temporary root file system into memory, which may be used as part of the Linux startup process. initrd and initramfs refer to two different methods of achieving this. Both are commonly used to make preparations before the real root file system can be mounted. Use this tag with questions concerning initrd on Ubuntu.

46 questions
6
votes
2 answers

After upgrade to 20.04: luks doesn't open my disk on boot; cryptroot/crypttab is empty, cryptsetup doesn't recognize the crypttab entry

after upgrading to 20.04, my encrypted disk doesn't get decrypted on boot. I'm not asked for any password, so it obviously can't find any partition and boots into initrd prompt. What might be the reason: /cryptroot/crypttab in the initrd image is…
Michael Kuhlmann
  • 141
  • 1
  • 1
  • 4
6
votes
3 answers

How to extract initrd from ubuntu-20.04-live-server-amd64.iso

I am trying to update a process used to remaster the Ubuntu 18.04 install image for 20.04 and running into a problem with extracting the initrd archive. The command used is cpio -id --no-absolute-filenames. When I use this same command to extract…
virullius
  • 631
  • 5
  • 15
6
votes
1 answer

How to modify initrd initial ramdisk of Ubuntu 18.10 Cosmic Cuttlefish

I tried to extract the initrd casper/initrd of Ubuntu 18.10 and got an unexpected result. I did not see the root filesystem and files, but just a folder named kernel. What I have done Firstly I tried to know if I should decompress the initrd or just…
tai271828
  • 962
  • 7
  • 12
5
votes
1 answer

/sbin/init : no such file or directory | Not able to boot ubuntu desktop

I have been using Ubuntu Desktop for a while now, but today for some reason I am not able to start it. Here is what I see. Here is what I have already tried : Tried booting in recovery mode Executed fsck from bootable USB. Here is what I did…
Faisal Memon
  • 191
  • 1
  • 2
  • 7
3
votes
2 answers

What is the relationship between initrd and squashfs?

If we are using initrd for, say in live usb, why would we also need squashfs?
user285825
  • 153
  • 2
  • 6
3
votes
2 answers

How to use d-i and preseeding on 22.04 to automate installations

I am trying to set up an automated installation environment for ubuntu 22.04. We have this already working in production for 20.04 and previous LTS releases for many years. We use pxe/isolinux and a tftp and dhcp server to perform the network and cd…
aseq
  • 131
  • 1
  • 4
3
votes
4 answers

Boot partition keeps filling up with old inird.img files

Here are the contents of /boot: drwxr-xr-x 5 root root 3072 Apr 18 09:10 . drwxr-xr-x 26 root root 4096 Mar 22 15:43 .. -rw-r--r-- 1 root root 217495 Jan 17 05:59 config-4.15.0-76-generic -rw-r--r-- 1 root root 217457 Feb 28 02:45…
Joe Mornin
  • 165
  • 1
  • 12
3
votes
0 answers

How can I add a command to initramfs / initrd to execute before mounting the root partition?

ubuntu 18.04 64-bit I have a setup which has three separate block crypt devices, plus a non-encrypted /boot. If I had started with a clean sheet of paper, I could have done it with two, but it would be a science project to reformat everything…
Dave Crooke
  • 161
  • 4
2
votes
0 answers

Ubuntu 20.04 with ZFS root fails to boot after installing xen

I did some Google searches but failed to find anything for this problem. After installing 20.04 using the ZFS root option I installed Xen. When it rebooted it failed in initramfs with the error "No pool imported". I was able to boot the previous…
2
votes
1 answer

How many initrd.img files should I have on my linux server?

I have a server I'm maintaining, and on weekly bases, I basically have to delete some big files like old backups and what not to keep the server from crashing and reaching maximum capacity. Although today I noticed as I listed all the big files by…
2
votes
1 answer

Automated PXE boot image selection and customized boot images

Details I have a network of about 20 identical Dell PCs and 40 raspberry PI 3b+ units which were donated to a school where I'm currently doing some pro-bono work. The RPI units are for kids to browse a private intranet (learning utilities,…
Tortuga
  • 21
  • 3
2
votes
2 answers

Why did the Kernel unpacking failed?

The kernel on booting initrd, shows the error 'Initramfs unpacking failed: junk in compressed archive', with a message of kernel panic. Is this an issue with cpio, as I'm using Ubuntu 16.04 or some internal error caused by the /init daemon script?
priyalsoni
  • 39
  • 1
  • 5
1
vote
2 answers

How to load a ramdisk now?

latest kernels have made ramdisk modules: CONFIG_BLK_DEV_RAM=m Which is the module and where to find it. Is loadable during boot from initramfs ? I had root on software RAID1 with SSD and Ramdisk (/dev/ram1) with write-mostly on…
user683323
  • 13
  • 1
  • 4
1
vote
1 answer

Ubuntu 22.04 LTS kernel panic (/sbin/init not found)

I'm currently running a deep learning server with Ubuntu 22.04 LTS. After a reboot, it keeps running into kernel panic with the error messages '/sbin/init not found' and '/etc/init permission denied'. Recovery mode does not help at all. Based on a…
1
vote
1 answer

load drivers to initrd

I have an issue with pxe deploy. I have mounted ubuntu-20.04.5-live-server and using the initrd and vmlinuz of it for the pxe. I am at the point in the pxe deploy that the initrd and vmlinuz has downloaded and laptop is booting on the initrd, but it…
1
2 3 4