LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-14-2007, 01:11 PM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 545

Rep: Reputation: 42
using initrd on debian


hello all

For the first time in many years I;ve had to make a kernel rather than just downloading the debian image.
I've configured, make,make modules_install then make install. All appears well. I then use mkinitrd to get ramdisk, from inside /usr/src/linux-2.6.22 I type mkinitrd -o /boot/testinitrd.

I then add it to grub.
When I boot it all starts up then I get messages like
mount:unknown filesystem type 'devfs'
modprobe:FATAL: could not load /lib/modules/2.6.22/modules.dep:No such file or irectory

and lots of similar errors and finally

mount:devfs:not monted
kernel panic -not syncing:attempted to kill init!

I should add I'm using Etch, raiserfs partitions and a SATA harddrive, and have tried with several kernel buils, Can anyone advise. I should also add lib/mod/2.6.2 exists

And sorry if this mesage seems starange (spelling gramma, my text box will only open 4 characters wide :s

Last edited by knobby67; 08-14-2007 at 01:14 PM.
 
Old 08-14-2007, 03:52 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I think you are supposed to be using initramfs at this point, instead of initrd.. http://wiki.debian.org/InitrdReplacementOptions

Quote:
Debian has for some time distributed and installed modular kernels by default, depending on the helper package initrd-tools to add the needed modules in a cramfs initrd-image.

2.6 has a newer format, initramfs, which is an cpio gzipped archive. The handoff to early userspace is much earlier. Initramfs allows a cleaner interface.
 
Old 08-14-2007, 04:57 PM   #3
knobby67
Member
 
Registered: Mar 2006
Posts: 545

Original Poster
Rep: Reputation: 42
Thanks for that.
Could someone be kind enough to give me or point me in the direction of how to use this?
For example with initrd I'd just mkinitrd -o /root/kernelname module name eg makinitrd -o /root/custombuild 2.6,22

Thanks
 
Old 08-14-2007, 05:49 PM   #4
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Rep: Reputation: 32
Quote:
Originally Posted by knobby67 View Post
Thanks for that.
Could someone be kind enough to give me or point me in the direction of how to use this?
For example with initrd I'd just mkinitrd -o /root/kernelname module name eg makinitrd -o /root/custombuild 2.6,22

Thanks
why not recompile your kernel the debian way?
http://myrddin.org/howto/debian-kernel-recompiling/

everything done for you...
 
Old 08-15-2007, 04:06 AM   #5
knobby67
Member
 
Registered: Mar 2006
Posts: 545

Original Poster
Rep: Reputation: 42
Quote:
Originally Posted by utanja View Post
why not recompile your kernel the debian way?
http://myrddin.org/howto/debian-kernel-recompiling/

everything done for you...
bugger I was trying that but couldn't find sources, however I was searching under kernel-source not linux-source
 
Old 08-15-2007, 07:09 AM   #6
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,187

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
Compiling the kernel the Debian way is a good idea. However, for a kernel compiled for just one machine you don't need initrd. If you compile the device driver support for your IDE and or SCSI disks and the support for the file system you use, you can do without initrd.

jlinkels
 
Old 08-15-2007, 08:15 AM   #7
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
It won't hurt to compile it with initrd until you are more familiar with your hardware. It will save you some frustrations while you get the hand of it.

In fact, if you follow the how to mentioned, it will do it for you.
 
Old 08-15-2007, 08:32 AM   #8
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Rep: Reputation: 32
i know my hardware but still i use initrd on most of my networked stations....that why i never worry about adding something a little different...
 
  


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
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-02-2007 12:24 AM
Initrd OmnipotentOscar Debian 3 12-19-2006 07:02 PM
initrd problem (Debian etch on Toshiba Satellite) kaz2100 Linux - Laptop and Netbook 2 07-10-2006 09:26 PM
what is initrd? PinRojas Linux - Newbie 2 06-16-2005 12:18 PM
Does Debian use initrd.img to bootup? davidas Debian 2 04-07-2004 04:45 AM


All times are GMT -5. The time now is 05:23 AM.

Main Menu
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