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.

596 questions
372
votes
7 answers

Boot drops to a (initramfs) prompts/busybox

I am running an HP pavilion dv6000 dual boot win7 and Ubuntu 12.04. (well, up until today). After a reboot, the boot process drops to the BusyBox shell and I end up at the prompt: BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell…
dpm
  • 3,721
136
votes
2 answers

Root file system requires manual fsck

Whenever I switch on Ubuntu I always see the following message. (Initramfs): /dev/sda1 contains a file system with errors, check forced. Inodes that were a part of a corrupted orphan linked lost found. /dev/sda1 : UNEXPECTED INCONSISTENCY; RUN…
97
votes
12 answers

Error when installing: "unable to find a medium containing a live file system"

Error message: (initramfs) unable to find a live medium containing a live file system I got this error while trying to install Ubuntu 10.10 from a bootable USB stick on to Asus X64J series laptop. After getting this error the installation fails to…
dds
  • 1,073
86
votes
6 answers

"W: Possible missing firmware for module i915_bpo" when updating initramfs

When I run a kernel or NVIDIA driver update on my 16.04, this triggers an initramfs rebuild which outputs the warning below: Processing triggers for initramfs-tools (0.122ubuntu8.1) ... update-initramfs: Generating…
Byte Commander
  • 110,243
38
votes
4 answers

Error 24 : Write error : cannot write compressed block

I recently updated from Ubuntu 18.04 to 19.10. It looks to me as if the update installed an older kernel (5.3.0-29) than the one I had running under 18.04 (5.0.0-36). Since then I've had errors on all apt updates which show initramfs failing:…
alex345
  • 723
30
votes
2 answers

ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell

I am using Ubuntu 14.04. I ran in terminal sudo apt-get update. Then I rebooted the system. And now I see: ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell initramfs:_ I can't boot up LIVE Ubuntu from USB flash drive. Yes, I…
Marcin
  • 745
28
votes
3 answers

How do I get a live-USB to use a partition for persistence?

I want to install Ubuntu to a USB hard drive so that it will run on all systems, that can run the LiveCD and store persistent data on a regular ext4 partition rather than a casper-rw file. In every other way it should behave like a regular Ubuntu…
con-f-use
  • 19,041
27
votes
3 answers

Ubuntu 15.10 - "BusyBox built-in shell (initramfs)" on every boot

Every time we reboot the Ubuntu PC, it's showing this screen, and not going anywhere, even when we typed exit. How to get rid of this nightmare permanently, so that it never ever happens? BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) built-in shell…
user25165
23
votes
2 answers

Mounting encrypted LUKS partition from Live CD

Error to begin with, can't boot I had to do a hard reboot of my computer, and when booting up it (initramfs I think) gave an error: mount: mounting /dev/mapper/ubuntu--vg-root on /root failed: Invalid argument mount: mounting /dev on /root/dev…
Mads Skjern
  • 1,058
  • 4
  • 13
  • 24
23
votes
13 answers

initramfs error when installing / updating

I've been having an error when updating or running any apt command for a week or so. Upgrading to LTS 18.04 hasn't resolved it, nor has removing all old kernels. Space isn't an issue either. Attempting to reinstall initramfs doesn't work. Error I…
adieb
  • 331
21
votes
2 answers

Where does update-initramfs look for kernel versions?

I needed to regenerate initrd. Doing this: update-initramfs -u -k all threw up errors for a kernel I compiled and then deleted some time ago (because update-initramfs could not find the /lib/modules directory I had deleted of course). I thought I…
Zanna
  • 72,312
21
votes
1 answer

"initramfs" error on boot ONLY on Dell XPS 13 (boots fine on other computer)

Been struggling with this for a few days now. I am an absolutely green and non-technical Ubuntu user (I like it for it's lightweight/malware-free nature). I repaired a hinge in the laptop that necessitated disconnecting the laptop from the battery…
Kevin
  • 621
20
votes
1 answer

How to reduce the size of initrd.img on Ubuntu 13.04

with my latest upgrade to Ubuntu 13.04, the initrd.img-3.8.0-21-generic file is now 32M. This is creating me problem with upgrading to newer kernels as I have /boot partition of just 96MB. What can I do to reduce the size of this file?
nwaltham
  • 561
18
votes
1 answer

How do I prevent initramfs from resuming from a zram device?

Whenever initramfs is updated I get a message similar to this: I: The initramfs will attempt to resume from /dev/zram1 I: (UUID=1d4b8573-7eee-43c9-a02a-10a65fc17b8a) I: Set the RESUME variable to override this. However, because all my swap…
17
votes
5 answers

Can't find LVM root dropped back to initramfs

When I boot up I get a screen saying: Gave up waiting for root device Then it lists common problems: ALERT! /dev/mapper/ubuntu--vg-root does npt exist. Dropping to a shell! Then I get an initramfs prompt. Is this fixable without a backup? I can't…
tillius
  • 171
1
2 3
39 40