RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Booting a MS Windows OS using GRUB

Article Index
1. Grub's Naming convetion
2. Booting a Windows OS with grub

Booting a MS Windows OS using GRUB is a quite simple process. However, we must follow some rules in order to succeed. The first and foremost rule is:

  • Windows OS always wants to be installed on a first hard drive and first partition.
  • if you have your windows installation on second hard drive you need to use grub's map command to re-map first hardrive as seccond and vice versa

1. Grub's Naming convetion

Grub starts its hard drive and partition numbering system from 0. This means that (hd0,0) refers to a first hard drive and first primary partition. Whereas, (hd2,2) refers to third hard drive and third primary partition. All extended partitions starts from number 4. Therefore, (hd1,5) refers to a second hardrive and second extended partition.

2. Booting a Windows OS with grub

In case you have indeed installed your MS Windows on a first hard drive and first partition the whole process is rather simple. Open up a Grub's menu config file:

 vi  /boot/grub/menu.lst

and add a following code into appropriate boot menu section :

title           Microsoft Windows XP Professional
root    (hd0,0)
makeactive
chainloader     +1

save file and run command:

# update-grub

and you are done.

  • root: the root partition of your MS Windows installation
  • title: title name as it will be displayed on grub's boot menu
  • makeactive: make this entry bootable
  • chainloader: do not boot but let partition's boot loader to boot instead

In case you have a MS Windows installation on a third hard drive, things are little bit more complicated. Here is a /boot/grub/menu.lst code for booting a MS Windows from a third hard drive and first partition.

title           Microsoft Windows XP Professional
rootnoverify    (hd2,0)
map             (hd0) (hd2)
map             (hd2) (hd0)
savedefault
makeactive
chainloader     +1
  • rootnoverify: do not mount but execute another command
  • map: this makes a third hard drive a first and first hard drive third

After you have updated /boot/grub/menu.lst run:

# update-grub

and you are done.

Share this linux post:

Submit Booting a MS Windows OS using GRUB in Delicious Submit Booting a MS Windows OS using GRUB in Digg Submit Booting a MS Windows OS using GRUB in FaceBook Submit Booting a MS Windows OS using GRUB in Google Bookmarks Submit Booting a MS Windows OS using GRUB in Stumbleupon Submit Booting a MS Windows OS using GRUB in Technorati Submit Booting a MS Windows OS using GRUB in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download