Questions tagged [initrd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
2 answers
4k views

Embed initramfs into existing kernel

Is it possible to embed an initramfs image into existing kernel without recompiling the whole thing? I don't have resources to do that.
5 votes
1 answer
280 views

FUSE for root filesystem in Linux?

Is it even possible to use a FUSE (non-networked) filesystem as root in Linux? I assume the program has to be present in the initrd, but I'm not sure about specifics. For instance does the FUSE ...
1 vote
1 answer
1k views

Is it possible to reclaim the memory used by an initrd?

I'm developing a boot process for an embedded device. Currently I'm using an initrd (uncompressed it's 4 megs) to be able to setup my real root partition before continuing to boot (I have to select a ...
1 vote
1 answer
1k views

Secure boot with unified kernel image on openSuSE?

I am trying to install OpenSuSE Tumbleweed on a system with encrypted root partition. At first i tried to set up GRUB, but it refused to recognize a LUKS-encrypted partition. Currently I am trying to ...
1 vote
1 answer
566 views

How to redirect (or tee) early boot messages (and/or dmesg) in real time

I am trying to boot from a usb-hdd, which is supposed later to pass control to a full-fledged Ubuntu 18 installation, on a different HDD. The usb-hdd has only the following directories and files: - ...
4 votes
1 answer
3k views

What Linux kernel modules to load to detect IDE and SATA cdrom drives?

So I am creating my own copy of Linux initramfs (For learning purposes). Everything seems to be working great. I, correctly, installed shared libraries and I can run some binaries from within the ...
3 votes
2 answers
5k views

Need To uncompress the initramfs file

I am new to this Linux Kernel and I am trying to boot a board from the usb and I was sucessfull Now My problem is the usb has two files a) initramfs.cpio.xz b) linux.img Now what I need to do ...
0 votes
1 answer
428 views

Boot automatically into Debian instead of busybox/initrd?

I'm using an old TS-7500 (https://www.embeddedarm.com/products/TS-7500) rugged platform for a home automation project (it was a freebie from my college) and I want to get the platform to boot into the ...
1 vote
0 answers
2k views

update-initramfs -u fails after installing new kernel

I compiled and installed a new kernel, 4.19.10 following this guide. https://www.cyberciti.biz/tips/compiling-linux-kernel-26.html I had done the same in the past without any issues but this time ...
0 votes
0 answers
267 views

Initramfs creating bad/duplicate mount point in Linux

I have a CentOS7 system, and I built a 4.14.29 kernel for it, created an initrd for it - just as I have many, many other times. When I now do this (going from a 4.11 to a 4.14.29 kernel) - I am seeing ...
3 votes
2 answers
16k views

What does "mounting a root file system" mean exactly?

In the boot process of Linux we have the initrd that is a root file system and is mounted before the real root file system is ready to mount. What is the procedure of mounting? What should happen so ...
11 votes
2 answers
9k views

How easy is to crack the following copy protection? [closed]

I am trying to copy-protect some work, which is a bootable SD card booting a Linux kernel on ARM device (Raspberry Pi). I am using this approach: The approach uses an initrd to mount an encrypted ...
1 vote
1 answer
196 views

Include dmsetup in initrd

I am trying to install Slackware on an encrypted partition by following these instructions. However, when I issue mkinitrd -c -k 3.2.29-smp -m ext3 -f ext3 -r cryptroot -C /dev/sdx1 the resulting ...
7 votes
1 answer
2k views

Using directory as initrd in QEMU

Is there a way to use a directory as initrd when booting QEMU? I know how to use the -kernel and -initrd flags for QEMU to boot a kernel and initrd without needing to first create a bootable device ...
3 votes
2 answers
2k views

Which is the user‑space command for resuming from hibernation?

During a long time, I used echo disk > /sys/power/state In order to hibernate to/dev/sda10and I was using the initrd of my Debian distribution to resume. But recently, I switched to a raid ...
1 vote
1 answer
400 views

Booting a Linux Live tool from FreeBSD UFS2 partition

I would like to boot a Live Linux CD, without needing the CD. Take for example GParted or CloneZilla. Which I periodically boot off their Live CD. But I would like to eliminate the use of the CD/DVD ...
1 vote
1 answer
165 views

I can't change the disk layout of an installed Linux system

I have a Debian Jessie system with LVM2 layer. By a mistake, I had installed this system with many partitions (root, usr, home, var,...). Now, I run out of disk space for usr and var partitions, even ...
0 votes
1 answer
2k views

Merge a squashFS and a initrd into one single file (PXE booting)

I have a initrd and a cloop (squashFS). Which is the simplest way, to merge those 2 files into one single initrd file, for the purpose of PXE-booting the whole image at once without any bootstrapping ...
1 vote
0 answers
213 views

Install ubuntu (or debian) on NTFS using posixovl

I'm trying to install Xubuntu on my USB pen drive. I would like to use the pen drive as generic storage device as well, so I would like to keep it as a single NTFS partition for maximal compatibility ...
0 votes
0 answers
56 views

How to stop an errant shutdown

I have a system with many processes and one of them looks to be invoking shutdown or something similar causing the host to exit very quickly. There is no linux kernel crash so I'm going under the ...
0 votes
1 answer
1k views

Copying glibc from initrd to my root filesystem

I'm trying to install glibc 2.20 (built recently) to Debian using this guideline from FAQ referenced at this page (the question within FAQ is How do I install all of the GNU C Library project ...
1 vote
2 answers
267 views

initrd.img creation in installation cd

as you know, in Linux environments initrd is different for each hardware platform, for example in vm and actual hardware. for create initrd, must use mkinitrd command. but in installation cd ...
3 votes
1 answer
8k views

How to boot into a root filesystem stored as partition image file on a bootable DVD?

I have created a bootable CD from a USB stick (built from Ubuntu core 12.04 according to this example) by copying the files of the USB stick's boot partition (containing vmlinuz and initrd.img) into ...
0 votes
1 answer
346 views

building custom kernel on redhat 9

I'm trying to build a kernel 2.4 on redhat 9. but when I go through theses steps: make menuconfig make dep make bzImage make install they return no error but when I try to boot into it, it returns ...
2 votes
1 answer
5k views

Can I make SYSLINUX load a root fs from an image file on an NTFS partition?

SYSLINUX allows me to boot from a FAT16 USB-stick by loading a kernel image and an initial ram-disk (initrd) image from there. To get more space and a faster access, I can mount an NTFS partition ...
1 vote
1 answer
787 views

How to transfer a USB bootable ubuntu system to a bootable DVD

I've built a USB bootable 1.5G system derived from Ubuntu core (along the lines of this example). It boots using syslinux on most of our Intel hardware. Intel iMacs are an exception (grub EFI with GPT ...
0 votes
1 answer
1k views

linux kernel mount filesystem from the encrypt partition when boot,how to?

my sd card have two partition,one is the boot,and another is the filesystem,now I use linux tool cryptsetup encrypt the filesystem partition,when boot on my board,the kernel can't mount the filesystem(...
0 votes
2 answers
1k views

GRUB2 UEFI booting from LVM on RAID (with XEN)

I'm experimenting with booting root filesystem from LVM volume inside the raid (mdraid superblock 1.x) via UEFI with GRUB2. Also I'm using Xen hypervisor. From grub command line I can see my lvm ...
1 vote
1 answer
1k views

Reboot the system from an initrd without causing a kernel panic

i want to start a linux kernel over pxe boot, load a very small initram, do some jobs there and reboot the machine. so my init script looks like this: #!/bin/sh -e # used for initramfs export PATH . ...
2 votes
2 answers
1k views

Linux kernel compiling: standalone OS

Hi guys I'm new to linux kernel compiling so I have some question: By compiling linux kernel are we building a totally standalone OS which doesn't depend on any linux destributions? If yes... Well ...
3 votes
3 answers
946 views

PXELinux and compressed kernels/images

Is it possible to boot compressed kernels with a compressed initrd with PXELinux? First, a little background: We created a custom Linux distro, for diskless OpenCL computing nodes. We want those ...
2 votes
0 answers
532 views

What does the linux kernel/initrd loading time depend on?

I recently updated my Linux kernel from 3.1.10 to 3.5.0. Upon booting with GRUB, I noticed that this kernel (or the initial ramdisk?) takes a much longer time to load (~5-6 s vs. ~1 s with the old ...
2 votes
1 answer
13k views

How to build initrd without dmraid-driver on Ubuntu 9.10?

I would like to follow this piece of advice on mdadm Wikipedia article (to get mdadm & RAID working on my Karmic workstation): To solve this problem, you need to build a new initrd without ...
0 votes
2 answers
2k views

Ubuntu apt-get upgrade breaks update-initramfs?

I ran apt-get upgrade on a Ubuntu 8.04 32-bit server. It upgraded lots of packages but failed here: Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-2.6.24-16-...
4 votes
1 answer
5k views

Possible to boot Linux kernel without initrd?

Is it possible to boot a Linux kernel (say 2.6.35) without initrd these days? I seem to remember that this is possible before (early 2.6.x and 2.4). I mean, in theory, if a kernel has all hardware ...
2 votes
1 answer
4k views

what user/group are init.d scripts launched as?

Maybe i got the title wrong so correct me if it is On system bootup i get the error spawn-fcgi: opening PID-file '/var/run/php-fastcgi/php-fastcgi.pid' failed: Permission denied What permission ...
1 vote
0 answers
94 views

rescue Ubuntu 11.04 from overwritten system files

I accidentaly extracted an ArchLinux initrd to / . Now the system won't boot anymore. How do I reinstall the overwritten system files? Can I use an apt-command for this? I still can chroot into the ...
4 votes
1 answer
2k views

Extracting init script from bult-in intrfs into Linux bzImage

I have following problem - I damaged my system (Gentoo - by rebuilding using gcc 4.5) beyond repair. I unmounted /home, copied /etc + other important files and I've started reinstalling system. ...
0 votes
2 answers
7k views

skip init scripts - boot freezes at "setting system clock"

I have a debian system that's freezing in the boot sequence at "Setting system clock". Several sites I looked at recommended changing the init scripts to disallow hardware access to the clock. But, I ...