[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to use initrd command



On Wednesday 04 January 2006 09:12 pm, Jon Miller wrote:
> I'm attempting to upgrade Debian 3.1 kernel version 2.4  to the latest 2.6
> version.  I understand I need to add a initrd command somewhere in this. 
if you do it the debian way, then it is  run automatically as part of script.

However if you need to do it, very easy. put name of modules  you must have 
loaded into /etc/modules file (in correct order!), Then you make sure that 
you have kernel headers existing in right place (ie make symlink from
/usr/src/kernel-headers-2.6.8-2 or
/usr/src/linux-headers-2.6.14.-1 
to 
/usr/src/linux.

then run command 
mkinitrd -o initrd.img-my-inird-mykernelnumber /lib/modules/`uname -r` 
`uname-r`

then copy the file 

initrd.img-my-inird-mykernelnumber

to /boot and change the line in grub that refers to initrd to refer to the new 
one.

for lilo need to run lilo i think, good luck if you use yaird, havent had 
pleasure.

Good luck
Mitchell
> How do I pass this command and when (a link to a document would be a big
> help).
>
> Thanks
>
> Jon



Reply to: