LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-02-2010, 01:54 PM   #1
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
Install grub to windows ntfs partition is possible?


Hello
In HDD with 2 partition
sda1 windows xp
sda2 windows 7

1. It is possible to install grub? (Using live cd)

2. If not, if I create sda3 (ext3), and install grub there and boot both windows will be possible?

Last edited by miros84; 11-02-2010 at 03:15 PM.
 
Old 11-02-2010, 03:14 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
It is possible to in some cases to put grub in some other than normal place. Windows would pass off to grub if you wanted. Not normal but used to be very normal in lilo.

One can easily install grub but it tends to bork your MS loader.


It would help us if you were to tell a bit more about what distro you are trying to install maybe.
 
Old 11-02-2010, 03:17 PM   #3
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
No distro.
Windows xp in c:
Windows 7 in d:
And I want to install grub in MBR and boot both windows.
Is that possible?
 
Old 11-02-2010, 08:29 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Quote:
And I want to install grub in MBR and boot both windows.
Yes. The best way to do this is to create a dedicated Grub partiton with all the Grub files there, in your case sda3 formatted ext3 or other Linux filesystem. You will need to create a menu.lst file and you will need to point it to the windows 7 bootloader. Grub doesn't actually boot windows, the chainloader just points to the windows bootloader. Windows 7 detects xp and other previous windows, the reverse is not true. To boot vista or win 7 from xp, you would have to manually configure it. What this means is that if you install Grub, you will first see its menu then the windows boot menu.

I had a site explaining this bookmarked but it no longer exists, check this one or google:

http://rxezlqu.wordpress.com/2009/07...rub-partition/

It uses Legacy Grub so you will need to have a Linux distro which uses it, basically anything non-Ubuntu or Slackware. If you do the separate Grub partition, you will need to be sure to install to the mbr.

Last edited by yancek; 11-02-2010 at 08:34 PM.
 
Old 11-02-2010, 08:51 PM   #5
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
I'd recommend Grub4dos instead, since it can be installed from Windows and live on an NTFS partition.

Here are instructions to install to MBR from Windows:
http://diddy.boot-land.net/grub4dos/...s.htm#windows4

Then open notepad and copy/paste:
Code:
title Windows XP
find --set-root --ignore-floppies --ignore-cd /ntldr
chainloader /ntldr

title Windows 7
find --set-root --ignore-floppies --ignore-cd /bootmgr
chainloader /bootmgr
Save it as C:\menu.lst

Last edited by piratesmack; 11-02-2010 at 09:08 PM.
 
  


Reply



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
Install grub files to NTFS-formatted partition EmrldDrgn Linux - Software 2 05-28-2009 09:47 AM
Grub does not see windows partition after full Puppy install. Pearci Linux - Newbie 6 06-04-2008 07:02 PM
can I build a mbr in a ntfs partition and install grub to it rbees Linux - General 5 02-02-2008 07:22 PM
Lost Windows partition after using install-grub command viperflyer Linux - Newbie 3 09-05-2007 04:30 AM
ntfs partition no more visible from windows after linux install fif Linux - Newbie 4 05-18-2005 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:54 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
Open Source Consulting | Domain Registration