Questions tagged [initramfs]

The "initial RAM file system" is the successor of initrd. It is a root filesystem that is embedded into the kernel and loaded early in the boot process.

Filter by
Sorted by
Tagged with
2
votes
2answers
532 views

Initramfs and Block Devices

In this introduction to initramfs, Robert Landley mentions the following as the motivation behind ramfs. But ramdisks actually waste even more memory due to caching. Linux is designed to cache ...
1
vote
1answer
282 views

How to use only automatically build RAID arrays on Ubuntu?

I have an Ubuntu 16.06 system where / on an SSD primary partition and /home with md RAID0 on four SSD devices. The file /etc/mdadm/mdadm.conf is automatically generated by mkconf and contains no ...
3
votes
1answer
2k views

How to boot into initramfs?

I am on Linux Mint 18 and would like to fully check the root filesystem. My current idea is to boot into initramfs and run fsck -f /dev/sdb2 I am able to get to recovery console, and therefore grub.
0
votes
1answer
4k views

systemd-boot: /vmlinuz-linux not found

I installed the systemd boot loader. But while booting it shows /vmlinuz-linux and initramfs-linux.img not found. How can I fix this? My directory structure is as follows; Output of lsblk:
1
vote
1answer
3k views

Ubuntu 16.04 stops booting, it has LVM and LUKS encryption configured, superblock restore already tried

Suddenly my Ubuntu 16.04 drops me into an initramfs prompt like this: BusyBox v.1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) Enter 'help' for list of built-in commands. (initramfs) ...
0
votes
1answer
327 views

Exception while freeing the initrd memory in linux

I am using initramfs file system along with a kernel image and device tree. I am getting an exception while freeing the memory of the initrd after unpacking it. The initramfs is unpacked successfully ...
0
votes
1answer
323 views

Getting Exception while loading initramfs in linux

I am getting exception while booting the linux initramfs from uboot. my bootargs are: setenv bootargs 'console=ttySC0,115200 root=/dev/ram rw ramdisk_size=51200' booti 0x60E00000 0x70000000 ...
0
votes
1answer
4k views

How to create Uboot Initramfs Image for arm64

I have initramfs file in gz format (initramfs.cpio.gz). I tried to boot with above gz file, but it shows following error. Wrong Ramdisk Image Format Ramdisk image is corrupt or invalid Then i tried ...
2
votes
0answers
4k views

Linux Mint 18 keeps booting to initramfs even after multiple reinstalls

Update: I have successfully repaired my Mint installation using the Super GRUB2 Disk, and can now boot into all my operating systems successfully. Once I was in Mint, I updated everything that needed ...
2
votes
2answers
3k views

Console setting in initramfs (ARM)

I'm in the process of porting the embedded system for a picozed-based platform from the Xilinx-v2013.4 (3.12 kernel) to the Xilinx-v2016.2 (4.4 kernel). The former version still makes use of an ...
1
vote
1answer
78 views

Cannot boot up when Adaptec SCSI card is replaced

Current Fedora 19 installation is on an Adaptec 29320 and I am trying to temporarily replace it with an Adaptec 29160. The functionality of the cards is very nearly the same except the replacement is ...
0
votes
1answer
765 views

Where are kernel and initramfs files for systemd-boot?

I'm trying to do a fresh install and use systemd-boot as the bootloader for my ESP, but in the install instructions on step 4 it says: Copy your kernel and initramfs onto that ESP. But where are ...
0
votes
0answers
368 views

build initramfs for different host

Cross compiling a kernel takes minutes, deploying the thing on the target machine takes an hour. Most of the time is spent generating the initramfs. Both the build host and the target run Fedora which ...
1
vote
1answer
69 views

Mount and copy /var to EC2 instance store during first boot

I'm running EC2 EBS images on instances with instance stores on /xvdb and /xvdc. I have managed to create a script to raid these two drives on first boot and mount them as /mnt. I am doing this as a ...
4
votes
2answers
3k views

/dev/sdb* not available after boot - initramfs does not load uas and usb_storage modules

Initramfs on my Debian testing system is not able automatically load necessary kernel modules for external USB 3 HDD (Seagate Backup Plus 1T) if it was already plugged in when initramfs started. If I ...
1
vote
1answer
464 views

How to put initramfs and kernel on two separate partition?

I'd like to put the initramfs on a USB device will keeping the linux kernel on the SSD, so I get the fast boot while protecting my encryption settings on the USB device. Any idea how to do that ?
4
votes
1answer
4k views

How to create ASCII cpio archive (SVR4 with no CRC)?

I have a file in /boot/initramfs.gz extract it using tar -xzvf initramfs.gz -C ./ I got a file initramfs. └──╼ $ file initramfs initramfs: ASCII cpio archive (SVR4 with no CRC) It can be open using ...
1
vote
1answer
1k views

Kali GNU/Linux Rolling 64-bit - Dropbear CryptSetup Wireless Setup Problem

I would like to ask for help in figuring out how to get the IP-Config program that shows up when attempting to use dropbear from guides such as this question to allow me to use wlan0 instead of eth0 ...
0
votes
1answer
632 views

Dropped in (initramfs) after installing Zorin OS 11

I am trying to install Zorin OS on Fujitsu Lifebook AH530. The installation runs smoothly, but when system reboots, it drops into (initramfs) shell, with the message: ALERT~ /dev/disk/by-uuid/.... ...
2
votes
2answers
292 views

Predictable partition name for squashfs partition in initramfs

TL;DR: How can I boot a squashfs partition from initramfs with a predictable partition name? /dev/sda2 won't work because the device names get reordered randomly and sometimes it will boot from the ...
15
votes
4answers
28k views

Mount root filesystem from initramfs

It's a common scenario. For whatever reason, the initramfs (OpenSUSE, in case it matters) has failed to find the root filesystem, so it drops you into a rescue shell. I know perfectly well what device ...
2
votes
1answer
3k views

Patching the kernel to allow booting without initrd

The first answer of 'Why does Linux use an Initial Ram Disk at boot?' states that the initrd/initial ram filesystem is used to provide drivers to mount the real root filesystem. It also says that it ...
1
vote
1answer
833 views

What's the difference between the initramfs and the actual main filesystem?

initramfs is a temporary file system used to start up the system, and then passes control to the root after mounting it. The reason I can't just use the ramfs to do stuff is that anything you save ...
3
votes
3answers
3k views

Why do we need initramfs and initrd

For example we have exotic file system on the disk and in order to load system we need mount root filesystem. But we cannot because there is no suitable driver exists in kernel image. Let me ...
1
vote
0answers
1k views

BusyBox on persistent USB Livesystem

I fiddled a bit with creating a Live USB stick for creating a LFS system on my new computer. To make this easier I wanted to store some persistent data on it as well (settings, GCC, make and such ...
1
vote
0answers
354 views

Different mount output with and without initramfs

I need to create an initramfs to load a driver to access EMMC which contains the root filesystem. In my current kernel build, the EMMC driver is modular (sorry, can't change this). After the kernel ...
-2
votes
1answer
65 views

debian from disk to big disk: what i miss? [closed]

Usually i migrate virtual machine to new bigger disk following this procedure a)Attach new disk b)Mount to mnt c)rsync -avogpP --delete /olddirs /mnt/newdirs except for tmp proc sys dev,i use to ...
0
votes
0answers
76 views

Creating initramfs

I was doing a lab on a machine whose initramfs was removed. I regenerated it by following command for latest kernel on that machine dracut -f initramfs-versionoflatestkernel.img ...
1
vote
0answers
195 views

Can't boot from live USB after Debian install

I've recently installed Debian on my old Itautec pc, from a live USB with a Jessie net install. Everything was working fine, but after trying to restore configurations from an old server, I ...
0
votes
2answers
7k views

Kali Linux Installation Attempt, Stuck in Initramfs

I tried to install Kali Linux today. Everything went well and the installation completed without any problems. Though now when I start my computer I am prompted into grub. My linux installation is ...
2
votes
0answers
36 views

How do I extract the initramfs from a kernel image? [duplicate]

An initramfs, as opposed to an initrd, is built-in to a kernel file. How do I go about extracting and unpacking an initramfs from a given kernel file?
9
votes
3answers
4k views

GRUB confuses kernels/initramfs of Ubuntu and Arch Linux installation

I have a machine that used to dual-boot Ubuntu (16.04 currently) and Windows 7, with Ubuntu's GRUB as boot loader. Now I just added Arch Linux as third OS, following the official installation ...
4
votes
3answers
49k views

boot problem in linux

I have unfortunately format drive /dev/sda2. So all the /root,/home,swap LVM no longer exists. Because of this my server is unable to work properly. it shows only dracut#>Dracut Error: [ OK ] ...
1
vote
0answers
1k views

switch_root with systemd: “Too many levels of symbolic links”

I'm trying to boot a proprietary kernel build and OS after an upgrade to libc and numerous other tools. I'm booting using an initramfs in the 3.2.0 kernel with some utilities, like busybox. However, ...
1
vote
1answer
3k views

No support for locale: en_US.utf8

I am on Linux Mint 17.3. I saw this in the syslog. Processing triggers for initramfs-tools (0.103ubuntu4.3) ... Apr 9 12:01:47 vb-nb-mint updates: update-initramfs: Generating /boot/initrd.img-3.19....
3
votes
2answers
5k views

update-initramfs selects wrong kernel

I'm running Debian 8 Jessie with kernel 4.1.20 from kernel.org. For some reason when I do update-initramfs -u it tells me the following: /boot/initrd.img-4.4.4 does not exist. Cannot update. For some ...
1
vote
1answer
2k views

Invalid module format

I try to install a module using this command: sudo insmod mymod.ko [arg1] [arg2] but I get this error while loading the module: insmod: error inserting 'mymod.ko': -1 Invalid module format my ...
0
votes
1answer
755 views

What step am I missing to get my 2.6 ARM kernel running in QEMU?

I am trying to cross-compile and boot a Linux 2.6 kernel for ARM using QEMU. I have basically followed the same instructions that are included in seemingly every single tutorial on the topic. ...
1
vote
0answers
515 views

How to change the order of HOOKS in debian iniramfs configuration?

Hello I installed Archlinux to learn and now I'm insalling Debian but the initramfs setup is quite different from the mkinitcpio from Arch. My question is : where do I find the order in which the ...
1
vote
1answer
1k views

Keyboard isn't working when it comes to enter the password for encrypted root

Hello I installed Debian, the entry in the NVRAM made by the installer isn't working so I boot it with refind using the following kernel parameters : rw nomodeset root=/dev/mapper/cryptroot initrd=/...
15
votes
1answer
20k views

What is the equivalent of mkinitcpio.conf on debian?

I want to review that the hooks used to build the initrd.img are correct in my debian but I fail to find the /etc/mkinitcpio.conf file like the one in Archlinux, what is the equivalent of this file in ...
2
votes
0answers
597 views

Cannot boot kali linux after dist-upgrade, stucks at 'Loading initial ramdisk …'

I did a dist-upgrade from 4.3.0-kali1-amd64 to 4.4.0-kali1-amd64 but when I restart, the screen stucks at 'Loading initial ramdisk ...'. I had to use the advanced boot options to boot using 4.3.0-...
6
votes
2answers
8k views

Initramfs in debootstrap chroot of fully encrypted system

I'm working on a script to create a fully encrypted washable system from debootstrap. It's doing some good, but the initramfs image that comes out does not pick up the cryptroot properly. After ...
4
votes
1answer
4k views

md raid not mounted by dracut

Background I'm running Centos 7. Originally, it was running on a single disk that looked something like this: 1 200M EFI System (/boot/efi) 2 500M Microsoft basic (/boot) 3 465.1G ...
3
votes
2answers
2k views

Extracting concatenated cpio archives

initramfs archives on Linux can consist of a series of concatenated, gzipped cpio files. Given such an archive, how can one extract all the embedded archives, as opposed to only the first one? The ...
5
votes
1answer
5k views

mdadm: no devices listed in conf file were found - Debian 8 with GPT

I have a Debian Jessie (3.16.7-ckt20-1+deb8u3) system with RAID1 on 2x 3TB hard drives. Grub can't be installed into MBR on drives >2TB, thus I have GPT with 1MB bios partition: Device Start ...
2
votes
0answers
389 views

Make changes to busybox/initramfs that are persistent?

I am in the process of recovering my 32-bit Debian Jessie box with a lvm+LUKS disk. I am coming back from a system that had a root partition but no boot partition. Grub executes, but either vmlinuz or ...
3
votes
1answer
9k views

How to Modify Android Boot Sequence in Order to Boot From an SD Card

I've been looking into how to boot Android form an SD card. This is the post with the instructions: Victory! I took sdbags's stock zip (4.3) and extracted it on my computer. I used unmkbootimg ...
2
votes
1answer
834 views

Raspberry Pi 2 Custom Kernel with initramfs

I'm trying to get a self-compiled kernel running together with an initramfs. It worked on the old raspberry, but somehow I can't get it to run. What I'm trying to do exactly: Load kernel, "run" ...
5
votes
1answer
2k views

update-initramfs failing after upgrading to stretch from jessie

I recently updated one of my Debian boxes to run with stretch, but unfortunately I run in an issue when it comes to the regeneration of the initramfs image. It seems that it doesn't recognize that I ...