Gentoo Logo

Disclaimer : This handbook has been replaced by a newer version and is not maintained anymore.


[ << ] [ < ] [ Home ] [ > ] [ >> ]


10. Configuring the Bootloader

Content:

10.a. Making your Choice

Introduction

Now that your kernel is configured and compiled and the necessary system configuration files are filled in correctly, it is time to install a program that will fire up your kernel when you start the system. Such a program is called a bootloader.

10.b. Installing the SPARC Bootloader: SILO

It is now time to install and configure SILO, the Sparc Improved boot LOader.

Code Listing 2.1: Installing SILO

# emerge silo

Now open up your favorite editor (we use nano as an example) and create /etc/silo.conf.

Code Listing 2.2: Creating /etc/silo.conf

# nano -w /etc/silo.conf

Below you'll find an example silo.conf file. It uses the partitioning scheme we use throughout this book and kernel-2.6.20-r4 as kernelimage.

Code Listing 2.3: Example /etc/silo.conf

partition = 1         # Boot partition (= root partition)
root = /dev/sda1      # Root partition
timeout = 150         # Wait 15 seconds before booting the default section

image = /boot/kernel-2.6.20-r4
  label = linux

If you use the example silo.conf delivered by Portage, be sure to comment out all lines that you do not need.

If the physical disk on which you want to install SILO (as bootloader) differs from the physical disk on which /etc/silo.conf resides, you must copy over /etc/silo.conf to a partition on that disk. Assuming that /boot is a separate partition on that disk, copy over the configuration file to /boot and run /sbin/silo -f:

Code Listing 2.4: Only if /boot and the SILO destination are not on the same disk

# cp /etc/silo.conf /boot
# /sbin/silo -f -C /boot/silo.conf
/boot/silo.conf appears to be valid

Otherwise just run /sbin/silo -f:

Code Listing 2.5: Run silo

# /sbin/silo -f
/etc/silo.conf appears to be valid

Note: You have to run silo (with parameters) again each time you update or reinstall the sys-boot/silo package.

Now continue with Rebooting the System.

10.c. Rebooting the System

Exit the chrooted environment and unmount all mounted partitions. Then type in that one magical command you have been waiting for: reboot.

Code Listing 3.1: Exiting the chroot, unmounting all partitions and rebooting

# exit
cdimage ~# cd
cdimage ~# umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
cdimage ~# reboot

Of course, don't forget to remove the bootable CD, otherwise the CD will be booted again instead of your new Gentoo system.

Once rebooted in your Gentoo installation, finish up with Finalizing your Gentoo Installation.


[ << ] [ < ] [ Home ] [ > ] [ >> ]


Print

View all

Page updated June 6, 2007

Summary: The SPARC architecture uses the SILO bootloader to fire up your Linux system. In this chapter we step you through the process of configuring this bootloader to your needs.

Sven Vermeulen
Author

Grant Goodyear
Author

Roy Marples
Author

Daniel Robbins
Author

Chris Houser
Author

Jerry Alexandratos
Author

Seemant Kulleen
Gentoo x86 Developer

Tavis Ormandy
Gentoo Alpha Developer

Jason Huebel
Gentoo AMD64 Developer

Guy Martin
Gentoo HPPA developer

Pieter Van den Abeele
Gentoo PPC developer

Joe Kallar
Gentoo SPARC developer

John P. Davis
Editor

Pierre-Henri Jondot
Editor

Eric Stockbridge
Editor

Rajiv Manglani
Editor

Jungmin Seo
Editor

Stoyan Zhekov
Editor

Jared Hudson
Editor

Colin Morey
Editor

Jorge Paulo
Editor

Carl Anderson
Editor

Jon Portnoy
Editor

Zack Gilburd
Editor

Jack Morgan
Editor

Benny Chuang
Editor

Erwin
Editor

Joshua Kinard
Editor

Tobias Scherbaum
Editor

Xavier Neys
Editor

Joshua Saddler
Editor

Gerald J. Normandin Jr.
Reviewer

Donnie Berkholz
Reviewer

Ken Nowack
Reviewer

Lars Weiler
Contributor

Donate to support our development efforts.

Copyright 2001-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.