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.

538 questions
352
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,521
  • 3
  • 14
  • 3
121
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…
Abhishek Barman
  • 1,311
  • 2
  • 9
  • 5
91
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,013
  • 1
  • 7
  • 6
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
  • 105,631
  • 46
  • 284
  • 425
35
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
  • 683
  • 1
  • 7
  • 13
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
  • 725
  • 1
  • 7
  • 13
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
  • 18,613
  • 20
  • 88
  • 142
26
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
22
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
  • 996
  • 3
  • 11
  • 23
20
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
  • 201
  • 1
  • 2
  • 4
19
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
  • 551
  • 1
  • 6
  • 14
18
votes
1 answer

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
  • 69,223
  • 56
  • 216
  • 327
16
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
  • 161
  • 1
  • 1
  • 5
16
votes
1 answer

Diskless Boot with IPv6

At our work we are using around 80 diskless machines running Ubuntu. We want to make the transition to IPv6, so now I'm trying to get our diskless system to work with IPV6. The transmission of the kernel and initramfs can be still over a IPv4…
moritz
  • 171
  • 5
15
votes
4 answers

What to do about update-initramfs errors during kernel upgrade?

I just ran: sudo apt-get update && sudo apt-get dist-upgrade And this is the output I got from the second commands: Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The…
user364819
1
2 3
35 36