LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2009, 04:59 AM   #1
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Rep: Reputation: 16
Add windows to boot loader


Hi all I recently installed the GRUB loader once again so this new GRUB doesn't show the windows system in the Dual boot .. is their a way to give the boot loader the path of Windows system? Thanks
 
Old 03-23-2009, 05:08 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
This does not give much of information to help you out.
Paste the output of
Code:
fdisk -l
Also which distribution are you using?
 
Old 03-23-2009, 09:02 AM   #3
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linuxlover.chaitanya View Post
This does not give much of information to help you out.
Paste the output of
Code:
fdisk -l
Also which distribution are you using?
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf4a99057

Device Boot Start End Blocks Id System
/dev/sda1 1 5100 40965718+ 7 HPFS/NTFS
/dev/sda2 5101 5361 2096482+ 82 Linux swap / Solaris
/dev/sda3 * 5362 7971 20964825 83 Linux
/dev/sda4 7972 19457 92261295 7 HPFS/NTFS

Hence sda1 contains the windows system
 
Old 03-23-2009, 10:11 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,482

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
The grub boot-loader has copious documentation ... quite seriously, go find it and read it carefully. There are specific examples of exactly how to deal with various versions of Windows.

No, this isn't "an RTFM blow-off." (I have no need to be so crass.) You need information, and the information is out there, and you just haven't looked for it yet. Look carefully at the configuration-files on your /boot/grub directory and at the various copious examples that have been thoughtfully provided.

You need to make a habit of preserving copies of files that can be overwritten by a software upgrade ... specifically including your Linux configuration and the boot-loader files. You also need to very thoroughly understand what is in them, so that when something inevitably "goes wrong," you know exactly how to react. You need to practice these recovery scenarios.
 
Old 03-23-2009, 10:39 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Try adding the entry below to your /boot/grub/menu.lst.
Code:
title Windows
        rootnoverify (hd0,3)
        chainloader +1
 
Old 03-23-2009, 02:51 PM   #6
ps_sabu
Member
 
Registered: Nov 2006
Location: Kerala, South India
Distribution: Ubuntu 12.10, Ultimate Edition 3.5, OZ Unity 3.0 Black Opal
Posts: 117

Rep: Reputation: 15
Quote:
Try adding the entry below to your /boot/grub/menu.lst.
Code:

title Windows
rootnoverify (hd0,3)
chainloader +1

I think it should be like

Quote:
title Windows
rootnoverify (hd0,0)
chainloader +1

Last edited by ps_sabu; 03-23-2009 at 02:52 PM.
 
Old 03-23-2009, 08:44 PM   #7
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up HI

Hi,
just go to
root/boot/grub
and then press ls command. you edit
grub.conf file
then change in the last lines where it is other to windows or vista and save and restart.
then while it starts with fedora in 4 secs etc, press esc and choose vista. Simple. All the best.
 
Old 03-26-2009, 03:41 AM   #8
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Original Poster
Rep: Reputation: 16
Thank you all finally I got its like that:

title Windows
rootnoverify (hd0,0)
chainloader (hd0,0)+1
 
Old 03-26-2009, 02:16 PM   #9
ps_sabu
Member
 
Registered: Nov 2006
Location: Kerala, South India
Distribution: Ubuntu 12.10, Ultimate Edition 3.5, OZ Unity 3.0 Black Opal
Posts: 117

Rep: Reputation: 15
Bravo !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add Windows XP to Grub boot loader? LUB997 Linux - Software 29 10-17-2009 12:11 PM
Add to boot loader oscarp Linux - Newbie 9 09-22-2004 12:15 PM
how can i add windows xp in Linux boot loader mobassir Linux - Software 33 09-11-2003 01:56 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 03:22 AM
Add Linux to WinXP Boot loader justiceisblind Linux - Newbie 5 09-12-2002 10:54 PM


All times are GMT -5. The time now is 07:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration