LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-07-2004, 01:35 PM   #1
Boudewijn
Member
 
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


Hi

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):

http://www.digitalhermit.com/linux/K....html#MKINITRD


And I've always created a RAMdisk properly.

Code:
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...
Code:
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]

Options:
  -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, 04: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
 
  


Reply


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 11:25 AM
Root FileSystem from RamDisk/InitRD winklmj Linux - Newbie 1 11-25-2004 12:16 AM
making kernel RPM. does not make initrd file mindcry Linux - Software 5 08-12-2004 11:20 PM
Trying to understand how a boot loader handles initrd/initramfs/ramdisk ... cyril Linux - Software 0 04-08-2004 06:10 AM
making an initrd file lyonsd Linux - General 4 03-14-2004 07:26 AM


All times are GMT -5. The time now is 07:02 PM.

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