How To Compile A Kernel - The SuSE Way - Page 3
8 Configure The GRUB Boot LoaderNow we must configure our GRUB boot loader so that our new kernels gets booted when we restart the system. Instead of modifying /boot/grub/menu.lst directly, we can run yast to do it. Go to System -> Boot Loader:
On the next screen you will see your existing GRUB records. Go to Add to add a new one:
Select Clone Selected Section to clone one of the working GRUB records:
Enter a name for the new kernel, e.g. SUSE Linux 10.1 - 2.6.18.2, and go to Kernel -> Browse:
You will see the contents of the /boot directory where your new kernel is located. Select your new kernel which typically begins with vmlinuz (e.g. vmlinuz-2.6.18.2-default):
Next go to Initial RAM Disk -> Browse:
Again, you will see the contents of the /boot directory. Select the appropriate ramdisk for your new kernel which typically begins with initrd (e.g. initrd-2.6.18.2-default):
Back on the main screen, select OK:
You will see a new GRUB record for your new kernel. Mark it and hit Up until it is the first in the list:
Then hit Set as Default to make the new kernel the default one:
Hit Finish:
Select Quit to leave YaST:
That's it. You can check /boot/grub/menu.lst now, you should find a new stanza for your new kernel there: vi /boot/grub/menu.lst
(Instead of using YaST to configure GRUB, you could as well have added
as the first kernel stanza to /boot/grub/menu.lst using a command line editor like vi, joe, nano, etc. To find out about the correct kernel and ramdisk, you could have run ls -l /boot ) Now reboot the system: shutdown -r now If everything goes well, it should come up with the new kernel. You can check if it's really using your new kernel by running uname -r This should display something like 2.6.18.2-default If the system doesn't start, restart it, and when you come to the GRUB boot loader menu, select your old kernel and start the system:
You can now try again to compile a working kernel. Don't forget to remove the stanza of the not-working kernel from /boot/grub/menu.lst.
9 Links
|
















print: 
Recent comments
1 hour 27 min ago
3 hours 8 min ago
4 hours 27 min ago
6 hours 42 min ago
8 hours 30 min ago
17 hours 33 min ago
1 day 4 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 15 hours ago