GRUB Installation After Windows Installation

Category:Books to be merged#GRUB%20Installation%20After%20Windows%20Installation
The GRUB logo

GRUB Installation

Installation of GRUB is a two step process. The first step is to install or build GRUB in a host OS environment, and for this we will use Linux. The second step is to install and configure GRUB as the boot loader for your system.

Compile GRUB Source Code

The first step is the usual: download the source archive, untar it, configure and make install. Assuming you have found a source mirror (see the GRUB home page to find one) and downloaded the source distribution into a suitable working directory, continue with:

tar -xzvf grub-0.97.tar.gz
cd grub-0.97
./configure
make
make install

This should create the executables: grub, grub-install and mbchk; install support files in /usr/lib/grub/i386-pc/, and install the GNU information manual and man pages. For the second step of installation, we will first build and work with a GRUB bootable CD.

Preparing a GRUB Bootable CD

Follow the steps and build your GRUB Bootable CD

mkdir iso
mkdir -p iso/boot/grub
cp /usr/lib/grub/i386pc/stage2_eltorito iso/boot/grub
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso

Install GRUB on MBR

Reboot your system with “GRUB Installation CD”, after load stage1 you find a grub shell. Run the following command to find which partition of your system, Linux is installed.

grub>find /boot/grub/stage1

Suppose your Linux Distribution is installed on your first Primary partition, then the output is

(hd0,1)

then you install the GRUB on your Hard Disk Master Boot Record (MBR). The steps are as following.

grub>root (hd0,1)
grub>setup (hd0)
grub>quit

The GRUB Install process is now complete. Reboot your system.

Category:Book:GRUB Installation After Windows Installation#%20 Category:Subject:Linux#GRUB%20Installation%20After%20Windows%20Installation Category:Subject:Linux/all books Category:Subject:Operating systems/all books Category:Subject:Computer science/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Subject:Computer software/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Subject:Open source software/all books Category:Subject:Computer software/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Subject:Microsoft Windows#GRUB%20Installation%20After%20Windows%20Installation Category:Subject:Microsoft Windows/all books Category:Subject:Operating systems/all books Category:Subject:Computer science/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Subject:Computer software/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Subject:Microsoft software/all books Category:Subject:Computer software/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Book:GRUB Installation After Windows Installation#%20 Category:Book:Wikibooks Stacks/Books#GRUB%20Installation%20After%20Windows%20InstallationCategory:Shelf:Linux Category:Shelf:Linux/all books Category:Shelf:Computer science/all books#Computer%20science Category:Shelf:Computer software/all books#Computer%20software Category:Department:Computing/all books#Computing Category:Shelf:Open source software/all books#Open%20source%20software Category:Shelf:Operating systems/all books#Operating%20systemsCategory:Shelf:Microsoft Windows Category:Shelf:Microsoft Windows/all books Category:Shelf:Computer science/all books#Computer%20science Category:Shelf:Computer software/all books#Computer%20software Category:Department:Computing/all books#Computing Category:Shelf:Microsoft software/all books#Microsoft%20software Category:Shelf:Operating systems/all books#Operating%20systems Category:Alphabetical/G Category:Freshly started booksCategory:Books by completion status/all books Category:One-page books#GRUB%20Installation%20After%20Windows%20Installation
Category:Alphabetical/G Category:Book:GRUB Installation After Windows Installation Category:Book:Wikibooks Stacks/Books Category:Books by completion status/all books Category:Books to be merged Category:Department:Computing/all books Category:Freshly started books Category:One-page books Category:Shelf:Computer science/all books Category:Shelf:Computer software/all books Category:Shelf:Linux Category:Shelf:Linux/all books Category:Shelf:Microsoft Windows Category:Shelf:Microsoft Windows/all books Category:Shelf:Microsoft software/all books Category:Shelf:Open source software/all books Category:Shelf:Operating systems/all books Category:Subject:Books by subject/all books Category:Subject:Computer science/all books Category:Subject:Computer software/all books Category:Subject:Computing/all books Category:Subject:Linux Category:Subject:Linux/all books Category:Subject:Microsoft Windows Category:Subject:Microsoft Windows/all books Category:Subject:Microsoft software/all books Category:Subject:Open source software/all books Category:Subject:Operating systems/all books