LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to make initrd.img for your kernel without boot disk? (http://www.linuxquestions.org/questions/linux-software-2/how-to-make-initrd-img-for-your-kernel-without-boot-disk-335263/)

donaldtalbert 06-19-2005 07:18 PM

how to make initrd.img for your kernel without boot disk?
 
How do i make a initrd.img for my kernel without a bootdisk? I use debian and grub to boot...
btw i have read the man i read "man mkinitrd" and "mkinitrd --help" with a couple other online tutorals but i had a hard time understanding them as a newb at linux.

Heres the kernel i built in the "/boot/grub/menu.lst" dir.

___________________

title Debian GNU/Linux, kernel 2.6.8.030320
root (hd0,0)
kernel /boot/vmlinuz-2.6.8.030320 root=/dev/hda1 ro
savedefault
boot
____________________

as you can see it didnt add the initrd.img file but i have tryed configureing the "SCSI" device support in the kernel but im just to newb to get that to work right so i could get around the initrd.img. =P

Thanks in advance!

Noth 06-19-2005 10:30 PM

Generally you just need to run 'mkinitrd -o /path/to/initrd.img <version>' and it'll create the filesystem image for you. You can also edit /etc/mkinitrd/modules to manually specify any modules that should be included.


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