LinuxBasics.org

The community that helps people to run Linux

rss
Table of Contents

Archived Page on Booting

How to boot - how to set up booting for more than one Operating System…

During installation there are options for how you want to boot your system. LILO or GRUB are usually offered as boot managers. You may be offered the possibility of making a boot floppy, although now that floppy drives are not necessarily a part of a computer’s hardware, some distros do not offer this during the installation. A boot floppy used to be the standard way of booting during an emergency when one could not boot from the hard drive. Since modern computers can boot from CDROM, emergency booting can be done from the installation CD when no floppy drive is available.

There’s a great description of the boot process for Linux called “The Linux Booting Process Unveiled” at http://www.pycs.net/lateral/stories/23.html - (not including Slackware which does it the BSD way). Also see From-PowerUp-To-Bash-Prompt-HOWTO at The Linux Documentation Project.

If this is your first install of Linux, you may be wanting to keep Windows installed on your computer and make a dual boot system with the option to boot either Windows or Linux. This page deals primarily with that scenario, although these boot managers are normally used for booting when Linux alone is installed.

Methods for Booting:

Note: What follows is rather detailed material on the various ways you can multi boot. Practically speaking, you will probably not need to be concerned about this when you install Linux. Installers will find other operating systems on your computer and create what is required to boot them. The installer will probably make the version of Linux that you are installing the default OS to boot, but you will have some sort of menu to select a different OS.

Floppy Disk:

Boot Windows by default. Use floppy disk to boot into Linux.

Loadlin:

Loadlin is a simple DOS based utility that loads the Linux kernel into memory from DOS. The Linux kernel and loadlin.exe are placed in a small directory under Windows. A couple of edits are made to config.sys and autoexec.bat in Windows and a small script is written to start Loadlin. You can find loadlin.exe and instructions on your install CDROM. Loadlin works with versions of Windows through Windows 98, but may not work with Windows XP installed, as it usually is, on NTFS.

Boot Manager:

Install a boot manager which will give you the choice to boot either Windows or Linux. Two of these commonly found in Linux distributions are LILO and GRUB

LILO

         boot=/dev/hda
         vga=normal
         prompt
         timeout=100
         image=/boot/vmlinuz-2.4.20
           label=Linux
           read-only
           root=/dev/hdb2
         other=/dev/hda1
           label=windows
           table=/dev/hda

GRUB, the GRand Unified Bootloader

         default    0
         title           Debian GNU/Linux, kernel 2.4.20 
         root            (hd0,0)
         kernel          /vmlinuz-2.4.20 root=/dev/hdb2 ro
         savedefault
         boot
         title           Debian GNU/Linux, kernel 2.2.20-idepci
         root            (hd0,0)
         kernel          /vmlinuz-2.2.20-idepci root=/dev/hda3 ro
         savedefault
         boot
         title         Windows 95/98/NT/2000
         root          (hd0,0)
         makeactive
         chainloader   +1
         mount -t ext2 /dev/fd0  /mnt
         cd /boot/grub
         cp menu.lst /mnt
         umount /mnt
GRUB Command Line

Sometimes you have a broken boot and need to use GRUB from its command line to boot. You may have a GRUB boot floppy or GRUB installed in the MBR. You can investigate the system and boot using GRUB. See GRUB Command Line.

More on GRUB

GRUB is a powerful bootloader, which has advanced features. Many people trying to install or repair GRUB, or boot with a new kernel, run into booting problem, which could be alleviated would they know about hiding partitions, using fallback, or how reinstall/repair the bootloader.

It is also generally believed that GRUB does not allow you to choose your next booted OS before reboot (as LILO does). But in fact, it can be done.


Copyright (c) by the authors.
Prior to editing, authors agreed to license their contributions by the terms of the GPL.
See our licensing page for details.


Linux® is a registered trademark of Linus Torvalds.


 
  historical/old_booting_page.txt · Last modified: 2008/07/20 19:08

LinuxBasics.org

Start Linux-Course Tutorials Linux Links Security Blog Forum E-mail List Search Online Chat

Site-Info

Help Get in Touch Making of LBo

Wiki-Control

Powered by

Linux Apache DokuWiki Mailman RUTE ht://Dig