
534
|
Chapter 4: Boot Methods
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
• If you’re running LILO, you can boot Linux from a floppy or CD and restore
the boot sector, which LILO automatically backs up:
$ /sbin/lilo -u
• If you have the capability, boot to DOS and run the fdisk command with a
special option that rebuilds the MBR:
C:> fdisk /mbr
• For Windows 2000 and Windows XP, which do not have an fdisk com-
mand, boot your computer from the Windows CD (or the Windows boot
floppies if you can’t boot from your CD drive). When you see “Welcome to
Setup,” press R (for repair) and, in Windows 2000, then press C. Select your
Windows installation from the numbered list that is displayed (there may be
only one entry) and enter the administrator password at the prompt. Enter
the command fixmbr at the command-line prompt and confirm it with y.
After the MBR has been restored, type exit to reboot.
The common element in all three methods is that they replace the boot loader on
the MBR with the original Microsoft boot loader. The boot loader on the MBR is
the one that will be used to boot the system. This means that if you want to
switch from LILO to GRUB, say, or from GRUB to LILO, you don’t need to unin-
stall the old loader; simply install the new one.
The rest of this chapter describes the various techniques for booting Linux and
the options ...