Questions tagged [initramfs]

Initramfs (Initial RAM File System) is a way of providing the Linux kernel with the drivers and other tools needed to mount the real root filesystem at boot time. Use this tag if your question relates to using and controlling initramfs.

During the Linux boot process, an image of the initial root filesystem is loaded into memory along with the kernel by the bootloader. Initramfs (Initial RAM File System) is an archive of this initial root filesystem containing all the drivers and other tools that are needed to mount the real root filesystem.

It is unpacked by the kernel and used to run the init process, including mounting of the real filesystem. In Ubuntu, initramfs images for each kernel are stored in /boot and addressed in /var/lib/initramfs-tools. After updating GRUB bootloader or kernel modules, the image is regenerated by running the update-initramfs command - a task usually automatically performed by the package management system.

547 questions
14
votes
2 answers

What is the difference between initrd and initramfs?

I would like to know, what is the difference between initrd and initramfs?
13
votes
4 answers

How to repack initrd.img?

On original /boot/initrd.img-kernel_ver binwalk shows this structure: From 0 to 22528 bytes there is CPIO archive contains only GenuineIntel.bin firmware in specific folder hierarchy. From 22528 bytes there is gzip archiwe contains appropriate file…
EdiD
  • 4,457
  • 3
  • 26
  • 41
3
votes
3 answers

What is `run-init` actually?

There's an init script in the initial ramdisk during the bootint process. At the last operation, it says that: # Chain to real filesystem exec run-init ${rootmnt} ${init} "$@" ${recovery:+--startup-event=recovery} <${rootmnt}/dev/console…
naive231
  • 183
3
votes
1 answer

What is the /usr/share/initramfs-tools/scripts/casper-functions for?

In my ubuntu-based system, everytime update-initramfs gets called I got errors like this: .: 6: Can't open /scripts/casper-functions So I took a look around and found the script casper-functions in /usr/share/initramfs-tools/scripts. Using grep I…
AlexS
  • 133
2
votes
1 answer

Booting to initramfs very often

My laptop boots to initramfs very often. When it does, I execute fsck as explained below, and always solve the problem momentarily : (initramfs) exit /dev/sda10: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or…
Vitor Abella
  • 7,537
2
votes
1 answer

initramfs unable to find a medium containing a live file system

I have a R100 Toshiba external CD-Rom using pci card and usb floppy. I have tried to install XP to see if it works any different and to do that I have to use recovery disks for the Toshiba to make a X: drive and then use winnt to put files on hard…
John
  • 29
2
votes
2 answers

Unpacking initramfs

With lsinitramfs I see a bunch of files. And this is I've got after run cpio -idv < initrd.img-4.15.0-24-generic…
tenjohn
  • 361
1
vote
0 answers

Ubuntu 16.04 Installation goes straight to initramfs

I am currently trying to install ubuntu on my xps 13. I have disabled secure boot and changed the sata mode to ahci. I have the USB stick in and when I select "install ubuntu" or "try ubuntu" option, it goes straight to a screen with initramfs.…
1
vote
1 answer

"failed to create symbolic link" error when updating initramfs

I have 15.04 installed and I get this error (not blocking, everything works but seeing this is annoying) while updating: update-initramfs: Generating /boot/initrd.img-3.19.0-16-generic ln: failed to create symbolic link…
1
vote
0 answers

How to disable package hooks for update-initramfs?

I am trying to build a minimal initramfs. Some packages contribute hooks that don't appear to take any config option to enable/disable them. For example initramfs-tools-core provides a fsck hook and fuse provides a fuse hook. Is there an intended…
OrangeDog
  • 861
1
vote
0 answers

initramfs reports "compression not supported by kernel" for all compression types after 23.04 upgrade

Just upgraded to 23.04 and initramfs won't install, reporting "compression (CONFIG_RD_*) not supported by kernel" for any of { gzip, bzip2, lz4, lzma, lzop, xz, zstd, cat }. For example with 'cat' configured as the compression type I get: > sudo…
Dave
  • 111
0
votes
1 answer

reinstalling Ubuntu dual-boot goes to initramfs

I inadvertently did some operations on the terminal that resulted in Dual Boot not working anymore. Hence, I went into Windows disk management and "deleted" Ubuntu from the partitions so that I can reinstall it from USB. However, now when I try to…
0
votes
1 answer

Can't boot past initramfs. Don't know what happened, please help

Firstly, I'm new to askubuntu, so I don't know all the rules. secondly, im doing this from my phone, so forgive typos or errors. thirdly, I'm running Ubuntu Gnome 14.04. I'm not sure what else you may need to know, but please, tell me and I'll et…
0
votes
1 answer

update-initramfs trying to create initrd.img-new

Ubuntu 16.04, when I try to update initramfs (or apt does), I am getting some errors. I looks like it is trying to generate a 'new' kernel version which is kicking an error. Any ideas on how to fix this? PC:/boot$ sudo update-initramfs -u -k…
jdwiegman
  • 158
  • 1
  • 11
0
votes
1 answer

After kernel upgrade initramfs waiting for root device

Here is the message i get I was upgrading Ubuntu 12.04.1 to 12.04.05 and the kernel upgrade from 3.8.0.29 to 3.8.0.44 using diet-upgrade. The system won't boot back in to the new kernel as i cannot find the rootvg Gave up waiting for root device.…
Ram Ram
  • 11
1
2