We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
1answer
1k views

Once booted, Find Full Path of Kernel Image?

I know you can deduce which kernel image is currently running by checking /proc/cmdline and assume its the same one on the /boot mount point. But this isn't guaranteed. So is there a way to know ...
0
votes
1answer
758 views

error:file'initramfs-3.17.8-300.fc21.x86-64.img' not found press any key to continue

I have done what is written in this link https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide after section 2.7 I did reboot my Fedora machine, and after that, the system could not boot ...
1
vote
1answer
321 views

Failing to boot followed by initframs prompt after hibernating during update

This morning I did something stupid. On my Debian 8 I ran apt-get update and apt-get upgrade. In the middle of the unpacking and installation of the updates (approx 500MB) I had to leave fast. As a ...
6
votes
1answer
821 views

Does the kernel delete entries in /dev on an initramfs?

I have a fully custom, minimal, embedded Linux (vanilla, 3.3.8, i486, Vortex86dx) system that boots from an initramfs image. No standard distribution scripts are used, just a single rcS file that does ...
5
votes
0answers
446 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
1answer
1k views

Kali GNU/Linux Rolling 64-bit - Dropbear CryptSetup Wireless Setup Problem

I would like to ask for help in figuring out how to get the IP-Config program that shows up when attempting to use dropbear from guides such as this question to allow me to use wlan0 instead of eth0 ...
1
vote
1answer
847 views

Can not mount overlayfs inside initrd

I am trying to use read-only overlayfs(no workdir and upperdir) inside custom initrd. This works fine in completely booted OS: mkdir /tmp/ovl1 /tmp/ovl2 /tmp/merged mount -t overlay none -o lowerdir=...
1
vote
0answers
362 views

Adding wifi nfs boot to initramfs, under armbian and uboot

I'm trying to setup my an initramfs image to nfs boot from a WPA wifi access point. My image is working with armbian and uboot. so far I have NFS booting over ethernet just fine. But no real path to ...
0
votes
1answer
218 views

How to fix faulty drive labelling?

I was installing Kali Linux 2016.2 64-bit on my laptop. In my laptop, hard disk is always denoted by sda while flash drives by sdb or sdc. But during the installation, while selecting partition on ...
1
vote
0answers
117 views

Unreadable characters at boot process in arch-linux with preboot encryption [duplicate]

I have a weird bug, its an optical issue, its all functional it just looks weird. Its an arch-linux installation with pre-boot encryption. After powering on the laptop grub2 starts and looks as it ...
1
vote
0answers
606 views

Ubuntu 16.04 booted to BusyBox, fsck repaired, now sudoers.so file has no contents

Upon bootup, my Ubuntu 16.04 system booted to busybox (initramfs). I ran fsck on the boot drive, found and resolved errors. The system now boots fine, but I am unable to do anything as sudo. I get the ...
1
vote
1answer
335 views

Linux: Replace RAM with SDCard

With the performance set aside, is it possible to avoid RAM and use SDCard instead of it in Linux. Linux might be using allocated address space as RAM. Can we ask linux to use SDCard as RAM? I will ...
2
votes
0answers
417 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 ...
1
vote
1answer
503 views

Cannot recover from initramfs: File or directory not found when manually mounting root device

When not specifying linux /vmlinuz root=/dev/sdb1 correctly in the grub shell, I get dropped to the initramfs shell. Instead of rebooting, I would like to continue boot process from there. As ...
2
votes
1answer
224 views

How is initramfs loaded if it resides on the filesystem it is supposed to unlock?

I’ve got a chicken and egg type conundrum I’m trying to figure out: First point: If one of the purposes of initramfs is to load the main file system by providing some necessary drivers (RAID for ...
5
votes
1answer
2k views

update-initramfs failing after upgrading to stretch from jessie

I recently updated one of my Debian boxes to run with stretch, but unfortunately I run in an issue when it comes to the regeneration of the initramfs image. It seems that it doesn't recognize that I ...
2
votes
1answer
578 views

What does the Linux kernel do with unknown kernel parameters?

Supposedly I passed the kernel a parameter that it doesn't understand, for example blabla or eat=cake, what would the kernel do with these unknown parameters, the traditional case would be passing any ...
2
votes
0answers
306 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 ...
9
votes
3answers
4k views

GRUB confuses kernels/initramfs of Ubuntu and Arch Linux installation

I have a machine that used to dual-boot Ubuntu (16.04 currently) and Windows 7, with Ubuntu's GRUB as boot loader. Now I just added Arch Linux as third OS, following the official installation ...
1
vote
2answers
112 views

Why are these mounts needed before updating initramfs?

After reading this answer on bind mount, I got the idea that a bind-mount in Linux is to reproduce part or an entire filesystem under another point in the directory tree. So when we write the ...
1
vote
2answers
2k 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
1answer
218 views

Creating 32-bit initramfs on a 64-bit machine

I am on a 64-bit kernel and want to run a 32-bit kernel in QEMU. Once I had the compressed kernel image I tried creating the initramfs image using mkinitcpio but this only created an image with 64-bit ...
1
vote
0answers
82 views

Making root being bind mounted

I have XUbuntu and Arch on a laptop, I'm sharing /boot partition between these distros mounting it on /mnt/boot and bind-mounting /mnt/boot/xubuntu or /mnt/boot/arch onto /boot; it works fine even ...
6
votes
2answers
8k views

Initramfs in debootstrap chroot of fully encrypted system

I'm working on a script to create a fully encrypted washable system from debootstrap. It's doing some good, but the initramfs image that comes out does not pick up the cryptroot properly. After ...
1
vote
0answers
208 views

Is there a way to tell initramfs via Grub cmdline to open specified device with cryptsetup?

I have a Debian setup where rootfs is on a btrfs subvolume which is on a lvm partition which is on a luks partition which is on disk-A2 (disk-A||disk-A2||luks||lvm||btrfs||rootfs) I just copied my ...
2
votes
0answers
190 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 ...
3
votes
0answers
460 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....
6
votes
2answers
1k views

Freeing initramfs ram after switching root when using overlayfs?

I am building a custom Live Linux boot image based on Arch Linux. I've modified the stock initrd to contain a custom script which does the following: After boot, only the initramfs exists. I first ...
3
votes
1answer
3k views

How to boot into root btrfs file system with minimal initramfs without udev hook?

Arch Linux is UEFI booted from USB flash drive with GPT and three partitions: EFI (vfat file system) root (btrfs file system, was converted from ext4) home (btrfs file system, was converted from ext4)...
1
vote
2answers
2k views

Sudo apt-get remove python, gnome did not boot, tried dpkg --unpack *.deb

This happened after last night I was stubborn and sleepy enough to not read that it's best to install the missing dependencies from the var/logs and was lazy enough to just Google and try the first (...
2
votes
1answer
2k views

initramfs, LUKS and dm_mod can't boot after upgrade

My Raspberry Pi (which is 10,000 km away from me right now) works as follows: It is running Raspbian (July 2016's version) The SD card contains /boot An encrypted hard disk drive (using LUKS ...
1
vote
0answers
154 views

Making update-persistent changes to initrd in CentOS

I am booting a CentOS image via NFS, which requires a custom initramfs from dracut, with some extra modules. I want the kernel to get updated normally, using yum update. This will automatically ...
0
votes
1answer
311 views

Creating generic initramfs that is kernel-independent

I've just setup a proof-of-concept UEFI, PXE, NFS diskless booting system. For the NFS booting to work, I needed to create a custom initramfs using dracut-network including modules for nfs, network, ...
0
votes
1answer
334 views

Getting Exception while loading initramfs in linux

I am getting exception while booting the linux initramfs from uboot. my bootargs are: setenv bootargs 'console=ttySC0,115200 root=/dev/ram rw ramdisk_size=51200' booti 0x60E00000 0x70000000 ...
0
votes
1answer
335 views

Exception while freeing the initrd memory in linux

I am using initramfs file system along with a kernel image and device tree. I am getting an exception while freeing the memory of the initrd after unpacking it. The initramfs is unpacked successfully ...
2
votes
2answers
299 views

Predictable partition name for squashfs partition in initramfs

TL;DR: How can I boot a squashfs partition from initramfs with a predictable partition name? /dev/sda2 won't work because the device names get reordered randomly and sometimes it will boot from the ...
1
vote
1answer
293 views

MDADM Array Detection Slowing Down Boot - Why?

I have an AMD64 Gentoo (running systemd) build with a RAID0 root and some other arrays (RAID1 boot, RAID1 home etc..). The boot process is being slowed down quite dramatically as mdadm searches the ...
1
vote
0answers
4k views

Dracut not finding root device

When I boot my server, it shows the following and hangs forever: [ 88.166038] usb 2-1: device not accepting address 2, error -110 [ 88.285980] usb 2-1: new high-speed USB device number 3 using ...
0
votes
1answer
613 views

fsck error after converting Debian 8 root to LVM

I've (mostly) successfully split my Debian 8 root filesystem into a /boot partition (still on my original disk) and a / partition (using LVM on a second disk). The system boots fine, but the ...
0
votes
1answer
5k views

How to create Uboot Initramfs Image for arm64

I have initramfs file in gz format (initramfs.cpio.gz). I tried to boot with above gz file, but it shows following error. Wrong Ramdisk Image Format Ramdisk image is corrupt or invalid Then i tried ...
5
votes
0answers
2k 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 ...
0
votes
1answer
582 views

Linux: location in memory of initramfs

What is the standard location in the RAM of the initramfs (0xSOMETHING) ? If it is not specific, how do I specify an address to load initramfs from during boot? Is it possible to run make menuconfig ...
2
votes
1answer
1k views

switch_root gives Invalid argument

My goal is to unmount the root disk so I can format it. To do this, I want to switch root from the hard disk to some other root. I have chosen to use the files from the initramfs (which contains a ...
0
votes
1answer
1k views

fakeraid + UEFI + GPT - grub doesn't detect raid volume after debian install using dmraid

I have a post on the debian forums as well but it seems to have less traffic than here so I thought I'd try my luck here as well. I'm trying to install windows 10 and debian and possibly more ...
1
vote
0answers
127 views

CentOS/RHEL Init Script (pre-changeroot)

In Debian systems, you can add scripts to /etc/initramfs-tools/scripts/, but, as far as I can tell, there's no equivalent in CentOS. Is there way to inject a script into the initramfs that runs before ...
1
vote
1answer
392 views

What is mounted as / on initramfs when the specified root isn't available?

I'm exploring an issue of the system not booting completely and leaving me in the (initramfs) prompt. The system is x86 with grub as the bootloader. The problem seems to be that for some reason the ...
1
vote
1answer
662 views

Using udevadm for waiting for scsi scan to complete inside initramfs?

Where the problem is: I am using ArchLinux with archzfs, and zfs hook in my initramfs will occasionally try (and fail) to import pools too early, before scsi scan of all disks used by ZFS had ...
2
votes
1answer
1k views

Ubuntu fails to boot; stuck at initramfs

I'm a complete novice at Linux. I put my session on suspend, but when I tried to start it back up, it put me at the GRUB boot menu. After selecting Ubuntu, it put me in an initramfs prompt. I've tried ...
0
votes
1answer
938 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 ...
1
vote
0answers
847 views

update-initramfs Stuck

I ran apt upgrade and it wanted to remove an older kernel. I ran apt autoremove and it got stuck at update-initramfs: https://hastebin.com/jegeyitoxi.cpp3 Here's the referenced log: https://hastebin....