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.
Questions tagged [initrd]
55 questions
9
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
- 681
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
- 151
6
votes
2 answers
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
- 982
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
4
votes
3 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
- 141
4
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
- 171
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
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
- 185
3
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
- 31
2
votes
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…
Apple Orange
- 21
- 1
- 2
2
votes
1 answer
Initramfs-tools script for mounting compressed folders on tmpfs
I'm trying to create a small rescue partition (~800MB spare space after all other system and storage partitions) for a laptop with specialized hardware that requires special kernel and kernel modules such that stock rescue tools such as Clonezilla…
seamux
- 41
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…
user1122596
- 21
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
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
- 31
2
votes
1 answer
preseed.cfg installed in initrd root not being recognized in Ubuntu installation (17.10 amd64 desktop or server)
I have been using a process for preseeding the initrd in a Debian ISO for some time. I just tried the same process for desktop and server variants of Ubuntu 17.10 ISOs, and everything looks fine until I boot into it and see absolutely no indication…
timblaktu
- 131