nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How do I make an initrd image?

This is a discussion on How do I make an initrd image? within the Linux software forums, part of the Linux Getting Started category; I had downloaded kernel 2.6.14 from www.kernel.org and under debian i had compiled it, but i have also added entries ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 11-15-2005, 03:38 AM
Member
User
 
Join Date: Jun 2005
Posts: 78
Rep Power: 0
jerry
Default How do I make an initrd image?

I had downloaded kernel 2.6.14 from www.kernel.org and under debian i had compiled it, but i have also added entries in grub (/boot/grub/menu.lst) as follows:
Code:
title           Debian GNU/Linux, kernel 2.6.14 Default
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.14 root=/dev/hdb1 ro
savedefault
boot
After booting into 2.6.14 it died with an error "kernel panic" for old kernel i can see
Code:
initrd          /boot/initrd.img-2.6.11
Google told me initrd is image with driver so how do i make in initrd image?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-15-2005, 03:21 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

First goto boot dir
Code:
cd /boot
Then run mkinitrd as follows:
Code:
mkinitrd -o initrd.img-2.6.14 2.6.14
-o initrd.img-2.6.14 is file name
2.6.14 is kernel version name

next update your GRUB boot config file, so that at the end it should look like as follows

Code:
title           Debian GNU/Linux, kernel 2.6.14 Default
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.14 root=/dev/hdb1 ro
initrd          /boot/initrd.img-2.6.14 
savedefault
boot
save changes and reboot system
Reply With Quote
  #3 (permalink)  
Old 12-16-2005, 08:32 PM
Junior Member
User
 
Join Date: Feb 2005
Location: Pune
Posts: 11
Rep Power: 0
vin6384
Default

Hi,

After mkinitrd -o initrd.img-2.6.14 2.6.14 it will create one file as a 2.6.14 which u need to copy as initrd-2.6.14 otherwise system will not able to find ur initrd file....
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
make 2.6.22 as 2.6.18 image.. sathiya Ubuntu / Debian 1 05-02-2008 03:03 AM
Mount iso image saurabh_jsh Linux hardware 1 04-29-2008 03:52 PM
Image Name problem ssent12 Windows Xp/2000/2003 server administration 4 06-27-2007 01:19 PM
Linux png image resize command sweta Shell scripting 2 05-31-2007 03:21 PM
Script to Display Image size, Res, and Compression TiredOrangeCat Shell scripting 4 02-13-2007 12:04 AM


All times are GMT +5.5. The time now is 09:08 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36