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
0answers
127 views

How to tell Linux where initramfs is in RAM

I'm trying to boot a Linux kernel running on top of Xen with a initramfs copied into RAM by the bootloader. In the device tree I took out a chunk of memory so the kernel will not overwrite the area ...
0
votes
0answers
214 views

bind to vfio-pci or pci-stub at startup

I'm trying to bind a NIC to pci-stub or vfio-pci at startup so my libvirt-managed VM can use it on autostart, but the NIC keeps being claimed by ixgbe. I tried inserting into /etc/initramfs-tools/...
1
vote
1answer
85 views

What frees the `.init.ramfs` image after it is unpacked into the `rootfs`?

Under the old initrd system, Linux used to free the initrd image. This was traced on the console: Freeing initrd memory: xxxxk freed. What this referred to was actually releasing the memory ...
1
vote
1answer
103 views

Order of kernel upgrade commands for gentoo

I have simple bash script to update the kernel. It includes building the kernel, rebuilding external modules, building initramfs with genkernel and updating grub config, here is the script: #!/bin/...
2
votes
1answer
304 views

Can't mount squashfs loop during initramfs

I am trying to mount a squashfs file during initramfs. I have included loop and squashfs modules. Currently using mount /foo.squashfs /mountpoint or mount -t squashfs -o loop /foo.squashfs /...
0
votes
1answer
122 views

add intel driver module to initram for pxeboot

I'm triying to boot system-rescue-cd via pxe. The Problem on the actual system is, the driver for the network card (intel 82574L) e1000e is not in the initram.igz file, so the system can boot the ...
1
vote
2answers
296 views

how to know the right size of /boot

for now /boot on our linux machines is /dev/sda1 497M 157M 340M 32% /boot we want to create a new linux redhat template and I have the feeling that /boot size is too small for ...
1
vote
1answer
136 views

System goes into initramfs mode

I am trying to boot my system but it goes to initramfs and nothing happens. On using exit command it shows: ALERT! UUID=3668c6fc-7986-490b-8642-705c4532d16a does not exist. Dropping to a shell! On ...
1
vote
1answer
1k views

SW RAID-1 grub-install

I just changed /sda system disk in SW RAID using following steps, simply put: sfdisk -d /dev/sdb | sfdisk /dev/sda mdadm --manage /dev/md0 --add /dev/sda2 Now disk is initializing chcked by: cat /...
1
vote
0answers
58 views

Can not Mount “/dev/hdb on /cdrom” on Carrier i-Vu CCN

I had to replace a hard drive in a Carrier I-VU HVAC Control server for a nursing home with no heat. I am not a HVAC guy but am trying to get heat back on because repairman could not get it for a week....
1
vote
1answer
102 views

Using command (dd if=/dev/mmcblk0p1 | sha1sum) while running from initramfs

I have an opensource airgapped raspberry pi project seen at the following link: www.privatekeyvault.com I have provided a method for installing LUKS full disk encryption seen at the following: https:/...
1
vote
5answers
3k views

Kernel cannot find init in initramfs image

I'm trying to get my embedded system to run an initramfs. Right now 'init' in this initramfs does nothing but echo a message to test if it is being ran. My init script: #!/bin/sh echo "HELLO ...
0
votes
1answer
57 views

kernel sysfs doesn't recognize storage kobjects [closed]

I am using ubuntu kernel 4.xx with corresponding ubuntu initrd.img, and it works. But, I want to use a custom initramfs inspired by lfs (linux from scratch) initramfs. The kernel extracts, and runs ...
1
vote
2answers
234 views

loadaddress of ramfs

I have some difficulties to make initramfs functional with SAMA5D27 SOM1 Evaluation Kit. I am trying to have a functional initramfs. I first verified that I have a functional linux when used with ...
1
vote
0answers
55 views

Unable to fully execute the task before Shutdown

I have created the script in /etc/init.d/backup, Its function is to take the backup of all the data which took around 10 -15 minutes. I want to execute at shutdown (runlevel 0) and reboot (runlevel 6)....
3
votes
1answer
486 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 ...
0
votes
2answers
3k views

initramfs - ERROR: device '/dev/mapper/vg0-root' not found, Skipping fsck

Upon booting my Dell XPS 15 9560 running Arch, I am being dropped into an emergency shell because my devices aren't being found starting version 239 A password is required to access the luks volume: ...
2
votes
1answer
270 views

Unexplained errors using a loopback device as a PV for LVM

I am trying to take a Azure cloud Ubuntu 14.04 image (with a single partition for /) and re-organize it such that /var and /srv are on a logical volume backed by a file on the root drive. (why, you ...
2
votes
1answer
2k views

How to copy files with grub console?

I have a notebook which can't boot up Ubuntu and I want to copy all of the files to an external hard drive with USB connection to save them. After I want to install a new Ubuntu to the notebook, how ...
2
votes
0answers
57 views

How to run adb in initramfs?

Seem my hook is work(sometime first run is failed but again run is seem no any library problem), Seem lack socket support in initramfs?my system is debian 9.Seem normal debian system provide socket ...
2
votes
1answer
233 views

e2fsprogs issues on Debian testing - unable to upgrade packages

After trying to do a regular update on Debian Buster, I ended up with the following issue. The following package was automatically installed and is no longer required: libraw16 Use 'apt autoremove' ...
0
votes
2answers
262 views

Can I trust initramfs and vmlinuz images?

I am running an Arch Linux installation on my laptop with the following partition scheme: /dev/sda1 is my /boot partition, which is also my ESP /dev/sda2 is my LUKS encrypted root partition I use ...
2
votes
1answer
674 views

Booting from LVM on encrypted device

I've just finished a Debian install and I'm trying to boot. I've encrypted my hard drive (LUKS) without partitioning and set up LVM on it. I don't have a separate boot volume, so the system will boot ...
0
votes
2answers
463 views

How to run a script before switch_root in initramfs?

I'm starting dropbear ssh server in initramfs to be able to unlock a crypted partition over SSH*. In Debian Jessie, it was all fine but in Buster, dropbear doesn't seem to stop after switch_root, ...
0
votes
0answers
305 views

Custom Initramfs does not boot

I built a custom initramfs on an udoo-neo using the following instructions: mkdir -p /usr/src/initramfs/{bin,dev,etc,lib,lib64,mnt/root,proc,root,sbin,sys} cp -a /dev/{null,console,tty,mmcblk0p2} /...
1
vote
1answer
403 views

Naming scheme of MTD partitions

What is the naming scheme of MTD partitions listed in the following boot log? 5 cmdlinepart partitions found on MTD device phys_mapped_flash Creating 5 MTD partitions on "phys_mapped_flash": ...
4
votes
2answers
2k views

pivot_root from initramfs to new root - error “Invalid argument”

You can not use pivot_root on an initramfs rootfs, you will get Invalid Argument. You can only pivot real filesystems. Indeed: Fedora Linux 28 - this uses the dracut initramfs. Boot into an ...
1
vote
1answer
345 views

Why does switch_root delete all the files in the initramfs?

WARNING: switch_root removes recursively all files and directories on the current root filesystem. -- man switch_root from util-linux, version 2.32-2.fc28.x86_64 Why?
1
vote
1answer
350 views

Addressing scheme of initramfs gzip'ed cpio archive during boot

The following boot file (vmlinux64) for Linux kernel v2.6.21.7 ( Distro: Cavium-Octeon for MIPS64 ): ELF HEADER: ------------------------------------------ Magic: 0x7f 0x45 0x4c 0x46 ("ELF") Class: ...
1
vote
1answer
89 views

Where is the filesystem that “Root Storage Daemons” run on? What does it look like?

https://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons/ ...these storage daemons are started from the initramfs, stay running all the time during normal operation and are terminated ...
3
votes
1answer
327 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
2answers
3k 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 ...
1
vote
0answers
208 views

Why can't dd write to /dev/ram0 on Core Linux?

I created an ext2 file-system on /dev/ram0 ramdisk, and mounted it at /mnt/ram. mkdir /mnt/ram mkext2fs /dev/ram0 sudo mount /dev/ram0 /mnt/ram -o rw Reading from ramdisk with dd works. dd if=/dev/...
0
votes
0answers
204 views

How to find modules used in initrd?

Is there a way to see all the kernel modules/drivers put in the initrd/intramfs?
0
votes
1answer
167 views

What happens if you fork before switch_root?

So typically an initramfs /init script will end with something like exec switch_root /newroot /sbin/init effectively replacing itself with systemd or whatever floats your boat. But what would happen ...
0
votes
0answers
373 views

Accessing initramfs-tools features in Yocto generated initramfs image

I would like to load a few kernel modules, and activate framebuffer access prior to Plymouth launch. This is normally done using /etc/initramfs-tools directory provided with the initramfs-tools. ...
0
votes
0answers
50 views

Start module before boot

Is there a way to start a module (framebuffer display driver, fbtft_device) before boot so that it can be used for boot-time splash screen? Its like issuing a modprobe command before boot. I want to ...
0
votes
2answers
188 views

Can I mount a drive before systemd-sysv-generator runs?

I am in the process of upgrading a sysv-based system to systemd (CentOS 6 -> 7), and I would like to rely on systemd-sysv-generator to run some of services that still have their scripts under /etc/...
2
votes
2answers
471 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 ...
-1
votes
1answer
858 views

Xubuntu automatically boots into initramfs [Firmware Bug]: TSC_DEADLINE disabled due Errata [closed]

The full error text given is [ 0.000000] [Firmware Bug]: TSC_DEADLINE disabled due Errata; please update microcode to version: 0x52 (or later). What I could find in a similar question is to ...
3
votes
1answer
251 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 ...
1
vote
1answer
1k views

Unlock LUKS non-root filesystem partition on boot

I have a system with an unencrypted / partition on Ubuntu 16.04, but with a LUKS encrypted ZFS zpool on 3 partitions. In order for the system to boot properly I want for the LUKS encrypted volumes to ...
1
vote
1answer
288 views

How to auto mount a partition during initramfs/inird phase?

I have an encrypted Debian linux system. I also try to detach the LUKS header from the encrypted container. The whole /boot/ partition will be stored on a separate device. I thought I could place the ...
2
votes
0answers
69 views

Freeze during [update-initramfs -u]: 'unable to enumerate USB device'

While following the Nvidia installation documentation https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-nouveau-ubuntu I had to regenerate the kernel initramfs. I ran the ...
5
votes
1answer
4k views

update-initramfs hangs on debian Stretch

using apt-get upgrade on Debian left me with the decision to update to kernel 4.9.0-6 but the installation never finishes. It always stalls at the following stage: Setting up linux-image-4.9.0-6-...
1
vote
0answers
254 views

Bash 'read' command. 'enter' key goes to the beginning of the line instead of completing 'read' command

I used agetty ( v2.27 ) to create a bash shell terminal through ttyGS0. For some reason, when I used a computer to create a console via the ttyGS0 line, after I call read, pressing the Enter key goes ...
1
vote
1answer
1k views

Once booted, Find Full Path of Kernel Image?

I know you can deduce which kernel image is currently running by checking /proc/cmdline and assume its the same one on the /boot mount point. But this isn't guaranteed. So is there a way to know ...
0
votes
1answer
827 views

error:file'initramfs-3.17.8-300.fc21.x86-64.img' not found press any key to continue

I have done what is written in this link https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide after section 2.7 I did reboot my Fedora machine, and after that, the system could not boot ...
1
vote
1answer
325 views

Failing to boot followed by initframs prompt after hibernating during update

This morning I did something stupid. On my Debian 8 I ran apt-get update and apt-get upgrade. In the middle of the unpacking and installation of the updates (approx 500MB) I had to leave fast. As a ...
0
votes
1answer
4k views

root file system stays read-only

I am currently trying to start working with an embedded linux device (arm). When I am trying to install packages it fails saying that some /usr/... path points to a read-only filesystem. By looking ...