381Chapter 13Running Gentoo Linux29.Add kernel modules.Add (Free web hosting with ftp) any extra

381Chapter 13Running Gentoo Linux29.Add kernel modules.Add any extra kernel modules that you need to add aboot time. You usually only need to do this if some piece of hardware isn tdetected and the module needed to use it isn t automatically loaded. Useeither kernel-2.4 or kernel-2.6, depending on which kernel you are using. # nano -w /etc/modules.autoload.d/kernel- You can type uname -ato see what your current kernel version is. 30.Configure the boot loader.You need to install a boot loader (grub in thisexample) and configure it. The example makes the following assumptionsabout your setup: Gentoo is installed on your first IDE hard disk (/dev/hda). You have a separate /bootpartition on /dev/hda1. Your initrd file in the /boot directory is initrd-2.4.26-gentoo-r9. Your kernel file in the /bootdirectory is kernel-2.4.26-gentoo-r9. If any of that information is different for your setup, you will need to adapt thefollowing step appropriately. To configure grub, install it with emerge, run thegrubcommand, and then create the grub.conffile as follows: # emerge grub# grubgrub> root (hd0,0) grub> setup (hd0) grub> quit# nano -w /boot/grub/grub.confdefault 0timeout 15splashimage=(hd0,0)/grub/splash.xpm.gztitle=Gentoo Linuxroot (hd0,0) kernel /kernel-2.4.26-gentoo-r9 root=/dev/hda0initrd /initrd-2.4.26-gentoo-r931.Reboot.Exit from your chroot partition by running umountto unmount allpartitions and then rebooting as follows: # exit; cd / # umount /mnt/gentoo/devfs /mnt/gentoo/proc /mnt/gentoo# rebootRemove the installation CD and allow the computer to boot from hard disk. After a few moments, you should see the GRUB boot screen. Select GentooLinux (press Enter). From here on, you will be booting from the hard disk and working directly from theoperating system you installed. If you see error messages, such as missing kerneldrivers, I recommend that you go to http://forums.gentoo.comand searchfor the driver that s causing problems. Chances are that someone else has had thesame problem and can offer you a solution. Note20_

Leave a Reply