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
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
















print: 

Recent comments
1 hour 26 min ago
1 hour 39 min ago
2 hours 45 min ago
7 hours 1 min ago
7 hours 31 min ago
21 hours 27 min ago
1 day 5 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 17 hours ago