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
-1
votes
0answers
74 views

“Invalid magic number, you need to load the kernel first” on an existent and previously working Ubuntu installation

I'm putting this in the general linux stackexchange because I believe it's an issue with grub/my kernel/initramfs. I installed Ubuntu 20.04 on a fresh SSD. This motherboard has other harddrives with, ...
3
votes
1answer
34 views

A Small GUI Linux System with UEFI completely running on RAMDisk

I am developing a POS System and I am planning to use Linux. My requirements are as follows UEFI Support. (Running on x86 and x86_64) No Storage Drive so completely running on RAM and persistence ...
0
votes
2answers
108 views

is /sbin/init an executable?

# Mount the root filesystem. 1 .mount -o ro /dev/sda1 /mnt/root # Boot the real thing. 2 .exec switch_root /mnt/root /sbin/init This is a piece of code from /init file of initramfs as mentioned in ...
1
vote
0answers
40 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 ...
0
votes
0answers
186 views

Automate Debian installation with preseed in initrd

I'm trying to automate the installation of Debian in a Virtualbox VM. According to this article : If you are using initrd preseeding, you only have to make sure a file named preseed.cfg is included ...
4
votes
2answers
264 views

/boot/vmlinuz file is not presemt

I am using debian and when I was just checking my filesystem there was no vmlinuz file and after a bit of googling many user with no vmlinuz were having trouble to boot but my computer is booting well....
0
votes
2answers
309 views

How to pack an extracted initrd (x-cpio archive)?

I am customizing an Ubuntu 20.04 ISO, in this process, I have to edit the files inside initrd file which is inside the casper directory Ubuntu20.04-ISO/casper/initrd How to recompile this file type of ...
1
vote
1answer
235 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 ...
0
votes
1answer
101 views

Problem extracting the “initrd” archive in kernel 5.4

I can see my initrd is occupied almost 90 MB of disk but after extracting it via cpio , it contains only a 30 KB microcode : $ cpio -it < initrd.img-5.4.0-18-generic . kernel kernel/x86 kernel/...
1
vote
2answers
51 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 ...
0
votes
1answer
125 views

CentOS 7.6 - Initrd.img not loading updated driver

I have been trying to load an updated initrd.img file with updated drivers on booting the Centos 7.6 ISO, however it seems to still load the old driver even though I have replaced the driver. Steps ...
0
votes
1answer
27 views

initrd and intramfs purpose confusion

My understanding of the purpose of having initrd or intramfs is for the kernel to be able to mount a temporary file system in RAM to load drivers and other things in order to be able to mount the ...
0
votes
1answer
119 views

In a systemd initrd, how do I persist a mount into the new root

Background I'm building a custom initrd using dracut. It: mounts an ext4 disk partition to /data retrieves a squashfs image over the network, which it stores in /data mounts the squashfs mounts an ...
1
vote
0answers
19 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 ...
0
votes
1answer
87 views

Ubuntu 18.04.3 netboot PXE fresh installed boots up with Ethernet not managed by Network Manager

I'm trying to set up a PXE server to deliver Linux image for end user workstation in my company. I've finally made it to set up dnsmasq and nfs-kernel-server so now I can get the images via network ...
1
vote
0answers
82 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 ...
2
votes
2answers
2k views

Grub: boot with USB key, then continue booting from SD card?

I have an old laptop that has a built-in SD card reader, only it's not available at boot. I can however grub boot linux (Debian) from a small 8GB USB key (USB 2.0), but it's very slow. The SD card is ...
1
vote
0answers
59 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
243 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
26 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) ...
2
votes
1answer
123 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
539 views

How to copy the /bin files along with dependencies using commands?

The /bin folder of Ubuntu 14.04 has files with dependencies. I want to copy the symbolic links along with the files, into a separate directory. Is there an inbuilt command for this?
3
votes
1answer
533 views

My initrd has only one directory, after decompressing, namely 'kernel'

The file shows 56 blocks as the size. I am using the system Ubuntu 16.04 and I need a solution that does not require me to update the kernel.
0
votes
0answers
75 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 ...
2
votes
1answer
340 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-...
1
vote
1answer
496 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
2answers
968 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 ...
0
votes
1answer
65 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
0answers
119 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'...
3
votes
0answers
4k views

Ubuntu 18.04 LUKS boot problems

Problem description I am trying to achieve dualboot of Windows 10 (pre-installed) and Ubuntu 18.04 on a new laptop. This is not very difficult, however it appears to get much more complex if you also ...
1
vote
0answers
241 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
1k 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
2k views

GRUB Can't find sda partition

I have dualboot on my laptop with windows being the primary OS. Today after my linux os froze I hard rebooted the laptop. After that I got a kernel panic. I've been trying to solve it using GRUB. I ...
4
votes
1answer
1k views

Did the pivot_root() documentation anticipate the feature of mount namespaces?

pivot_root() moves the root filesystem of the calling process to the directory put_old and makes new_root the new root filesystem of the calling process. The typical use of pivot_root(...
0
votes
0answers
549 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
2answers
595 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 ...
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 ...
1
vote
0answers
230 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 ...
5
votes
1answer
628 views

How to combine linux kernel and initrd without compiling?

I know that it's possible to extract from a linux kernel the embedded initramfs cpio. I want to know if the reverse operation is possible; i.e., given both a compiled kernel and initramfs archive, how ...
1
vote
0answers
75 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. ...
0
votes
2answers
133 views

Linux 2.4.0 - How to Create a Root Filesystem for a diskless install

I have a really old build of Linux (version 2.4.0). Please don't ask me why I have such an old version since it's for a very specialised bit of old hardware. Anyway, problem is, I get this message ...
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 ...
0
votes
1answer
5k views

How to change the kernel on Kali Linux live usb persistence?

I am using Kali Linux on a bootable USB with persistence. I have updated it using all the update/upgrade/dist-upgrade commands. When I tried to install VMware I noticed a problem with the kernel. It ...
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 ...
1
vote
4answers
11k 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
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)/ ...
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)...
7
votes
2answers
1k 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 ...
1
vote
0answers
69 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?...
0
votes
1answer
1k views

uCLinux (linux 4.9 nommu) VFS: Cannot open root device “(null)”

I'm stuck with this kernel panic. What I want is to embed an initramfs into the kernel xip Image, but linux panic and tell me to pass a valid "root=" rootfs value. But WHY does Linux look for this ...