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
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

















print: 
Recent comments
13 hours 28 min ago
14 hours 57 min ago
18 hours 31 min ago
21 hours 25 min ago
1 day 23 min ago
1 day 1 hour ago
1 day 1 hour ago
1 day 2 hours ago
1 day 3 hours ago
1 day 3 hours ago