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
1
vote
0answers
61 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....
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
1answer
857 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" ...
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: ...
1
vote
1answer
119 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
2answers
261 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 ...
2
votes
2answers
2k 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 ...
3
votes
2answers
6k 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-...
0
votes
2answers
8k 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 ...
1
vote
3answers
3k views

wrt (openwrt / lede) initramfs

Do you know what initramfs-kernel mean? I know squashfs-factory/squashfs-sysupgrade. How can I do it or what is it? which is better? I just don't understand what the initramfs-kernel mean. I have ...
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 ...
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 ...
0
votes
1answer
58 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 ...
16
votes
4answers
33k 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 ...
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
621 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 ...
1
vote
1answer
964 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 ...
0
votes
1answer
4k views

Debian 8 jessie: The root filesystem on /dev/sda1 requires a manual fsck

I was working in Atom on a small webpage and suddendly it would not let me save my file, saying that read-only mode was turned on. I tried to update in the terminal but that would not let me either, ...
8
votes
2answers
556 views

How do I know what decompression algorithms are compiled-in into the linux kernel?

If /proc/config.gz is unavailable, how do I know what decompression algorithms the running kernel is capable of using on a compressed cpio initramfs? Is the gzip algorithm always available, even when ...
2
votes
1answer
303 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 ...
3
votes
2answers
5k 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 ...
2
votes
1answer
3k 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 ...
1
vote
1answer
498 views

Correct location of initramfs.cpio file when compiling kernel

I am following this article and generated an initramfs.cpio file. Now the tutorial mentions that I have to put this file in build directory: Finally, you have to rebuild the kernel again: # 0. ...
2
votes
0answers
65 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
267 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' ...
1
vote
1answer
6k views

Debian jessie volume group not found and can't boot

I have accidentally deleted my boot partition. OS is Debian Jessie with LUKS LVM. I have created a new partition and successfully reinstalled grub with the chroot method. Now when I try to boot, my ...
6
votes
2answers
4k views

How to mark “not fully installed” apt-get package as “successfully installed”

I have installed Debian 7.4 on my Iomega ix2-200 NAS, following this blog. The ix2-200 is running an ARM Marvel CPU and has a 128 MB NAND flash memory. The flash contains an initramfs image (uInitrd) ...
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 ...
3
votes
1answer
362 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 ...
2
votes
1answer
789 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
298 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
435 views

How do I prevent the kernel from pivoting and overwriting the initial file system?

How do I prevent the kernel from pivoting and overwriting the initial file system? What switches do I pass to the kernel? Do I need to add any code to the initramfs? I cross-compiled busybox and ...
1
vote
2answers
590 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, ...
7
votes
2answers
899 views

Repack the filesystem image from vmlinux.bin (embedded initramfs) without rebuilding?

In How do I extract the filesystem image from vmlinux.bin? and https://wiki.gentoo.org/wiki/Custom_Initramfs#Salvaging methods are presented for getting and unpacking an embedded initramfs/initrd ...
0
votes
0answers
320 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} /...
7
votes
3answers
7k views

Building a Read-Only Linux System With a Writable Layer in RAM

I have a requirement to boot RHEL 6.6/7.0 into read-only mode with a writable layer only in RAM. I believe this is similar to how live CDs work, in that the file system is read-only, but certain parts ...
1
vote
1answer
472 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": ...
1
vote
1answer
102 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 ...
1
vote
1answer
388 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?
7
votes
2answers
695 views

Can initramfs be paged out to swap disk?

I am using initramfs to boot Centos via PXE. The initramfs used memory is listed within the "cached" value in /proc/meminfo or via free. Since I need to calculate performance data, I need to know ...
1
vote
1answer
369 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: ...
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
228 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
312 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
176 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 ...
2
votes
2answers
902 views

Is there a way to get Linux to treat an initramfs as the final root filesystem?

I want to boot a system with an initramfs that's the actual final filesystem, not a temporary initramfs for loading drivers. Unfortunately, Linux imposes different (and in my case, undesirable) ...
2
votes
1answer
10k views

RAMDISK incomplete write error kernel panic

I am building Linux Kernel 2.6.36.4 on a Dell Laptop which has Linux Kernel 2.6.35.11 running. BTW I got the source from kernel.org. The source had few syntax errors which I fixed in the process and ...
0
votes
0answers
410 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. ...
3
votes
1answer
274 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 ...
0
votes
0answers
51 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 ...

1 2 3 4 5 7