People who code: we want your input. Take the Survey

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
0
votes
0answers
18 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
655 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
43 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
100 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
31 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
510 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
44 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
956 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
535 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
149 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
4k 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
1k 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 ...
3
votes
2answers
10k 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
537 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
166 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
2answers
226 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
216 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
629 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
738 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
526 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. ...
3
votes
2answers
3k 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
1k 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
902 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
37 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 ...
1
vote
1answer
371 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 ...
2
votes
1answer
5k 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
99 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 ...
1
vote
0answers
180 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
432 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 ...
0
votes
1answer
439 views

copy_exec command not found when executing update-initramfs

I'm currently trying to include cryptsetup into my initramfs so i can boot after having encrypted the root partition. I created a hook-script in /usr/share/initramfs-tools/hooks/my_hook With the ...
0
votes
1answer
481 views

Make cryptsetup available from the Busybox Ash during boot for remote unlocking

I've tried to set up remote unlocking following online guides like these. First I tried it on ubuntu 18.04, I am trying now in Debian buster. In both cases I was able to set up dropbear to give me ...
0
votes
2answers
581 views

Can't convince initramfs of my new swap partition

(Running Debian 10.2 XFCE) Due to some partition resizing needs, I had to delete my original swap partition and add a new one. I changed the entry in /etc/fstab - swap is recognized and working. I ...
37
votes
3answers
68k views

Possible missing firmware /lib/firmware/i915/* for module i915

I am getting these warnings every time I update my initramfs image(-s) with update-initramfs on my Dell PowerEdge T20 server running GNU/Linux Debian Buster 10.0. Is there a fix? W: Possible missing ...
2
votes
2answers
3k 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 ...
2
votes
1answer
676 views

file /proc/cmdline is empty

I'm having a problem to boot my system, because the initramfs which should get its values from /proc/cmdline, such as the root device, isn't able to obtain any value, and that's because this file is ...
2
votes
1answer
2k views

Where is the documentation for the IP variable in initramfs.conf?

Multiple sources, including this one, mention using the IP variable in initramfs.conf to set a static IP address in the pre-boot environment, and I have used this successfully in the past. However, ...
2
votes
1answer
191 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 ...
0
votes
2answers
3k views

Kernel Panic - Not syncing : VFS: unable to mount root fs on unknown-block (0,0)

After updating more than ~1000 things my installation of RHEL 2.6.32-220.el6.x86_64. I get the following kernel panic message: Kernel Panic - Not syncing : VFS: unable to mount root fs on unknown-...
1
vote
1answer
3k views

How does initramfs mount root filesystem?

The iniramfs is like a small os which mount root file system and hand over control to systemd. So, how does initramfs work internally? Is there any scripts executed to mount the root in linux?
1
vote
1answer
1k views

Boot problems with empty fstab in initramfs

I have recently reinstalled my Linux Mint 19.2 from a USB which went fine. Upon starting the system, though, it get's stuck at initramfs. The error messages above state Mount: mounting /dev on /root/...
1
vote
0answers
72 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
2answers
2k views

LVM on LUKS FDE: GRUB won't mount my root partition / during boot even though cryptomount and cryptdevice are given in grub.cfg

I have a triple boot setup (3xLinux). All Linuces share /home and swap, and their / partitions are next to each other. All reside in an LVM on LUKS: # lsblk NAME MAJ:MIN RM ...
0
votes
1answer
481 views

Disabling Hibernation Boot on Debian Buster

i recently installed Debian 10 Buster with KDE Plasma Desktop to my laptop. When i logon, system starts up the apps while they were open before shutdown. I edited the file /etc/initramfs-tools/conf....
2
votes
1answer
346 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 ...
1
vote
1answer
262 views

How to autoprobe block devices in initramfs?

I am building a custom Alpine image based on isolinux. Basically, I am squashing rootfs, and mounting it as overlayfs. Bootloader does its job fine, kernel loads, but I am stuck at initramfs. Let ...
2
votes
1answer
3k views

initramfs unpacking failed: uncompession error (debian 10) [closed]

I've use debian 8-9-10 in my old Lenovo Idepan 310 without any probelem since 3 years ago, previously I also use Debian 8 in my two asus laptops without problems. Today is my first time seeing ...
0
votes
0answers
344 views

What does this dracut log output mean? Why is there an infinite loop?

I'm fighting a server with Centos 7 that doesn't start. I've no idea why. I found that I can pass the rd.debug parameter to the kernel and it logs a LOT of dracut initialization messages. 1.6MB in ...
2
votes
2answers
13k views

update-initramfs command not found

How can I update initramfs somewhat how it is described elsewhere for adding firmware? For a Debian 10 I get a command not found error. initramfs-tools is installed. root@pc:/home/.../linux-firmware/...
1
vote
0answers
59 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
656 views

how to populate /sys in a initramfs?

I'm trying to boot an OS (linux kernel) using the debian kernel so i needed to use an initramfs (as everything is builded as modules). But after booting into the initramfs, it doesn't seems to ...

1
2
3 4 5
8