Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
15 views

Does /etc/fstab overwrite mounts done during initramfs

I am experimenting with an Archlinux VM and two virtual disks. I am trying to mount / as an OverlayFS with, for example: sda1 containng the lowerdir and sdb1 containing the upperdir and the workdir. ...
-1
votes
0answers
13 views

AUFS - Add read-only top branch

### Presenting root filesystem logic ### I have a custom linux running an AUFS filesystem The partition table is as follow: /dev/mmcblk0p1 * boot1 Win95 FAT32 (LBA) vfat /dev/...
2
votes
1answer
32 views

initrd and initramfs confusions

I read from arch wiki: In case your root filesystem is on LVM, you will need to enable the appropriate mkinitcpio hooks, otherwise your system might not boot. However, both my initrd and ...
0
votes
1answer
41 views

Ubuntu 18.10 boots into initramfs busy shell [closed]

I am getting booted into the initramfs shell directly in ubuntu 18.10 I have tried the exit command which leads to the manual fsck is required on /dev/sda2 When I enter fsck /dev/sda2 the shell ...
0
votes
0answers
29 views

Why does systemd update trigger to build initramfs?

Today I got a systemd-242.0-3 update (plus some related). After installing that package, terminal shows initramfs is build from scratch. The output is like this: :: Running post-transaction hooks... (...
0
votes
0answers
29 views

Linux booting to initramfs on fresh load

I keep coming back to initramfs after installing various linux distros. The live usb works fine but once installed it is only booting to initramfs, forcing mount did not work and reinstalling windows ...
0
votes
0answers
36 views

unable to install pop-desktop

Usually I find a way around, but I don't understand what is the problem here: darknmy@pop-os:~$ sudo apt install pop-desktop Reading package lists... Done Building dependency tree Reading state ...
0
votes
1answer
26 views

from Grub to initramfs to end kernel panic - surface 3

I installed lubuntu on my surface 3 and after updating it and restarting, it took me to grub so I did the following commands: grub> set root=(hd1,msdos1) grub> linux /vmlinuz(version no.) grub&...
0
votes
1answer
61 views

invalid line /etc/crypttab

I am troubleshooting a debian system that will not boot; the system booted fine, and one day ceased to do so (possibly but not definitely related to an apt upgrade). It has a small boot partition (...
0
votes
0answers
35 views

Unable to re-create initramfs using dracut

I am experimenting on some rescue situations using CentOS7 minimal image and virtualbox. I: deliberately deleted my initramfs file booted from CentOS7 minimal iso image entered into rescue mode ...
0
votes
0answers
31 views

trap signal in bash initramfs fails to work

inside /init bash script executed by the kernel in initramfs.img i need to send a signal to drop me to a rescue shell, so i have trap "exec /bin/bash" SIGINT but ctrl+C isn't effective. First why ...
0
votes
0answers
11 views

Are the only HOOKS available for me to use listed under the mkinitcpio -L command?

Are the only HOOKS available for me to use with my system listed within the output of the following command? $ mkinitcpio -L
-1
votes
1answer
34 views

Archived rootfs: convert tar to cpio for initramfs

I have a Debian rootfs as a tar file. I would like to specify it as the initramfs source in Kconfig (using PetaLinux), but the source must be a cpio archive. How can I convert the .tar to .cpio, ...
3
votes
1answer
60 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 ...
0
votes
0answers
41 views

linux kernel auto load driver module

I want to know how linux kernel know which module must load on startup ? i know some modules must defined in /etc/modules . but what happened if i change physical hardware ? for example ...
1
vote
0answers
45 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
95 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
31 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
49 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
158 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
67 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
60 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
64 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 ...
0
votes
1answer
426 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
38 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
64 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:/...
0
votes
4answers
1k 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
48 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
123 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
49 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
140 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
1k 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
157 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 ...
0
votes
1answer
1k 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
40 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
99 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
143 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
349 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
232 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
235 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
211 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": ...
3
votes
2answers
934 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
210 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
301 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
66 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
263 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
1k 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
146 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
61 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
143 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 ...