Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 12-07-2004, 12:35 PM   #1
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Rep: Reputation: 30
how to use initrd for making RAMdisk


I've had a mandrake (and a gentoo) system for quite some time, and now I've got some debian boxes running here, on which I've just compiled a kernel. This is al just exact like it's on those other distro's.

I've read this guide (when I was inexperienced):

And I've always created a RAMdisk properly.

To create the initrd, do the following:
$ mkinitrd /boot/initrd-2.6.0.img 2.6.0
Some versions of mkinitrd may require other options to specify the location of the new kernel. On SuSe 9.0, for example, the following syntax is required:

$ mkinitrd -k vmlinux-VERSION -i initrd-VERSION
If I try it on Debian, this doesn't work...
zeus:/home/boudewijn/linux-2.6.9# mkinitrd /boot/initrd-2.6.9.img 2.6.9

$Id: mkinitrd,v 1.201 2004/05/16 22:00:48 herbert Exp $

Usage: /usr/sbin/mkinitrd [OPTION]... <-o outfile> [version]

  -d confdir  Specify an alternative configuration directory.
  -k          Keep temporary directory used to make the image.
  -m command  Set the command to make an initrd image.
  -o outfile  Write to outfile.
  -r root     Override ROOT setting in mkinitrd.conf.

See mkinitrd(8) for further details.
I tried the other variant too, which didn't work either.

What am I doing wrong?
Old 12-08-2004, 03:34 AM   #2
Zaphod Beeblebr
LQ Newbie
Registered: Dec 2004
Location: Denmark
Distribution: Debian unstable - Arch linux
Posts: 1

Rep: Reputation: 0
This works for me. In fact no debian patched kernels that i compiled will boot on my machine without initrd.

mkinitrd -o /boot/initrd-2.6.9.img /lib/modules/2.6.9


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux initrd (ramdisk) dubi Linux - Software 1 07-26-2005 10:25 AM
Root FileSystem from RamDisk/InitRD winklmj Linux - Newbie 1 11-24-2004 11:16 PM
making kernel RPM. does not make initrd file mindcry Linux - Software 5 08-12-2004 10:20 PM
Trying to understand how a boot loader handles initrd/initramfs/ramdisk ... cyril Linux - Software 0 04-08-2004 05:10 AM
making an initrd file lyonsd Linux - General 4 03-14-2004 06:26 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration