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
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. ...
0
votes
2answers
131 views

Ubuntu will no longer boot after upgrade from 20.04 to 20.10

Thanks in advance for the help. I have a Dell Precision 7540 that has Ubuntu 20.10 installed (previously 20.04). It is a pretty normal installation with a single physical nvme disk, with separate ...
0
votes
0answers
48 views

Pop OS 20.04 LTS | initramfs-tools error on apt

I was upgrading my python3 from 3.8.5 to 3.9, so I (probably shouldn't have) ended up apt removing python-apt. After that, I tried reinstalling it but this error came up: $ sudo apt-get install ...
0
votes
1answer
59 views

Intermittent hang after systemd startup on Debian Buster

I'm currently running Debian Buster with the 4.19.0-9-amd64 kernel. I find that intermittently after booting my system, selecting this kernel, entering my boot disk encryption key, and waiting for ...
0
votes
1answer
50 views

Grub is not booting Ubuntu with LUKS/LVM

I have installed Ubuntu 20.04 on LUKS/LVM but unfortunately on booting I am only getting a grub> prompt. # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda ...
0
votes
1answer
20 views

What utilities do I need to mount a virtual filesystem?

I am making an initramfs, and I want as few utilities as possible. Specifically, I don't want busybox. Since my root is zfs, I need zfs.mount. However, I also need to mount proc, sysfs, devtmpfs, and ...
0
votes
1answer
37 views

How to manually get initramfs prompt at boot

I'm trying to get an initramfs prompt at boot because I have no USB drives or anything that I can use, and I need to use fsck on my /dev/sda, but that's obviously not allowed while it's mounted. It's ...
0
votes
1answer
42 views

What should I mount and unmount in an initramfs?

I found this simple example of an initramfs from the Gentoo Wiki: #!/bin/busybox sh # Mount the /proc and /sys filesystems. mount -t proc none /proc mount -t sysfs none /sys # Do your stuff here. ...
0
votes
1answer
55 views

KDE Partition Manager can't regrow my EXT4 partition after shrinking it?

I'm sorry if I mix different units in this but these are the units I see when working. I decided to add a new partition to my bootable sd card which contained a 21GB partition of an EXT4 file system (...
0
votes
0answers
20 views

Dracut skips over new custom dracut module during initramfs build

Ok so I have a system running a RHEL 6 server and due to hardware restraints RHEL 6 is the newest I can use. Second I am trying to create a live network bootable initramfs for a pxe operation. In ...
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 ...
0
votes
0answers
38 views

fsck in initramfs does nothing

I'm having problem while booting to Debian 9. I did fsck thing but it does nothing. The error said : /init: line 1: logsave: not found The root filesystem on /dev/sda6 requires a manual fsck BusyBox ...
0
votes
0answers
175 views

initramfs unpacking failed : xz-compressed data is corrupt

I have this problem with fedora 32 bootable iso my laptop(Acer 5741 core i5,4f ram,250gb sad), "failed to start iscsi userspace i/o driver" , "Refusing to continue " and "...
0
votes
0answers
13 views

What boot or script parameters are different in a live iso verses a normal image(specificall redhat based distro's)

Ok so I know the difference between the functionality of live verses a normal iso but I want to know what boot parameters / startup scripts are different that are fed to the initramfs/dracut that make ...
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 ...
0
votes
0answers
15 views

What does switch_root do to mountpoints except /proc, /dev, /sys and /run

I'm unsure about exactly how switch_root handles other mountpoints. As per the description in switch_root manpage all I could know is that it moves /proc, /dev, /sys and /run to the newroot and ...
0
votes
1answer
202 views

How to automatically run mkinitramfs on Debian after apt update for kernel packages?

What I am trying to achieve is to have an encrypted root file system on a Raspberry Pi (running Raspian Buster) that gets unlocked at boot via ssh. I got quite far by adapting a tutorial for Kali ...
0
votes
0answers
16 views

dracut for rhel 6 not creating modules

I have pxe booted and created custom initramfs.img s for centos 7 and 8 but due as part of an older system upgrade that still requires rhel 6 I have been trying to create a dracut initramfs.img . I am ...
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 ...
0
votes
0answers
29 views

My grub isn't working well and I can't access my linux

I upgraded my windows 10 yesterday after which when I rebooted my PC it showed me grub rescue and I ran a series of command ls ls (hd0,msdos40 set root=(hd0,msdos4) set prefix=(hd0,msdos4)/boor/grub ...
0
votes
0answers
309 views

Upgrading initramfs-tools does not work on Linux Mint Ulyana

If I run sudo apt-get upgrade on the terminal the error Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 ...
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 --...
0
votes
1answer
273 views

“no root device specified. Boot arguments must include a root= parameter” after installing rEFInd on windows 10 / pop os dual boot

I recently set up dual boot on a new dell xps 9700, carving off two partitions (/boot and root) for Pop OS (ubuntu-derivative). This was working fine, except Pop OS was taking boots without giving me ...
1
vote
1answer
144 views

Unlock LUKS device remotely - ipconfig: no devices to configure

I am trying to unlock my root encrypted Debian Buster on an acepc T11. I installed dropbear, added DEVICE=enp1s0 IP=:::::enp1s0:dhcp to /etc/initramfs-tools/initramfs.conf and executed update-...
1
vote
1answer
57 views

LUKS not prompting for password after kernel update

I have an unencrypted /boot partition and an encrypted root under lvm, created during kubuntu installation: root# cat /etc/crypttab nvme0n1p5_crypt UUID=562c3c2c-9ef4-4417-aff8-1912e3828175 none luks,...
1
vote
2answers
3k views

Ubuntu 20.04: Also having issues while unpacking initramfs, but changing to gzip does not solve my problem

I have issues while customizing ubuntu 20.04. When I made a new initrd for booting (iso/casper/initrd), I got this error: initramfs unpacking failed: Decoding failed then dropped into initramfs ...
0
votes
1answer
724 views

how to update Linux Kernel on “Ubuntu LTS 20.04” Windows Subsystem for Linux 2

is it possible to update Linux kernel on WSL2 ukuu isn't possible and dpkg --install *.deb gives me an error (Reading database ... 68035 files and directories currently installed.) Preparing to ...
2
votes
2answers
4k views

Missing modules (cat /proc/modules; ls /dev) and UUID doesn't exist in BusyBox

I'm stuck in the boot and can't open any terminal. When I try to boot my laptop it shows the following error: Gave up waiting for root device. Common problems: -Boot args (cat /proc/cmdline) -Check ...
3
votes
1answer
215 views

switch_root from initramfs is failing

we're trying to implement an initramfs with the intent of: Open a LUKS partition (using a key saved on TPM) Mounting the partition RO Mounting an OverlayFS switch_root to the new system The first ...
1
vote
2answers
66 views

How does the kernel know where to find the file-system?

I'm fairly new to Linux and especially Embedded Linux. I'm working on an already-developed project on an embedded device where the root filesystem type is SquashFS, the compressed read-only file ...
0
votes
0answers
19 views

Initramfs cannot find /sys on /root/sys and /proc on /root/proc

I left my laptop running in sleep mode but im pretty sure it ran out of battery while still in sleep mode. Initramfs cannot find /sys on /root/sys, /proc on /root/proc and line 373 cant open /root/...
0
votes
2answers
83 views

Setting up initrd/initramfs in Linux kernel

My understanding is that the initrd/initramfs set up a file system in the RAM to help the kernel initialization. I have got following doubts; (1) Is the initrd/initramfs is setup by bootloader(eg: ...
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
2answers
314 views

How to disable compression of initrd.img file of Debian Linux 10 buster

I want to disable compression of /boot/initrd.img file to boot a bit faster. My disk is large enough to accomodate the extra 10MB. To be honest I think that should be the default, who can't afford ...
0
votes
1answer
274 views

Cannot disable resume partition/file on Debian Linux 10 buster

When I sudo update-initramfs -u I get this information message: I: The initramfs will attempt to resume from /dev/sda4 I: (UUID=6511e9fe-a340-4e5f-b42d-19acd4211b35) I: Set the RESUME variable to ...
2
votes
2answers
234 views

Why does initramfs need to overmount rootfs with the new root?

I read the linux documentation on initramfs and the source code of switch_root. The documentation says: When switching another root device, initrd would pivot_root and then umount the ramdisk. ...
0
votes
0answers
29 views

Switch lowerdir mount on overlayfs and remove NFS during ramdisk?

I'm using an NFS as the lowerdir of my overlayfs which is mounted at / and I'm attempting to sync it to the local disk /dev/sda1 but after the boot up is complete the NFS is still mounted and I'm not ...
3
votes
2answers
973 views

Ubuntu 20 boot blocked, loading initial ramdisk

I have just installed Ubuntu 20 Mate. When I try to boot it, the process is blocked at loading initial ramdisk. I already tried to reinstall it. What could be the problem? I am using a Dell Inspiron ...
1
vote
1answer
541 views

U-Boot “Wrong Ramdisk Image Format” with initramfs on BeagleBone black

I am following the book "Mastering Embedded Linux Programming - Second Edition" trying to boot up the Linux kernel mounting a ramdisk. I have U-boot 2020.01 working and the Linux kernel ...
0
votes
1answer
558 views

Linux Mint 19.3 fresh install boot to busybox / initramfs

I made a fresh install of Mint 19.3 on my SSD (no other OS on the disk). On boot, I have the Mint logo, then drop to busybox : see image. I have seen other poeple with similar problem, yet I didn't ...
0
votes
1answer
28 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
0answers
234 views

How to fix this problem “SMBus host controller not enabled” in a VM Parrot OS with WMware

I´m having this issue, running the VM with Advanced options for Parrot GNU/Linux and recovery mode I'm reading and search, but whole related with the issue don't work for me. I cannot use reboot, ...
1
vote
1answer
185 views

How to get /dev/tpm* in initramfs?

For passwordless decryption of a LUKS volume I want to use clevis with my TPM 2.0 module. This module is recognised in Debian Testing (bullseye): /dev/tpm0 and /dev/tpmrm0 exist (so that I am able to ...
0
votes
0answers
31 views

Dracut: load just one module from a particular directory, without installing

I need to add a kernel module (example.ko) to initramfs - a particular version that I compile. I don't, however, want to install that version on the computer where it's compiled. I know that I can ...
1
vote
1answer
3k views

No mkinitcpio preset present

My laptop lost battery during an update, so the linux kernel got truncated. After arch-chrooting into it and reinstalling linux, it's OK, but /boot/initramfs-linux.img (and the fallback) are empty. ...
0
votes
1answer
51 views

dracut: use only specified configuration file

Is it possible to tell dracut do not use configuration files in /etc/dracut.conf.d/ and /usr/lib/dracut/dracut.conf.d during initramfs creating? I move configuration files to temporary directory ...
0
votes
0answers
40 views

Error after clonezila copying, need help with initramfs

I copied a 58GB sd card to another 60GB sd card with clonezilla. /boot is encrypted and I successful decrypt boot and then it's time to type password for encrypted system but before text Please ...
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'...
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 ...

1
2 3 4 5
8