Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
648 views

Unable to boot into Zorin OS - ending in BusyBox

I'm running Zorin OS 12.2 (downloaded and installed in September 27th this year) on a Dell XPS 13. I installed Zorin instead of the pre-installed Windows 10 (I'm aware that Dell XPS ships with Ubuntu ...
0
votes
1answer
212 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
113 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
2answers
615 views

How can I execute tpm2_nvread in the initramfs image created by dracut for centOS 7?

I want to load unlock my LUKS partition (root file system) at boot time using a TPM 2.0. I've had no success using a keyscript=/path/to/script in my /etc/crypttab file, however I made progress using ...
1
vote
0answers
601 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
312 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
412 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
492 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 ...
0
votes
1answer
1k views

openSUSE stalls at “loading inital ramdisk” in VirtualBox

I am looking to switch to OpenSUSE on my machine. So I decided to test OpenSUSE on virtual box to try it out. But when the installation was complete (with no errors) , the system stops at "loading ...
2
votes
1answer
220 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 ...
2
votes
1answer
547 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
287 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 ...
1
vote
3answers
3k views

wrt (openwrt / lede) initramfs

Do you know what initramfs-kernel mean? I know squashfs-factory/squashfs-sysupgrade. How can I do it or what is it? which is better? I just don't understand what the initramfs-kernel mean. I have ...
1
vote
2answers
110 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 ...
9
votes
7answers
7k views

Hibernation resume fail on linux kernel 4.9.0, Debian 9

I recently upgraded my kernel from 3.16.4 (Debian jessie) to 4.9.0 (Debian stretch). Everything was fine, until I tried to "Hibernate" (suspend to disk). When I use Hibernate option in LXDE, it ...
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 ...
2
votes
1answer
3k views

ERROR: device '' not found. Skipping fsck (can't boot)

I have a Manjaro Linux installation and after a pacman - syu update (potentially updating the kernel) , and restarting my computer, I get the following error message after grub: [ 4.896409] Initramfs ...
1
vote
1answer
212 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
80 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 ...
1
vote
0answers
205 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
186 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
451 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 ...
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 (...
0
votes
1answer
4k views

Debian 8 jessie: The root filesystem on /dev/sda1 requires a manual fsck

I was working in Atom on a small webpage and suddendly it would not let me save my file, saying that read-only mode was turned on. I tried to update in the terminal but that would not let me either, ...
2
votes
1answer
1k 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)...
1
vote
0answers
151 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
308 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, ...
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
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 ...
3
votes
2answers
4k views

Set initramfs to prompt for luks passowrd on startup on Mint 18?

After updating to Mint 18.1, I can't get initramfs to prompt for a password to unlock the volume with the root file system on it. I have to wait until initramfs times out to a prompt then run ...
0
votes
1answer
610 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 ...
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
572 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 ...
7
votes
2answers
782 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 ...
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
126 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
383 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 ...
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
913 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 ...
2
votes
2answers
869 views

Why don't we include File System drivers in the kernel itself instead of using Initrd/Initramfs

The Linux kernel contains very minimal code that is necessary to boot on a majority of devices but I don't get the point of having Initrd/Initramfs.As far as I've understood Initrd/Initramfs job is to ...
1
vote
0answers
843 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....
2
votes
1answer
1k 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
1answer
654 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

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
134 views

Why does the linux kernel (3.4.1) compiled by myself hang on “Unpacking initramfs” but succeed with more RAM?

I am trying to replace the linux kernel in Debian7.11 with a new one of version 3.4.1(the original one is 3.2.0) for experimental environment using Parallels Desktop. I configured the new kernel with ...
1
vote
1answer
59 views

Debian drive keeps corrupting

After logging in to my Debian machine, I just get a black screen. When going to tty1 I see "xset unable to open display". When I next reboot, I get into initramfs because of some bad blocks om /dev/...
1
vote
0answers
96 views

Device load on initramfs broke on dist-upgrade

I'm working on raspberry, with raspbian wheezy, for a fun embedded project. For this project, i need to display the project logo on the integrated touchscreen (tontec mz61561) as soon as it is powered....
1
vote
2answers
664 views

New installation freezes at loading initramfs [closed]

Recently I got Acer Aspire ES 14 into my hands and wanted to install Lubuntu on it. I dissabled UEFI, system was successfully installed but it freezes after reboot. I tried to boot in recovery mode ...
1
vote
1answer
2k views

Linux Mint: Error! Your kernel headers for kernel 4.4.0-38-generic cannot be found

After several attempts to fix the issue by myself I've decided to post here, basically everytime I'm running an upgrade I received this error message: fabrizio@fabrix ~ $ sudo apt-get upgrade Reading ...