Home

CyberKabila

Table of contents

Introduction Uninstall GRUB 
To make grub boot Floppy File Naming Convention in GRUB.
How to install GRUB MORE than one O.S
How to configure /grub/menu.lst Booting other OS at boot-time.
Introduction
GNU GRUB is a Multiboot boot loader. It was derived from GRUB, GRand Unified ,
Bootloaderwhich was originally designed and implemented by Erich Stefan Boleyn.
Briefly, bootloader is the first software program that runs when a computer starts.
It is responsible for loading and transferring control to the operating system kernel
software (such as the Hurd or the Linux). The kernel, in turn, initializes the rest of
the operating system (e.g. GNU).
GNU GRUB follows these requirements below:
Compliant with the Multiboot Specification.
Basic functions are easy for an end-user to use.
Rich functionality for OS experts/designers.
Compatibility for booting FreeBSD, NetBSD, OpenBSD, and GNU/Linux. Proprietary OS's
such as Windows 98, Windows NT, and OS/2 are supported via a chain-loading function.

In addition to the requirements above, GNU GRUB has the following features:

Support multiple executable formats.
Support non-Multiboot OS's.
Load multiple modules.
Support a human-readable configuration file.
Menu interface.
Flexible command-line interface.
Support multiple filesystem types.
Support automatic decompression.
Access data on any installed device.
Geometry translation independent.
Detect all installed RAM.
Support Logical Block Address (LBA) mode.
Download OS images from a network.
Support diskless systems.
Support remote terminals.


Requirements
GNU GRUB requires GCC and GNU binutils 2.9.1.0.23 or later, which is
available from ftp://ftp.varesearch.com/pub/support/hjl/binutils/.

Download
For now, GNU GRUB is not released publicly yet, but you can still get
the test releases from alpha.gnu.org:/gnu/grub/, and the latest version from the CVS.
See our project page on Savannah, for more information.

Frequently Asked Questions
If you have a question or a trouble, see GNU GRUB FAQ first.

Contact us
GNU GRUB has one mailing list mailto:[email protected], to which you should send a mail
whenever you find bugs, and have suggestions, ideas or questions related to GNU GRUB.
The archive of the mailing-list is available for viewing.

When you encounter a problem or a bug, first of all, read the chapter
Reporting bugs in the document. Very often, people ask us their questions
with little (or no) information about their systems. That's quite useless,
because we have to guess what you did, what was displayed and what really happened.
Please notice that we may not see your computer directly. So, whenever you report a
bug, you must include enough information so that we can understand what happened and
even reproduce your problem in our machines.

Once you have realized how to write a bug report, please submit it to mailto:[email protected]
with information about your computer and what you did as much as possible. Excessive information
is always better than no information.

When you enhance and/or fix GNU GRUB, please send the patch to mailto:[email protected].
Do not forget to write your changes to ChangeLog; That helps us to understand your changes
correctly. And it is preferable that your patch is in the unified format. Just append -u
option to the command diff.

If you'd like to subscribe/unsubscribe to this mailing list, please see Bug-grub Info Page.

Links
Here are some useful resources:

Etherboot is a free software package for booting x86 PCs over a network. We are using its
device drivers for our own netboot support.

NOTE: You cant Uninstall GRUB u can only overwrite it with OTHER Boot utilities.

HOW

  • fdisk /mbr 

  • lilo

 

TO make grub boot Floppy
  1. #mke2fs /dev/fd0

  2. #mount -t ext2 /dev/fd0 /mnt/floppy

  3. #grub-install --root-directory = /mnt/floppy

  4. #umount /mnt/floppy

File Naming Convention in GRUB.
  • ' # ' means Comment entry.

  • 'default 0' means boot first entry in '/etc/grub.conf ' or '/grub/menu.lst'.

  • 'timeout 30' means wait for 30 seconds.

  • 'title linux ' or 'title dos' means names shown as option at boot time to chose other O.S.

  • '(fd0)' means floppy.

  • '(hd0 ,1 ) ' means hd=HardDisk 0=First HDD 1=2nd Partition.

How to install GRUB

step1: First copy files 'stage 1' ,'stage2' , 'stage *1-5' to Diroctory '/boot/grub' from 
'/usr/share/grub/i386-pc' if its not already there.

step 2: If you have only one partition of linux (e.g. only /dev/hda5) then 
to install grub login as root and run the command : 
#grub-install /dev/hda
           
else if You have two or more Partitions like (/dev/hda5 , /dev/hda6 etc.) 
then run command :
#grub-install --root-directory = /boot /dev/hda

NOTE : grub-install is a shell script but the real task is done by another shell script 'grub'
U can also use that shell script (grub) directly by its not recomended .
  
GRUB is installed now .You don't need to write 'grub' etc. like you do in 'LILO'
.

MORE than one O.S

If you have more than one os like windows ,dos etc. then

1)Do Grub runtime booting into other O.S. at boot time. OR

2)Maintain a permanent list of other O.S. in ..

  •  edit '/etc/grub.conf' ,OR

  •  edit '/grub/menu.lst'

 

 

We will prefer 2nd option.Following is the example of '/grub/menu.lst'

#/grub/menu.lst

#For booting GNU Hurd (from 1st HDD)

title GNU/Hurd

root (hd0,0)

kernel /boot/gnumach.gz root=hd0s1

module /boot/serverboot.gz

 

#For booting Linux from 1nd HardDisk

title Linux From 1nd HDD

kernel (hd0,5) /boot/vmlinuz root=/dev/hda6  '(5 = 6th partition i.e. /dev/hda6)

initrd (h0,5) /boot/initrd.img)

 

#Windows 95/NT

title Win95/NT

root (hd0,0)

makeactive

chainloader  +1

 

#OS/2

title OS/2

root (hd0,1)

makeactive

chainloader  +1

 

#Free BSD

title Free BSD

root (hd0,2,a)

kernel /boot/loader

 

 

#For booting Linux from 2nd HardDisk

title Linux From 2nd HDD

kernel (hd1,0) /boot/vmlinuz root=/dev/hdb1

 

 

Booting other OS temporarily with GRUB at boot-time.

If u dont want to make a menulist the u can boot at runtime as follow:
Go to GRUB prompt at boot time and Press 'c' for grub Command Prompt

U will get a prompt like "grub>"

To boot windows
grub>rootnoverify(hd0,0) <enter>
grub>chainloader +1 <enter>
grub>makeactive <enter>
grub>boot <enter>

Congrats u have successfully booted into WINDOWS

To boot Linux
grub>kernel /boot/vmlinuz root=/dev/hda5 <enter>
grub>initrd /boot/initrd-2.4.7-10.img <enter>    (2.4.7-10 is kernel version)
grub>boot <enter>


To boot SCO Unix
grub>rootnoverify(hd1,0) <enter> '(2nd HDD)
grub>chainloader --force + 1<enter>
grub>makeactive <enter>
grub>boot <enter>

site developed by adam and mukesh

                                                                                    Counter
Hosted by www.Geocities.ws

1