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
2
votes
0answers
1k views

Why do I need to specify two init images - initrd and boot - inside KVM to boot to bash?

My machine is running inside a KVM virtual machine (Parallels Desktop v8), having a BIOS (not UEFI), having one SATA drive connected, one GPT partition on that disk, the partition is ext4 formatted, ...
2
votes
0answers
855 views

Booting over the LAN using uboot

I am trying to boot my beaglebone over the LAN. I am able to download the Kernel uImage from the TFTP server. Here is what I did - U-Boot SPL 2011.09-00053-gb423c52 (Aug 10 2012 - 11:26:55) Texas ...
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
212 views

how to know the right size of /boot

for now /boot on our linux machines is /dev/sda1 497M 157M 340M 32% /boot we want to create a new linux redhat template and I have the feeling that /boot size is too small for ...
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
3k views

No support for locale: en_US.utf8

I am on Linux Mint 17.3. I saw this in the syslog. Processing triggers for initramfs-tools (0.103ubuntu4.3) ... Apr 9 12:01:47 vb-nb-mint updates: update-initramfs: Generating /boot/initrd.img-3.19....
1
vote
1answer
57 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
90 views

Kali Linux (old install) will not boot

Thank you to everyone for the advice, I have tried everything I could think of but nothing seems to solve the problem. I will format the drive and reuse it. I have this horrible feeling the drive may ...
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
490 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. initrafs-tools is installed. root@pc:/home/.../linux-firmware/...
1
vote
2answers
200 views

loadaddress of ramfs

I have some difficulties to make initramfs functional with SAMA5D27 SOM1 Evaluation Kit. I am trying to have a functional initramfs. I first verified that I have a functional linux when used 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 ...
1
vote
1answer
800 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
1answer
3k views

Ubuntu 16.04 stops booting, it has LVM and LUKS encryption configured, superblock restore already tried

Suddenly my Ubuntu 16.04 drops me into an initramfs prompt like this: BusyBox v.1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) Enter 'help' for list of built-in commands. (initramfs) ...
1
vote
1answer
868 views

How to mount /usr at boot time without an initramfs?

I'm having trouble booting into my system with systemd installed. I wouldn't like to use an initramfs, so I use a self-configured kernel which starts my kernel with the following in-built command line:...
1
vote
1answer
1k views

kexec from within initramfs

Can kexec be used from within initramfs to load up a new image and kernel? It seems that kexec calls shutdown which then looks for /dev/initctl, which is missing from a busybox initramfs image. Any ...
1
vote
1answer
30 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 ...
1
vote
1answer
76 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
vote
2answers
69 views

Custom initramfs not detected

I have custom initramfs that should start busybox shell. The cpio archive contains directory bin/ with busybox and init. busybox is statically linked binary: bin/busybox: ELF 64-bit LSB executable, ...
1
vote
1answer
99 views

What is the relationship between dracut and initramfs?

When experiencing a boot failure I see the system drop to a prompt which says dracut. It is my understanding dracut is used to generate an image of initramfs. What I'm confused about is that based on ...
1
vote
1answer
403 views

invalid line /etc/crypttab

I am troubleshooting a debian system that will not boot; the system booted fine, and one day ceased to do so (possibly but not definitely related to an apt upgrade). It has a small boot partition (...
1
vote
1answer
101 views

System goes into initramfs mode

I am trying to boot my system but it goes to initramfs and nothing happens. On using exit command it shows: ALERT! UUID=3668c6fc-7986-490b-8642-705c4532d16a does not exist. Dropping to a shell! On ...
1
vote
1answer
315 views

Why does switch_root delete all the files in the initramfs?

WARNING: switch_root removes recursively all files and directories on the current root filesystem. -- man switch_root from util-linux, version 2.32-2.fc28.x86_64 Why?
1
vote
1answer
340 views

Addressing scheme of initramfs gzip'ed cpio archive during boot

The following boot file (vmlinux64) for Linux kernel v2.6.21.7 ( Distro: Cavium-Octeon for MIPS64 ): ELF HEADER: ------------------------------------------ Magic: 0x7f 0x45 0x4c 0x46 ("ELF") Class: ...
1
vote
1answer
85 views

Where is the filesystem that “Root Storage Daemons” run on? What does it look like?

https://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons/ ...these storage daemons are started from the initramfs, stay running all the time during normal operation and are terminated ...
1
vote
1answer
313 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 ...
1
vote
2answers
614 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
1answer
310 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 ...
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 ...
1
vote
1answer
211 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
1answer
382 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
2answers
660 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
78 views

Cannot boot up when Adaptec SCSI card is replaced

Current Fedora 19 installation is on an Adaptec 29320 and I am trying to temporarily replace it with an Adaptec 29160. The functionality of the cards is very nearly the same except the replacement is ...
1
vote
1answer
69 views

Mount and copy /var to EC2 instance store during first boot

I'm running EC2 EBS images on instances with instance stores on /xvdb and /xvdc. I have managed to create a script to raid these two drives on first boot and mount them as /mnt. I am doing this as a ...
1
vote
1answer
466 views

How to put initramfs and kernel on two separate partition?

I'd like to put the initramfs on a USB device will keeping the linux kernel on the SSD, so I get the fast boot while protecting my encryption settings on the USB device. Any idea how to do that ?
1
vote
1answer
838 views

What's the difference between the initramfs and the actual main filesystem?

initramfs is a temporary file system used to start up the system, and then passes control to the root after mounting it. The reason I can't just use the ramfs to do stuff is that anything you save ...
1
vote
1answer
2k views

Invalid module format

I try to install a module using this command: sudo insmod mymod.ko [arg1] [arg2] but I get this error while loading the module: insmod: error inserting 'mymod.ko': -1 Invalid module format my ...
1
vote
1answer
1k views

Keyboard isn't working when it comes to enter the password for encrypted root

Hello I installed Debian, the entry in the NVRAM made by the installer isn't working so I boot it with refind using the following kernel parameters : rw nomodeset root=/dev/mapper/cryptroot initrd=/...
1
vote
1answer
5k views

Debian jessie volume group not found and can't boot

I have accidentally deleted my boot partition. OS is Debian Jessie with LUKS LVM. I have created a new partition and successfully reinstalled grub with the chroot method. Now when I try to boot, my ...
1
vote
1answer
596 views

new motherboard, old disk: “Gave up waiting for root device”, dropping to initramfs; grub reinstallation doesn't help

I want to use a new motherboard with an old disk. The disk has just one partition, with Debian/jessie installed. On booting, Debian is found and begins to start up with usual dmesg output lines. After ...
1
vote
1answer
5k views

Difference between initramfs.cpio and rootfs.cpio

What are the differnces between the two? Can I just use initramfs.cpio or do I need to use both? Actually my rootfs.cpio file is 7 Mb and initramfs.cpio is just 0.5mb, so I was thinking if I can use ...
1
vote
1answer
391 views

Using qemu to boot OpenSUSE (or any other OS) with custom kernel

I want to run OpenSUSE as guest with a custom kernel image which is on my host machine. I'm trying: $ qemu-system-x86_64 -hda opensuse.img -m 512 -kernel \ ~/kernel/linux-git/arch/x86_64/boot/...
1
vote
1answer
2k views

How to make an entry of Slackware into grub2

I want to manually add the Slackware entry into the GRUB2 configuration file /boot/grub/grub.cfg. But the problem is that there is no initrd or initramfs present in /boot directory of Slackware. I saw ...
1
vote
0answers
19 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
0answers
32 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
69 views

Dependency failed for /boot LUKS on external USB drive after Debian update initramfs

Please somebody help me :( after a firmware update my Debian Sid with encrypted LUKS root does not boot clean anymore. At boot, after inserting my passphrase, there are a bunch of messages and a ...
1
vote
1answer
85 views

How to avoid “can't access tty; job control turned off” when boot to initramfs

i'm testing my custom initramfs now, but everytime the log there will have the "can't access tty; job control turned off". The /dev in initramfs has four files: null, sda1, ttyS0. The kernel ...
1
vote
2answers
114 views

Save variable from initramfs (at boot time)

How can I save environment variables at boot time before the real filesystem has been mounted ? I know there is /etc/environment but whithin initramfs that file is not accessible yet. I also thought ...
1
vote
0answers
86 views

How to tell Linux where initramfs is in RAM

I'm trying to boot a Linux kernel running on top of Xen with a initramfs copied into RAM by the bootloader. In the device tree I took out a chunk of memory so the kernel will not overwrite the area ...
1
vote
1answer
63 views

What frees the `.init.ramfs` image after it is unpacked into the `rootfs`?

Under the old initrd system, Linux used to free the initrd image. This was traced on the console: Freeing initrd memory: xxxxk freed. What this referred to was actually releasing the memory ...