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
4
votes
2answers
3k views

Unpacking of initramfs is very slow

I am trying to improve the kernel boot time of my device and I would like some help. I am using OMAPL138 with kernel version 2.6.37 and it takes about 50 seconds until the boot process is finished, ...
4
votes
2answers
2k views

Live Distros: UBCD boot Deft, Caine, and Tails from Custom Menu

I'm building my own UBCD and I'm using dual layer to fit 7.5Gigs Useful resources for UBCD customization: The SYSLINUX Project UBCD Customize Casper Man Page Live Boot Man Page Here's my custom.cfg ...
4
votes
0answers
1k views

How do I add modules, binaries or scripts to initramfs in RHEL distributions?

I have an initramfs script I developed for Debian distributions that required some extra binaries to be loaded into the image. I'm now trying to port this to RHEL distributions and I'm struggling. To ...
4
votes
1answer
13k views

Arch Linux in Qemu : Failed to access perfctr msr error

I got the Arch Linux (march build) iso file through bittorrent lately. I tried to run it in VM, but it only gets up to the main screen (The screen where you select what you want to do) shown below: ...
3
votes
4answers
12k views

Given vmlinuz and initrd.gz, how do I find out, where the kernel is going to load / (root) file system from?

I'm trying various ways of Linux installation (from iso, flash, iso on flash, kernel on flash, root FS in iso-file on flash...) and want to understand what's going on. My question is: is it possible, ...
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 ...
3
votes
2answers
4k views

Set initramfs to prompt for luks passowrd on startup on Mint 18?

After updating to Mint 18.1, I can't get initramfs to prompt for a password to unlock the volume with the root file system on it. I have to wait until initramfs times out to a prompt then run ...
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 ...
3
votes
3answers
2k views

after replacing motherboard, Debian gets blank screen while booting

I have Debian installed on one computer. I just replaced its motherboard and CPU. And graphics card, because I use onboard one. I kept my old hard disk. Now machine boots well, grub starts well, ...
3
votes
1answer
838 views

When would an initrd be necessary?

I've read that I can boot the kernel without initrd, and I've also read that additional modules are loaded during the initrd stage -- as I understand it, for necessary drivers that weren't included in ...
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 ...
3
votes
1answer
2k views

What is the meaning of the errors from my cpio command?

I have been using the following command on my system to create the .cpio archive to create an initramfs for my embedded target device sudo find . | cpio -H newc -oc > ~/initramfs.cpio This has ...
3
votes
1answer
2k views

Initramfs post-update hook

I need an initramfs hook to call a script after an initramfs has been generated. The Debian Linux Kernel Handbook mentions /etc/initramfs/post-update.d/: Packages for boot loaders that need to be ...
3
votes
2answers
5k views

Luks, ssh unlock, Strange behaviour, Invalid authorized_keys file

I don't know why, but I can't manage to follow these instructions on my debian stable. After installing dropbear and busybox, I tried to run initramfs -u. I got here a strange warning: # update-...
3
votes
2answers
193 views

Can I make low-level changes on a root fs mounted RO?

Related to this question: having a root file system that had to be mounted read-only (say it's completely broken), can I reformat the partition or dd a older backup image on top of it (and then reboot)...
3
votes
1answer
1k views

Compiled a Kernel (2.6.39-rc1), where is the corresponding initramfs?

as I've already wrote in the topic, I compiled a new Kernel with make defconfig, the bzImage is where it there, so is vmlinux.bin. I've installed modules with make modules_install. Now, what is the ...
3
votes
1answer
158 views

Content of initramfs

I've unpacked the cpio file initramfs-4.19.10-200.fc28.x86_64.img and only found this: . ├── early_cpio └── kernel └── x86 └── microcode └── GenuineIntel.bin Has this ...
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.
3
votes
1answer
521 views

Two compiles of the same kernel version: one boots, one unable to find root device

I have two compiles of the same kernel version (4.0.5+gentoo patches). One boots, correctly, but lacks several kernel CONFIG flags. Adding those flags and running make all && make install ...
3
votes
1answer
2k views

How to set laptop screen brightness just after boot with full disk encryption

my girlfriend bought Lenovo Essential G500 i5-3230 and I installed Linux Mint 16 on it with full disk encryption. It is standard installation with encryption using dmcrypt and LUKS. But there is a ...
3
votes
2answers
2k views

Installing busybox for ubuntu

I'm trying to create an initramfs for ubuntu using this guide. How do I "re-create" the USE="static" emerge -av busyboxcommand on ubuntu, as emerge is gentoo-specific command? Basically, what are the ...
3
votes
1answer
3k views

How to boot into root btrfs file system with minimal initramfs without udev hook?

Arch Linux is UEFI booted from USB flash drive with GPT and three partitions: EFI (vfat file system) root (btrfs file system, was converted from ext4) home (btrfs file system, was converted from ext4)...
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 ...
3
votes
1answer
1k views

get back to initramfs on shutdown

I have got my own initramfs running its own init script. After doing some things, it finally calls switch_root and executes the init script of the system, which is mounted in /mnt. Now I want to get ...
3
votes
1answer
796 views

kexec crashing when booting a kernel without initramfs (ARM)

First, a few details about the setup: Linux-3.14.1 ARM am335x chip U-Boot bootloader What I am trying to achieve: U-Boot loads a kernel that contains an initramfs (call this kernel 1). U-Boot ...
3
votes
1answer
1k views

disable dhcp in initramfs

In Debian, how can I tell initramfs not to request an IP address via DHCP? I'm using initramfs-tools. I'd be okay with assigning a static IP address for the initramfs, but I can't find how to set ...
3
votes
1answer
721 views

eCryptfs key in kernel image or initramfs

I have an embedded Linux system with unencrypted kernel image and initramfs in NAND flash. My RootFS is in SD card. I want to encrypted some files on SD Card as my SD card is easily accessible ...
3
votes
1answer
2k views

Boot resolution change in initramfs on laptop monitor and HDMI monitor

I have Linux Mint 17 on my laptop. Also I have 22'' monitor connected to laptop using HDMI cable. My disk if fully encrypted with LUKS and LVM. On boot I get graphical prompt to enter password for ...
3
votes
1answer
386 views

How do you completely switch the root files system on Linux?

I am running my rootfs on a flash device (MTD device with UBIFS) - Note: it's a bitbake system so its not full-blown ubuntu or anything. I want to be able to format that device and write a new rootfs ...
3
votes
1answer
311 views

initramfs.cpio location [closed]

So I'm trying to build a basic initramfs using this tutorial on Ubuntu 14.04.5 LTS, and the last step "External file list" is throwing me off. I created the initramfs.cpio file from initramfs.list and ...
3
votes
1answer
234 views

Back to “initramfs” on Debian by systemd “shutdown to initramfs” feature

I need to go back to initramfs during shutdown in order to do a clean unmount of the loopback devices which host my linux installation. To achieve that goal I have read a lot of documentation and ...
3
votes
2answers
2k views

How can I install Linux on a UEFI system with Secure boot?

My motherboard is a Gigabyte 990XA-UD3 (CPU 1), it's a UEFI -Dual boot, and when I try installing Linux Mint 16 Cinnamon or Ubuntu 13.10 it always bring this error (initramfs) Unable to find a medium ...
3
votes
1answer
953 views

Using ramfs on embedded system

I am required to write some software to run on Linux installed on an x86 based embedded setup that has a 8GB compact flash drive for data storage. The critical requirements are logging measurement ...
3
votes
0answers
42 views

How grub tells kernel where to find initramfs?

In grub there is the following line which loads the initramfs file into memory: initrd16 /<initramfs_file>.img But how actually does kernel knows that its init is in that image ? Is it some ...
3
votes
0answers
446 views

rEFInd very slow to load initramfs

I'm trying to switch from grub to rEFInd, and I get much slower boot time. rEFInd itself it fast to load (I disabled auto detect) but when it comes to loading the kernel it hangs on "loading initramfs....
3
votes
1answer
2k views

How to debug systemd “init” freeze during boot?

I'm trying to get my own init script running on some ARM hardware and Debian Jessie with systemd. The overall boot concept and init script is almost identical to a x86 variant, which works fine. For ...
3
votes
2answers
15k views

Missing root VG, dropped to an initramfs shell

My Linux Mint 17.1 (64-bit) uses LVM on its OS drive (an SSD). I must have done "something" to wreck my system, because last time I rebooted, the boot failed. Instead, I got the message "Alert! /dev/...
3
votes
2answers
580 views

Debian Jessie initramfs-tools strange behavior

My current system is: $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.1 (jessie) Release: 8.1 Codename: jessie with kernel: $ uname -a ...
3
votes
0answers
621 views

How do I bypass entering exit manually at the initramfs prompt?

I installed lubuntu onto my desktop PC and it does not have any other OS on it. Everytime the system boots up, I get to the initramfs prompt. It does not show any errors. If I enter exit, the system ...
3
votes
1answer
2k views

Relative path to anything not working (while running from initramfs)

I'm working in an embedded Linux system trying to get it booting its root file system in ram using initramfs. The system comes up for the most part but then has trouble in the init scripts. I've ...
3
votes
0answers
182 views

Chainload Windows from initramfs

Is there any way to chainload Windows from/within initramfs ? I am having grub on MBR. An entry in grub.conf, Will boot into the initramfs, execute some task and then boot into the windows (of-course ...
3
votes
0answers
292 views

How to abort/cancel a running command in initramfs?

When I invoke a long-running command, e.g. du, I don't see a way to abort/cancel it (Strg/Ctrl+c doesn't work), other shells/ttys aren't available. Am I completely doomed after having started a long ...
3
votes
0answers
557 views

Changing a root file system from initramfs to JFFS2

I am running Linux on an ARM based development board from flash memory. The rootfs is initramfs. I chose this in the configuration utility under "file system". Then I realized that I need ...
3
votes
1answer
486 views

initrd or ramfs for SLES as /

I would like to boot a SLES and run it out of a ramdisk. I would like to setup machines so that they start PXE boot and as part of the PXE boot process they pull across an image that is the root ...
2
votes
2answers
443 views

Why kernel cannot do the initrd/initramfs job itself? [closed]

Currently I am learning about linux booting process.Here i noticed that the initrd will create temporary root file system that includes drivers(LVM, NFS, etc) which are required by kernel.After that ...
2
votes
2answers
867 views

Why don't we include File System drivers in the kernel itself instead of using Initrd/Initramfs

The Linux kernel contains very minimal code that is necessary to boot on a majority of devices but I don't get the point of having Initrd/Initramfs.As far as I've understood Initrd/Initramfs job is to ...
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 ...
2
votes
2answers
1k views

Understanding a simple configuration file for initramfs

Can somebody explain me what is happening in the following? # This is a very simple, default initramfs dir /dev 0755 0 0 nod /dev/console 0600 0 0 c 5 1 nod /dev/tty 0666 0 0 c 5 0 ...
2
votes
2answers
2k views

Is it a bad idea to not have a swap partition on an embedded linux setup?

I have a small embedded linux kernel and file system created via buildroot that is installed onto a compact flash drive running on an x86 board. I am using an initramfs (due to power loss concerns) ...
2
votes
1answer
993 views

Initrd : Were can I found the code for real-root-dev

I'm trying to customize my initrd on kernel 2.4. At some point, inside the file linuxrc, I have the opportunity to set my root device setting the /proc/sys/kernel/real-root-dev variable The example ...