The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

Order of kernel upgrade commands for gentoo

I have simple bash script to update the kernel. It includes building the kernel, rebuilding external modules, building initramfs with genkernel and updating grub config, here is the script: #!/bin/...
1
vote
0answers
53 views

Can not Mount “/dev/hdb on /cdrom” on Carrier i-Vu CCN

I had to replace a hard drive in a Carrier I-VU HVAC Control server for a nursing home with no heat. I am not a HVAC guy but am trying to get heat back on because repairman could not get it for a week....
1
vote
1answer
87 views

Using command (dd if=/dev/mmcblk0p1 | sha1sum) while running from initramfs

I have an opensource airgapped raspberry pi project seen at the following link: www.privatekeyvault.com I have provided a method for installing LUKS full disk encryption seen at the following: https:/...
1
vote
0answers
52 views

Unable to fully execute the task before Shutdown

I have created the script in /etc/init.d/backup, Its function is to take the backup of all the data which took around 10 -15 minutes. I want to execute at shutdown (runlevel 0) and reboot (runlevel 6)....
1
vote
1answer
346 views

Naming scheme of MTD partitions

What is the naming scheme of MTD partitions listed in the following boot log? 5 cmdlinepart partitions found on MTD device phys_mapped_flash Creating 5 MTD partitions on "phys_mapped_flash": ...
1
vote
0answers
194 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/...
1
vote
1answer
1k views

Unlock LUKS non-root filesystem partition on boot

I have a system with an unencrypted / partition on Ubuntu 16.04, but with a LUKS encrypted ZFS zpool on 3 partitions. In order for the system to boot properly I want for the LUKS encrypted volumes to ...
1
vote
1answer
269 views

How to auto mount a partition during initramfs/inird phase?

I have an encrypted Debian linux system. I also try to detach the LUKS header from the encrypted container. The whole /boot/ partition will be stored on a separate device. I thought I could place the ...
1
vote
0answers
245 views

Bash 'read' command. 'enter' key goes to the beginning of the line instead of completing 'read' command

I used agetty ( v2.27 ) to create a bash shell terminal through ttyGS0. For some reason, when I used a computer to create a console via the ttyGS0 line, after I call read, pressing the Enter key goes ...
1
vote
0answers
358 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 ...
1
vote
1answer
643 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 ...
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
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
491 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 ...
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
204 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 ...
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 (...
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 ...
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 ...
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
0answers
841 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....
1
vote
1answer
650 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 ...
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
95 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
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 ...
1
vote
1answer
282 views

How to use only automatically build RAID arrays on Ubuntu?

I have an Ubuntu 16.06 system where / on an SSD primary partition and /home with md RAID0 on four SSD devices. The file /etc/mdadm/mdadm.conf is automatically generated by mkconf and contains no ...
1
vote
0answers
1k views

BusyBox on persistent USB Livesystem

I fiddled a bit with creating a Live USB stick for creating a LFS system on my new computer. To make this easier I wanted to store some persistent data on it as well (settings, GCC, make and such ...
1
vote
0answers
355 views

Different mount output with and without initramfs

I need to create an initramfs to load a driver to access EMMC which contains the root filesystem. In my current kernel build, the EMMC driver is modular (sorry, can't change this). After the kernel ...
1
vote
0answers
195 views

Can't boot from live USB after Debian install

I've recently installed Debian on my old Itautec pc, from a live USB with a Jessie net install. Everything was working fine, but after trying to restore configurations from an old server, I ...
1
vote
0answers
1k views

switch_root with systemd: “Too many levels of symbolic links”

I'm trying to boot a proprietary kernel build and OS after an upgrade to libc and numerous other tools. I'm booting using an initramfs in the 3.2.0 kernel with some utilities, like busybox. However, ...
1
vote
0answers
516 views

How to change the order of HOOKS in debian iniramfs configuration?

Hello I installed Archlinux to learn and now I'm insalling Debian but the initramfs setup is quite different from the mkinitcpio from Arch. My question is : where do I find the order in which the ...
1
vote
1answer
1k views

(Linux) unable to mount from initramfs [closed]

I am trying to install Linux (Debian) on a new laptop. This requires special care because the laptop keyboard needs a kernel patch (and I have not compiled a kernel for about 10 years). Also, because ...
1
vote
0answers
360 views

Mounting real rootfs after initial booting using initrd

I'm booting kernel with root=/dev/ram0 on a embedded environment. After initial booting, how can I mount real rootfs present at /dev/mtd3 and make it as the only rootfs. I'm using root=/dev/ram0 ...
1
vote
0answers
40 views

dracut md5sum boot directory

This has been going on for a few months now, but my initramfs (and kernel) for that matter have been placed in /boot/{some hash}/{kernel version}/{initramfs,linux}. Did dracut or some other module ...
1
vote
1answer
2k views

Booting Gentoo on LVM inside LUKS with gpg encrypted keyfile

I'm trying to install Gentoo on LVM logical volume inside LUKS container encrypted with key file encrypted by GPG with passphrase. Everything was going smoothly until I tried to boot. I'm building the ...
1
vote
0answers
55 views

Kernel compilation for minimum program execution

Compiling the Kernel requires me to configure modules. I am unsure how to configure a Kernel which only supports following things: Programs compiled with gcc on other machines (glibc). I want to run ...
1
vote
1answer
290 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
1answer
488 views

Correct location of initramfs.cpio file when compiling kernel

I am following this article and generated an initramfs.cpio file. Now the tutorial mentions that I have to put this file in build directory: Finally, you have to rebuild the kernel again: # 0. ...
1
vote
0answers
91 views

Kiwi produces huge initramfs

I'm using Kiwi to build a boot CD based on OpenSUSE 13.1. I want the disk ISO image to be as tiny as possible. I managed to get the read-only filesystem down to only 100MB, but for reasons unknown, ...
1
vote
0answers
505 views

unionfs filesystem

I recently learned about unionfs and aufs and would like to put it to some real use. The scenario I have in mind is the following. Boot a machine with ubuntu on it which will serve as our base. Make ...
0
votes
2answers
48 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-...
0
votes
1answer
30 views

Booting on a x64 machine with BIOS?

I have a packard bell ze7 it's a x64 machine and it only has BIOS. Before I got it, I thought that's a non-existent combination... I'm building Gentoo by hand, my own initramfs, all that good stuff. ...
0
votes
2answers
2k views

initramfs - ERROR: device '/dev/mapper/vg0-root' not found, Skipping fsck

Upon booting my Dell XPS 15 9560 running Arch, I am being dropped into an emergency shell because my devices aren't being found starting version 239 A password is required to access the luks volume: ...
0
votes
2answers
233 views

Can I trust initramfs and vmlinuz images?

I am running an Arch Linux installation on my laptop with the following partition scheme: /dev/sda1 is my /boot partition, which is also my ESP /dev/sda2 is my LUKS encrypted root partition I use ...
0
votes
1answer
162 views

What happens if you fork before switch_root?

So typically an initramfs /init script will end with something like exec switch_root /newroot /sbin/init effectively replacing itself with systemd or whatever floats your boat. But what would happen ...
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, ...
0
votes
1answer
306 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
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 ...
0
votes
1answer
4k views

systemd-boot: /vmlinuz-linux not found

I installed the systemd boot loader. But while booting it shows /vmlinuz-linux and initramfs-linux.img not found. How can I fix this? My directory structure is as follows; Output of lsblk:
0
votes
1answer
4k 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 ...