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.

138 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
3k views

Mounting squashfs image with read-write overlay for rootfs

I am trying to update a custom initramfs init script to mount a squashfs image as the root file system. I have been testing the mounting of a squash image to a loop device in read only, mounting ...
5
votes
0answers
2k 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
0answers
362 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 ...
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
0answers
247 views

Stuck on /init with custom CPU

For a university project I was tasked with implementing privilege levels on an existing RISC-V (rv32i) processor with the end goal to have it run Linux. Due to complexity, my project ended with the ...
3
votes
0answers
59 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
1answer
3k views

Why is unpacking rootfs image as initramfs slow

I have a new gentoo install and the only boot step that takes time is the one that says: Trying to unpack rootfs image as initramfs... It does take around 10 second at boot time. I tried to read on ...
3
votes
0answers
671 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
0answers
661 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
0answers
195 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
1answer
2k views

How can I replace root / filesystem with another filesystem?

When the Linux kernel starts up, it uses initrd as the root / filesystem, then replaces that with a filesystem partition in fstab. Based on a test in an early init script, I want to replace that root ...
3
votes
0answers
586 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 ...
2
votes
0answers
26 views

Custom boot logo without custom kernel?

If you build a custom Linux kernel, you can include a custom logo image that is displayed almost immediately on boot, followed by the regular boot messages (or Plymouth boot graphic). Is there some ...
2
votes
0answers
32 views

Cannot boot from grub / initramfs to desktop in linux mint

Recently I had to download some files for my uni coursework on Docker. I think they were temporarily installed on /var/ and I had to create some syslinks to enable me to have the space to install it. ...
2
votes
1answer
148 views

Get packed/unpacked initrd (initial ramdisk) files running again

Ahoy friends. Currently i'm trying to get Parted Magic running on my PXE server providing NFS support. So i had to edit the initrd.img file, had to add the scripts, and everything worked well. But ...
2
votes
1answer
195 views

How can I implement resuming from hibernation in my initramfs script? (swap file on encrypted root partition)

So I messed up and executed echo disk > /sys/power/state instead of echo mem > /sys/power/state accidentally. And then realized what I had just done. Some details about the setup: It's using ...
2
votes
0answers
31 views

No network at 3rd stage of PXE Boot

I try to boot with PXE an Ubuntu Image made from debootstrap on a Dell PowerEdge M610 with a Broadcom NetXtrem II (BCM 5709S) (bnx2 driver). When i try to boot, everythings goes well at the bios ...
2
votes
0answers
288 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 ...
2
votes
0answers
74 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
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 ...
2
votes
0answers
90 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 ...
2
votes
0answers
522 views

Disk appears OK, will read/write in LiveCD, will not boot, stops at initramfs/busybox

Installed Ubuntu twice and Linux Mint once onto an SSD that used to be a system disk after Ubuntu was corrupted in upgrade. Every time, I get the same result. When I try to boot from the disk, I get ...
2
votes
0answers
424 views

How to mount tmpfs to rootfs?

I am trying to do a factory reset mechanism as a command. For that I am following these steps: Copy the default rootfs files to /tmp Kill all the currently running processes Mount tmp as root file ...
2
votes
2answers
3k views

ERROR: device '' not found. Skipping fsck (can't boot)

I have a Manjaro Linux installation and after a pacman - syu update (potentially updating the kernel) , and restarting my computer, I get the following error message after grub: [ 4.896409] Initramfs ...
2
votes
0answers
221 views

Using an initrd/initramfs as the root filesystem

In Android, the initial RAM disk stays mounted throughout the entirety of the time the operating system is running. No switch_root/pivot_root takes place. Is this kind of setup easy to pull off with ...
2
votes
1answer
2k views

Proper manual OS setup on LUKS encrypted drive with non-aes algorithm on yum-based distro (CentOS)

I'm trying to achieve LUKS-encrypted CentOS 7 install with separate /boot partition and lvm on EFI-friendly motherboard. I've done partitioning fresh CentOS install from old CentOS(installed from GUI)...
2
votes
1answer
2k views

Linux Mint: Error! Your kernel headers for kernel 4.4.0-38-generic cannot be found

After several attempts to fix the issue by myself I've decided to post here, basically everytime I'm running an upgrade I received this error message: fabrizio@fabrix ~ $ sudo apt-get upgrade Reading ...
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
0answers
611 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-...
2
votes
0answers
512 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 ...
2
votes
0answers
360 views

How to boot Linux Mint from USB drive via Grub2

I am trying to install Linux Mint Cinnamon 64 bit on a USB drive so I have a portable desktop wit persistence. I am trying to do this manually because I haven't fount a program that does this ...
2
votes
1answer
493 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 ...
2
votes
0answers
655 views

Disable KMS on Debian Sid

I've recently started having trouble resuming my Sid laptop from suspend. I'm not sure if this was caused by an upgrade or by me tinkering to try and get a splash screen working, but anyway, I have my ...
2
votes
0answers
2k views

module scsi_wait_scan not found on CentOS kernel-ml causes kernel panic on boot

I am attempting to upgrade from kernel-lt to kernel-ml, following the instructions here, however on boot the console is flooded with module "scsi_wait_scan" not found This leads to a general kernel ...
2
votes
0answers
789 views

Unable to boot with dracut and luks: '/dev/resume' : file exists

I am installing gentoo and have performed my first reboot after configuration and installation within my chroot environment. I am using LUKS and LVM to manage encryption of my drives. I am encrypting ...
2
votes
0answers
707 views

How to regenerate an initramfs with ash built-in shell?

I foolishly edited my /etc/mkinitcpio.conf and now my computer won't boot. It drops down to (initramfs). It claims it cannot find the root device. However, cat /proc/cmdline shows the correct UUID of ...
2
votes
1answer
1k views

Server won't boot, kernel panic - not syncing

After a reboot of a CentOS 6.2 server we are getting a kernel panic with the following error: Kernel panic - not syncing: Attempted to kill init! Panic occurred, switching back to text console When ...
2
votes
0answers
2k views

Why do I need to specify two init images - initrd and boot - inside KVM to boot to bash?

My machine is running inside a KVM virtual machine (Parallels Desktop v8), having a BIOS (not UEFI), having one SATA drive connected, one GPT partition on that disk, the partition is ext4 formatted, ...
2
votes
0answers
876 views

Booting over the LAN using uboot

I am trying to boot my beaglebone over the LAN. I am able to download the Kernel uImage from the TFTP server. Here is what I did - U-Boot SPL 2011.09-00053-gb423c52 (Aug 10 2012 - 11:26:55) Texas ...
1
vote
0answers
57 views

Error installing Arch on LUKS-encrypted ZFS root: `/sbin/init does not exist`

I have almost successfully installed Arch Linux on a LUKS-encrypted disk with a ZFS root. I can get the password prompt to decrypt the LUKS volume, but the next step with loading the installed system ...
1
vote
0answers
194 views

Dracut will not create images containing modules not in use by the current system

Ok so dracut is not performing as I believe it should and I cannot find a workaround. I have created several images before but now I am trying to create a live boot initramfs to go along with a custom ...
1
vote
0answers
43 views

Difference between initrd.img and a initramfs.img?

an initrd.img sets the stage for the real root file system to take over once done, as I understand it the initramfs.img is a customizable version of the initrd. lets say you are loading to a diskless ...
1
vote
0answers
24 views

If retain_initrd is used, can this cpio image be accessed from userspace?

By default, the Linux kernel frees the memory that was used for an initramfs after its unpack is complete. If the kernel argument retain_initrd is used, then kexec --reuseinitrd becomes available to --...
1
vote
0answers
85 views

grub2win isoboot CloneZilla LiveCD unable to find a medium containing a live file system

Help, please. I've got: Win10 Pro. With legacy bios bootloader. Installed grub2win bootloader. Added menu entry isoboot CloneZilla LiveCD. iso-file situated on local disk with NTFS file system. Menu ...
1
vote
0answers
88 views

How can I change the name of an unencrypted LUKS partition mounted as the root filesystem?

When I installed Linux, the block-device-path of my root LUKS device was /dev/md125 and the unencrypted partition was /dev/mapper/md125_crypt. I have since renamed the MD device to /dev/md0, and now I'...
1
vote
0answers
61 views

Initramfs not reading new configuration/scripts

I am trying to add some custom initramfs scripts to /etc/initramfs-tools/scripts/init-bottom/. However, these are not executed at next boot, after having rebuilt with # update-initramfs -u In fact, ...
1
vote
0answers
53 views

Early User Space Init Not found

I have been compiling a kernel for my Android device and there is this problem that I have encountered. I have ported the kernel from v3.10.108 to 3.18. I have got the kernel to last part and solved ...
1
vote
1answer
291 views

Dependency failed for /boot LUKS on external USB drive after Debian update initramfs

Please somebody help me :( after a firmware update my Debian Sid with encrypted LUKS root does not boot clean anymore. At boot, after inserting my passphrase, there are a bunch of messages and a ...
1
vote
1answer
215 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 ...