LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12:11 PM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
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 12:14 PM.
 
Old 08-14-2007, 02:52 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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, 03:57 PM   #3
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
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, 04:49 PM   #4
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

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, 03:06 AM   #5
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
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, 06:09 AM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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, 07: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, 07:32 AM   #8
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

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



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-01-2007 11:24 PM
Initrd OmnipotentOscar Debian 3 12-19-2006 06:02 PM
initrd problem (Debian etch on Toshiba Satellite) kaz2100 Linux - Laptop and Netbook 2 07-10-2006 08:26 PM
what is initrd? PinRojas Linux - Newbie 2 06-16-2005 11:18 AM
Does Debian use initrd.img to bootup? davidas Debian 2 04-07-2004 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:34 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
Open Source Consulting | Domain Registration