Practice: Boot managers

Exercises for setting up your Linux system and software

Changing the boot manager configuration lets you boot into different operating systems or different versions of the same operating system. This article offers hands-on practice to build your proficiency in making practical changes in your boot manager's configuration. The exercises and solutions in this article focus on adding a kernel to an existing GRUB configuration and interact with GRUB at boot time.

Roderick W. Smith, Consultant and author

Roderick Smith author photoRoderick W. Smith is a consultant and author of over a dozen books on UNIX and Linux, including The Definitive Guide to Samba 3, Linux in a Windows World, and Linux Professional Institute Certification Study Guide. He is also the author of the GPT fdisk partitioning software. He currently resides in Woonsocket, Rhode Island.



21 June 2011

Also available in Chinese Spanish

About this article

These exercises and solutions supplement the developerWorks article Learn Linux, 101: Boot managers," which is part of the developerWorks knowledge path "Basics of Linux system administration: Setting up your system and software." You may want to read the "Boot managers" article before working through these exercises.

Overview

These exercises give you practice in:

  • Adding a kernel to an existing GNU GRand Unified Bootloader (GRUB) configuration
  • Making one-time changes to a GRUB entry at boot time

Prerequisites

You must have the GRUB Legacy boot loader installed. And you should have a working knowledge of basic Linux command-line tools as well as knowledge of at least one text editor; you'll use the text editor to make changes to system configuration files.


Exercise 1. Add a new kernel to a GRUB configuration

Imagine that you've made some modifications to the Linux kernel for a new application your company is developing. You want be able to run this test kernel on your development machine without replacing the kernel you use for production work. Practice editing a GRUB configuration to boot a new kernel by:

  1. Renaming or moving an existing kernel
  2. Creating an entry that references this new entry

Exercise 2. Modify GRUB options at boot time

Say you want to try out your new kernel using different kernel options, but you don't want to have to re-edit grub.conf every time you make a change. Not a problem. Experiment with GRUB's ability to accept changes to boot options at boot time, such as:

  • Entering single-user mode
  • Correcting typos in an entry
  • Changing the Linux root partition

Exercise solutions

Follow these solution steps to check your work.

Resources

Learn

Get products and technologies

  • Evaluate IBM products in the way that suits you best: Download a product trial, try a product online, use a product in a cloud environment, or spend a few hours in the SOA Sandbox learning how to implement Service Oriented Architecture efficiently.

Discuss

  • Get involved in the My developerWorks community. Connect with other developerWorks users while exploring the developer-driven blogs, forums, groups, and wikis.

Comments

developerWorks: Sign in

Required fields are indicated with an asterisk (*).


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Information in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name. You may update your IBM account at any time.

All information submitted is secure.

Choose your display name



The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

Required fields are indicated with an asterisk (*).

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


All information submitted is secure.

Dig deeper into Linux on developerWorks


static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Linux
ArticleID=681809
ArticleTitle=Practice: Boot managers
publish-date=06212011