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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-16-2007, 08:48 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2007
Posts: 12
Rep:
|
grub: windows on logical partition
hi,
how do I boot into windows with grub?
my windows is installed on hda7, which is a part of hda4 (logical partition)
i (re-) installed windows after linux (i know...), and fixed the mbr already, but the new windows is not accessable
thx!
|
|
|
|
12-16-2007, 08:56 AM
|
#2
|
|
Member
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 474
Rep:
|
Hello, festhead.
I won't claim to be an expert on this, because I normally install windows in hda1, as recommended. That said, however, you can remap partitions in GRUB (read 'info grub') to make windows think it is running on the first partition.
Regards,
Bill
|
|
|
|
12-16-2007, 10:23 AM
|
#3
|
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Rep: 
|
Quote:
Originally Posted by festhead
how do I boot into windows with grub?
my windows is installed on hda7, which is a part of hda4 (logical partition)
|
Before you do what I describe below, copy "/boot/grub/menu.lst" to "/boot/grub/menu.lst.good" or the equivalent.
My Windows entry in "/boot/grub/menu.lst" looks like this:
Code:
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
If you change (hd0,0) to (hd0,7), you will be able to boot Windows. You might have to toggle the "bootable" flag using fdisk.
|
|
|
|
12-16-2007, 12:22 PM
|
#4
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,234
|
Ain't gunna work.
Even though you installed Windoze to a logical partition, the actual loader code (ntldr, boot.ini) has to be in a primary partition.
That's what you need to chainload to.
|
|
|
|
12-17-2007, 08:21 AM
|
#5
|
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Rep: 
|
Quote:
Originally Posted by syg00
Even though you installed Windoze to a logical partition, the actual loader code (ntldr, boot.ini) has to be in a primary partition.
That's what you need to chainload to.
|
I forgot about needing to change the "boot.ini" file. Your "boot.ini" will look like this:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Windows XP Home" /noexecute=optin /fastdetect
You need to change the "partition(X)" to "partition(7)". I have never heard of this "primary" partition restriction.
|
|
|
|
12-17-2007, 04:17 PM
|
#6
|
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Rep: 
|
Quote:
Originally Posted by syg00
Ain't gunna work.
Even though you installed Windoze to a logical partition, the actual loader code (ntldr, boot.ini) has to be in a primary partition.
That's what you need to chainload to.
|
If I read the GRUB manual correctly, you set the current root device to hda7 with the "root (hd0,7)" line. The Windows bootloader is in the first sector of a Windows partition. The "chainloader +1" tells GRUB to read the first sector of the current partition. As long as the "boot.ini" file is modified to use the correct partition, (e.g. multi(0)disk(0)rdisk(0)partition(7)\WINDOWS), everything should work.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:16 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|