Friday, January 05, 2007
Tuesday, January 02, 2007
When you install the boot loader (either LILO or GRUB) on the MBR, it replaces the MS-DOS boot loader or any other boot loader that may be there, such as the Windows NT loader. If you have problems with your installation or you simply want to restore the original boot loader, you can do one of the following.
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 command, 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, you 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.