initrd is a method for loading a temporary file system into memory, during the process of booting the Linux kernel.

learn more… | top users | synonyms

2
votes
1answer
37 views

Why is it that my initrd only has one directory, namely, 'kernel'?

I'm using debian live-build to work on a bootable system. By the end of the process i get the typical files used to boot a live system: a squashfs file, some GRUB modules and config files, and an ...
1
vote
0answers
65 views

How can I replace root / filesystem with another filesystem?

When the Linux kernel starts up, it uses initrd as the root / filesystem, then replaces that with a filesystem partition in fstab. Based on a test in an early init script, I want to replace that root ...
0
votes
1answer
67 views

qemu can't run linux kernel

I saw this question and I did pretty much the same but I enabled initrd in configuration to use temporary root file system and no other modification but I still get this error on: qemu -kernel ...
2
votes
2answers
79 views

How can I remotely debug a broken initrd?

Background I have a system that runs Linux. It's a NAS, and does not have any monitor, keyboard, or serial port. It does have a network port. I'm not happy with the software running on it, and am ...
1
vote
1answer
66 views

Built new kernel, LVM won't mount from initrd

I need to upgrade my kernel on a RHEL 5 system to build with some experimental drivers. I have configured the kernel with module loading for LVM (dm_* modules). Once the initrd runs the /init ...
1
vote
3answers
321 views

Unpack, modify and pack initrd as a user

I've got a problem with rebuilding the initrd image as a user. Firstly, when I try to "unpack" the original initrd image: cpio -idm < initrd-base cpio: dev/tty8: Cannot mknod: Operation not ...
1
vote
0answers
109 views

Build Mini Linux and Embedded Linux

How to build Mini Linux with Busybox, Kernel-3.15.3, Syslinux? I've built my Mini Linux using these steps: Steps in Building Base Mini Linux Distro 0 . Compile the kernel and see ...
0
votes
0answers
30 views

How is built the initrd of a fresh install [RHEL55]

I'm trying to understand how is built the initrd.img file during an install process, I mean the one that will be boot up right after a fresh install. I updated the initrd.img file with new version of ...
0
votes
0answers
66 views

Regenerating Initrd.img on a different platform

Background: I have a QNAP TS-219PII NAS which has been setup to run the Debian Wheezy (the ARM Marvell Kirkwood flavour) following the instructions from ...
3
votes
0answers
55 views

Are there any canned solutions for running sshd in the initrd?

This is mostly aimed at Debian/Ubuntu, but I feel savvy enough on a variety of distros to be able to adapt the solution for one distro to another. Here's my scenario. There are a few situations when ...
-2
votes
1answer
61 views

Which would mount faster initrd or initramfs ? [closed]

I want to boot my linux as fast as possible. I have to make a choice between initrd and intiramfs. Which one should mount faster and have smaller size?
0
votes
0answers
277 views

“No modules available for kernel”

I have a CentoOS 5.10 clonezilla image I restored to a VM. I'm trying to run mkinitrd to fix the filesystem on it (According to this CentOS guide) but when I run this command: mkinitrd -f -v ...
2
votes
0answers
329 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, ...
0
votes
1answer
105 views

How are the services exactly starting in (K)Ubuntu?

I have latest Kubuntu. I have installed mysql. I was looking into the /etc/init. I see the following: In /etc/init/mysql.conf description "MySQL Server" ...
1
vote
0answers
95 views

How to show progress when loading initrd?

I have a complete root fs built into initrd, so it's almost 500MB. It takes a while to load to memory and during this time, the screen has no indication of the progress. I would like to know if there ...
5
votes
1answer
306 views

How do I load initrd into memory to be passed to kernel when using kexec?

As the MIPS port of kexec doesn't support the --initrd param, I'm looking for workarounds to imitate the feature. According to Linux/MIPS wiki, MIPS kernels support rd_start and rd_size kernel command ...
2
votes
1answer
493 views

How to open the clonezilla initrd.img?

I am not understand why I get the error about initrd.img ( this initrd.img is the original file from clonezilla ISO file cp initrd.img /tmp zcat /tmp/initrd.img | cpio -idm zcat: initrd.img: not in ...
1
vote
1answer
140 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 \ ...
4
votes
2answers
2k views

How does Linux load the 'initrd' image?

I've been trying to understand the booting process, but there's just one thing that is going over my head.. As soon as the Linux kernel has been booted and the root file system (/) mounted, ...
1
vote
2answers
511 views

Kernel freezes on loading ramdisk. How to find out what's wrong?

I'm using an Ubuntu Server (13.04) Minimal installation (with the Xubuntu Metapackage as a desktop environment, if that matters) on x86_64 on my Samsung notebook. I'm currently forced to use the ...
3
votes
1answer
187 views

initrd or ramfs for SLES as /

i would like to boot a SLES and run it out of a ramdisk. I would like to setup machines so that they start PXE boot and as part of the PXE boot process they pull across an image that is the root ...
1
vote
1answer
659 views

Measurement of free ram through /proc/meminfo with ramdisk (initrd)

I am booting a disk image via PXE, it is a full system on an initrd ramdisk. I would like to measure the actual free memory of the system (not including buffers and file system caching). I was told ...
4
votes
1answer
901 views

How can I force a Ubuntu kernel to fail mounting / and drop into the initramfs rescue shell?

I am trying to customize the initramfs rescue environment and would like to force the kernel to fail mounting / and drop into the (initramfs) rescue shell, as opposed to single user mode. How can I ...
3
votes
2answers
6k views

Ubuntu: How do the md devices get assembled at bootup?

How do the md devices get assembled at bootup in Ubuntu? Is /etc/mdadm/mdadm.conf truly the relevant factor here? My mdadm.conf is sound and I checked that while I was in the rescue CD environment. ...
3
votes
1answer
308 views

Mount /etc from disc into squashfs

I've created a gentoo-live system which should be booted from a CF-card. The whole file-system is in a squashfs. I've created a custom initrd which first mounts the CF-card and from there the squashed ...
0
votes
0answers
20 views

Preparing an initrd for qemu [duplicate]

I have compiled a bzImage but when I try to run it in qemu I get a kernel panic because I don't have an initrd file. So I create one by following the steps in this question but I cannot get it to ...
4
votes
2answers
3k views

Linux kernel is not finding the initrd correctly

I had compiled a linux kernel and I wanted to debug it in QEMU. I created a file to boot from by doing the commands $ qemu-img create -f raw disk.img 200M $ mkfs.ext2 -F disk.img # mkdir /mnt/rootfs ...
0
votes
2answers
683 views

Kernel/grub : how override root parameter inside initrd script

I have an old kernel ( 2.4.37.9 ) and I want to override or substitute the root=XXXXX parameter to send to the kernel inside the initrd script. I already made some attempt to do that but it seems ...
1
vote
0answers
173 views

How customize initrd via linuxrc

I have the need to use the same disk and so the same bootloader on devices with different motherboard. Each motherboard has it's own way of mapping devices so sometime the bootdisk is mapped ad hda ...
3
votes
1answer
571 views

Getting keyboard to work in debian 6.0 in order to unlock root partition

I just installed Debian 6.0, encrypted / and now I'm trying to boot. When GRUB comes up, I select Debian, it loads the initrd and asks for the root password, however I can't enter anything, because ...
2
votes
1answer
315 views

Booting grub-2.00 with 2 initrds, crashes with RAMDISK: incomplete write

So, I'm trying to split my initrd into two initrd's. There's some pretty significant scripts that run in the initrd, and we wanted to split the initrd so we could rev the just the logic or just the ...
1
vote
0answers
203 views

not all initrd.img's are born equal?

I am trying to get a Red Hat 5.8 box booting via pxe. The box is a virtual machine on ESX5.0 it has a Paravirtual SCSI Controller and VMXNET3 network driver. Now these drivers do not come default in ...
3
votes
2answers
4k views

building my own initrd, how to populate dev directory

I am trying to learn stuff about initrd. I have followed this tutorial to build my own initrd from scratch, and I installed busybox on it. Then I made an .iso from it with isolinux, so I could test it ...
5
votes
3answers
2k views

Does /init (or /linuxrc) script creates temporary device nodes in /dev?

Considering that GRUB executes following lines: kernel /vmlinuz root=/dev/sda1 ro initrd /initrd On boot, how does the Linux kernel finds out about /dev/sda1 device node? I know that ...
1
vote
2answers
417 views

Adding commands to initrd image [closed]

Whenever I enter into initrd prompt, I know that not every command is executed in that prompt. Can somebody tell me how I can add more commands support in that initrd prompt. It would be nice if you ...
1
vote
0answers
269 views

Configure vmware-tools without an initrd image?

Is it possible to run vmware-tools without an initrd? I don't know why I should use an initrd and it makes my kernel compilation more complicated. I can boot into my kernel without initrd but when I ...
0
votes
2answers
823 views

Linux Ubuntu / Mint Live CD user-home customization

I'm trying to customize Linux Mint Live CD with these instruction (uck doesn't work for me). What I want is to have more icons at its Live CD user (/home/mint/Desktop) but I can't find /home/mint on ...
3
votes
1answer
2k views

vmlinuz and initrd not found after building the kernel?

After configuring and building the kernel using make, why don't I have vmlinuz-<version>-default.img and initrd-<version>.img, but only got a huge vmlinux binary (~150MB)?
3
votes
1answer
271 views

Create Logical Volume Snapshot at boot and before mount

I'm using Kubuntu 11.10 and before I upgrade to 12.04, I want to make snapshots of my filesystems. Coming to think of that, I realized that it can be very useful to create snapshots of logical volumes ...
5
votes
1answer
747 views

Adding files to initrd makes linux not be able to read it

I'm using clonezilla-1.2.12 and need to add the Broadcom firmware to the initrd so it can netboot. (clonezilla is debian-based and debian no longer includes the firmware blobs as they're non-free. ...
0
votes
1answer
695 views

How to create initrd.img from initrd.lz

I need to create initrd.img file from initrd.lz file. How may I do this?
2
votes
1answer
241 views

When would an initrd be necessary?

I've read that I can boot the kernel without initrd, and I've also read that additional modules are loaded during the initrd stage -- as I understand it, for necessary drivers that weren't included in ...
8
votes
1answer
1k views

Why is my initial ramdisk so big?

I'm running Ubuntu 11.10, which came with kernel version 3.0.0-14. I downloaded and built a kernel from the 3.1.0 branch. After installing the new kernel, I see that my /boot/initrd.img-3.1.0 file is ...
2
votes
1answer
482 views

Script that unpacks a initrd, allows editing of the preseed.cfg and the packs it to cpio and gzip again

I want to program a script that allows what is said in the title. So basically I gunzip the initrd, than unpack the cpio, open vi to allow editing, save, pack with cpio, and gzip again, so nothing ...
1
vote
2answers
350 views

How to log the output of a daemon application?

I have a Java program running as a daemon (thanks to YAJSW, a wrapper for java). The thing is that this java application writes several lines of console text, (simply imagine a Hello World App). If I ...
3
votes
3answers
1k views

Avoid pause during dm-raid initialization

On my CentOS 5 workstation I get a few seconds wait after dm-raid45 has been loaded ("Initializing Driver" or something like that). This seems to be part of the initrd. After that the system boots ...
2
votes
1answer
183 views

How do i run a process in a specific directory?

In an init.d file i wrote the below. Now i need to make the bin run in a specific directory. How do i tell it which directory to use? mono --debug /path/bin &
4
votes
1answer
819 views

Booting without initrd

Is it possible to boot linux without a initrd.img ? I am planning to add default drivers as a part-of-kernel itself and avoid initrd completely. What are the modules that should be made ...
2
votes
1answer
1k views

Creating new initrd without installing kernel

How can i create initrd image for a new(experimental) kernel without actually installing it. (Existing tools to create initrd based on config and details from installed kernel.) Say i compile a new ...
6
votes
2answers
2k views

What does mkinitrd change when it adds kernel modules to the initrd?

When creating an initrd using mkinitrd (CentOS 5.5), the kernel modules it adds to the initrd get modified in the process. For example, the initrd's /lib/sata_via.ko is not binary identical to ...