Questions tagged [initrd]

initrd is a method for loading a temporary file system into memory, during the process of booting the Linux kernel.

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

How to show progress when loading initrd?

I have a complete root fs built into initrd, so it's almost 500MB. It takes a while to load to memory and during this time, the screen has no indication of the progress. I would like to know if there ...
2
votes
1answer
260 views

How to verify signed UEFI binaries?

I'm trying to understand why secure boot works on my machine. It is enabled in the UEFI config, everything boots just fine, and mokutil --sb-state says SecureBoot enabled. But I think it shouldn't. ...
2
votes
2answers
2k views

Uboot Hangs when Initrd size increased in FIT image

I'm booting Linux on arm64 using FIT multi image (image + initrd + DTB). If I increase the initrd size (from 16 MB -> 20MB) the board hangs at "starting kernel"). However if I change the ...
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
2answers
843 views

Initramfs and Block Devices

In this introduction to initramfs, Robert Landley mentions the following as the motivation behind ramfs. But ramdisks actually waste even more memory due to caching. Linux is designed to cache ...
2
votes
2answers
7k views

Debian: Boot fails when mounting sda with “invalid argument”

I am trying to move a Debian squeeze installation to VMWare VSphere 5.5 environment. However when booting the new machine after replication, the initrd/busybox gives an error, that it cannot mount the ...
2
votes
1answer
1k views

Change the kernel in downloaded Ubuntu Image [closed]

I'm adding multiple new system calls to kernel. I want to test my custom kernel by making an bootable ISO out of it trying to boot on another machine. As a part of making this bootable ISO, I got ...
2
votes
1answer
2k views

Linux Ubuntu / Mint Live CD user-home customization

I'm trying to customize Linux Mint Live CD with these instruction (uck doesn't work for me). What I want is to have more icons at its Live CD user (/home/mint/Desktop) but I can't find /home/mint on ...
2
votes
1answer
151 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 ...
2
votes
1answer
437 views

Kernel can't find initrd?

When trying to mount ext2 I get this error: Creating 4 MTD partitions on "MPC8313RDB Flash Map Info": 0x000000000000-0x000000100000 : "U-Boot" 0x000000100000-0x000000300000 : "Kernel" 0x000000300000-...
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
0answers
620 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
2answers
979 views

How can I remotely debug a broken initrd?

Background I have a system that runs Linux. It's a NAS, and does not have any monitor, keyboard, or serial port. It does have a network port. I'm not happy with the software running on it, and am ...
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
1answer
906 views

Booting grub-2.00 with 2 initrds, crashes with RAMDISK: incomplete write

So, I'm trying to split my initrd into two initrd's. There's some pretty significant scripts that run in the initrd, and we wanted to split the initrd so we could rev the just the logic or just the ...
2
votes
2answers
688 views

Script that unpacks a initrd, allows editing of the preseed.cfg and the packs it to cpio and gzip again

I want to program a script that allows what is said in the title. So basically I gunzip the initrd, than unpack the cpio, open vi to allow editing, save, pack with cpio, and gzip again, so nothing ...
1
vote
2answers
2k 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
2answers
3k views

Debian system doesn't mount or find /sbin/init during boot

I'm getting the dreaded "target filesystem doesn't have requested /sbin/init", am getting dropped into initramfs busybox prompt, and am unable to boot. This is after upgrading to the latest 4.9.0-3 ...
1
vote
4answers
13k views

How to change the boot kernel of a usb live w/ persistent running Kali

First, the issue that I'm having is being unable to run VirtualBox on Kali 2.0. I set up a usb live with persistence running Kali 2.0, which at the time had the 4.6.0-kali1-amd64 kernel. I have ...
1
vote
2answers
57 views

How to repair linux after failed to start file system

I have problem with my linux. I always had small problem with my HHD but my PC always could works correctly but yesterday its stuck and I decided to reboot it. After rebooting I get this error. [...
1
vote
1answer
3k views

initrd built with NFS module cannot mount NFS root

I'm building a custom initrd so that I can boot diskless nodes with a tmpfs root rather than NFS root (a script in the initrd copies the contents of the root device to a tmpfs filesystem, then changes ...
1
vote
2answers
701 views

Server stuck at “Loading initial ramdisk” when using NVidia GPU

I have a server with an NVidia M4000 Quaddro card. In my server BIOS, if I set the GPU priority to 'onboard', my system boots and I can use the NVidia card. If I set the GPU priority to 'external', my ...
1
vote
1answer
60 views

Why do distros(e.g. Arch) use BOTH initramfs and root={smth}?

I thought the goal of initramfs is to boot a root partition and chroot into it. But I can't understand why do distro developers use initramfs if there is ALWAYS a root={smth} flag.
1
vote
1answer
615 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 /...
1
vote
1answer
2k views

How to find modules used in initrd?

Is there a way to see all the kernel modules/drivers put in the initrd/intramfs?
1
vote
1answer
2k views

Can't find initrd file on GRUB console

My PC boots to the grub command line. $ ls (hd0) (hd1) (hd1,gpt6) (hd1,gpt5) (hd1,gpt4) (hd1,gpt3) (hd1,gpt2) (hd1,gpt1) (lvm/fedora-swap) (lvm/fedora-home) (lvm/fedora-root) $ ls (hd1,gpt5)/ ...
1
vote
1answer
419 views

LVM devices not showing in initrd but working on boot [duplicate]

I am currently working on a custom initrd based on the CentOS 6.7 (2.6) kernel with the following modules loaded. The initrd is designed to backup files off a old RHEL system into memory, unmount the ...
1
vote
2answers
2k views

Are there any tools to edit the initrd file in Windows?

Currently I am running on a Windows machine. I would like to modify a Linux ISO before installing it. For this I need to change a package inside initrd. Is there a way to do this from Windows?
1
vote
1answer
571 views

initrd.img contains many archives

I'm new here, hope I'm posting in the right section... Well, I got the initrd.img of debian 3.16.0-4-686-pae (downloaded and burned whole iso). If I boot from disk or lan initrd is ok, everything ...
1
vote
1answer
545 views

Built new kernel, LVM won't mount from initrd

I need to upgrade my kernel on a RHEL 5 system to build with some experimental drivers. I have configured the kernel with module loading for LVM (dm_* modules). Once the initrd runs the /init ...
1
vote
1answer
549 views

Using qemu to boot OpenSUSE (or any other OS) with custom kernel

I want to run OpenSUSE as guest with a custom kernel image which is on my host machine. I'm trying: $ qemu-system-x86_64 -hda opensuse.img -m 512 -kernel \ ~/kernel/linux-git/arch/x86_64/boot/...
1
vote
2answers
3k views

Adding commands to initrd image [closed]

Whenever I enter into initrd prompt, I know that not every command is executed in that prompt. Can somebody tell me how I can add more commands support in that initrd prompt. It would be nice if you ...
1
vote
2answers
1k views

How to log the output of a daemon application?

I have a Java program running as a daemon (thanks to YAJSW, a wrapper for java). The thing is that this java application writes several lines of console text, (simply imagine a Hello World App). If I ...
1
vote
2answers
30 views

How to control the OverlayFS size

I'm trying to mount the rootfs / of a Debian Buster system as overlayfs because I'm interested in using tmpfs for the /upper directory. My idea is to use this to preserve the root filesystem integrity ...
1
vote
1answer
143 views

stuck at busy box, attempt to boot old linux at another partition

I have, and able to boot with arch Linux with kernel 5.10.34 normally. I have older Linux (linuxmint 20.1) on my sda6 with kernel 5.4.0-72 and 5.8.0-50. I am using grub-customizer. Kindly not answer ...
1
vote
1answer
138 views

Dropping to initramfs shell

For many years now I've been an avid windows & mac user. Most recently, the growing love-affair between tech corporatists and government bureaucrats has convinced me to take the plunge into the ...
1
vote
0answers
105 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
1answer
465 views

Ubuntu 20.04 on zfs on root on LUKS on UEFI

I am following https://github.com/openzfs/zfs/wiki/Ubuntu-18.04-Root-on-ZFS but doing it for Ubuntu 20.04. When I get to: update-initramfs -u -k all nothing happens: It returns after 0.1 second and ...
1
vote
2answers
76 views

Why does a shebang script run as init= have an euid of 0 when run from an initrd, but not otherwise?

I am trying to create my own PID 1 init script, to be called from the boot cmdline with init=/myscript. How can I make it work on a real filesystem, with any kernel? When it runs in an initrd, it ...
1
vote
0answers
26 views

Initrd - rebooting issue

I recently booted into Root via Ubuntu kernel recovery mode. When I finished what I was doing, and not altering anything in my system, I tried to reboot with shutdown -r now. This started various ...
1
vote
0answers
105 views

How create RAID 1 on working Slackware 14.2?

I use Slackware 14.2 (with kernel 4.4.14-smp) on sda and I'm trying to create the RAID 1 with additional sdb. I'm using the VM VirtualBox. First, I have cleaned the sdb: dd if=/dev/zero of=/dev/sdb ...
1
vote
0answers
79 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
1answer
449 views

How to boot OpenWRT FROM PXE?

I have downloaded OpenWRT files for PC from OpenWRT site. I have installed DHCP and TFTP (in my LAN) and can boot (other) kernels from them. Now I want to boot these OpenWRT files. I wrote in PXE ...
1
vote
0answers
29 views

Take initrd out of the Linux boot process

I have "one" machine which is static. The following never change: CPU, GPU, motherboard, harddrive, keyboard, mouse, USB ports I have dual-boot Windows and Linux (specifically Windows 10 and Ubuntu) ...
1
vote
0answers
131 views

How to add ssmtp into initramfs?

I'm trying to add ssmtp into initramfs. However, I can not find (or compile at the moment) the statically linked version. I guess my only option is adding the current, dynamically linked version. I'...
1
vote
0answers
267 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/...
1
vote
0answers
274 views

How to boot a debootstrap-ed system bare metal?

I debootstrap an Ubuntu Xenial system as: debootstrap --variant=minbase --include=linux-image-generic,linux-headers-generic,systemd,systemd-sysv,dbus --components=main,restricted,universe,multiverse ...
1
vote
0answers
92 views

Tntfs.ko - How can I put it in an initrd file? Or load on boot?

I'm trying to load that specific module (for zenworks purposes), but I can't find the right command to put in my server boot. I tried insmod and modprobe commands, but I'm unsuccessful in doing that. ...
1
vote
0answers
79 views

Flavour of initrd

This Arch wiki page says: If you are using a systemd based initrd, you must pass: rd.luks.options=discard How do I query the initrd mini-shell to find out if I am running a systemd-based initrd?...
1
vote
1answer
324 views

How to use only automatically build RAID arrays on Ubuntu?

I have an Ubuntu 16.06 system where / on an SSD primary partition and /home with md RAID0 on four SSD devices. The file /etc/mdadm/mdadm.conf is automatically generated by mkconf and contains no ...