LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-25-2007, 11:38 AM   #1
northfly
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Angry Grub Loading 2 Windows Xp and 1 Suse problem


I have windowsxp installed in sda1 and another windowsxp installed in sda5, and opensuse installed in sda7. The problem is I can't start windows directly from grub, instead, I have to use the boot.ini.

so what I do right now is: create three entries in grub, they are windows xp, opensuse, opensuse fail/safe. when I choose windows xp, system load the boot.ini and prompt me another list of two choices, which are windows@sda1 and windows@sda5, I choose one of them and go to windows finally.

what I want to do is, infact, loading them directly, four entries, directly from grub.

I write the /boot/grub/menu.lst as

title windows@sda1
unhide (hd0,0)
rootnoverify (hd0,0)
chainload (hd0,0)+1

title windows@sda5
hide (hd0,0)
unhide (hd0,4)
rootnoverify (hd0,4)
chainload (hd0,4)+1

title linux
....


but when I select the second entries, I got error message.

somebody could help me out? Thanks too much!
 
Old 09-25-2007, 12:55 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Try this in your menu.lst:

itle windows@sda1
root (hd0,0)
makeactive
chainload (hd0,0)+1

title windows@sda5
root (hd0,4)
makeactive
chainload (hd0,4)+1

title linux
...
 
Old 09-25-2007, 04:24 PM   #3
northfly
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Angry

Thanks,

I tried that,

when I choose the sda5 one, the error message is:

requesting invalid device.

seems makeactive can only be used on primary disk, so sda1 is ok with that.
 
Old 09-25-2007, 04:26 PM   #4
northfly
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Angry

anyway, i can't not use root, got error message too,

seems... does it related with my ntfs file system? shall I change to fat32?
 
Old 09-25-2007, 04:45 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,052

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Quote:
Originally Posted by northfly View Post
what I want to do is, infact, loading them directly, four entries, directly from grub.
You can't - the ntldr isn't compliant with the multiboot specifications.
You can't just "get at" the kernel like you can on Linux. For your two XP installs you still have only one "system" partition - where ntldr and boot.ini reside. This is the partition you must chain-link to - the bootsector record finds ntldr and boot.ini, and presents the (second) menu. Nothing you can do about it as far as I'm aware.
Same going the other way - if you were to use ntldr, you have to link to a grub/lilo bootsector record,which will locate the loader - and present a (Linux) secondary menu.
 
Old 09-25-2007, 04:47 PM   #6
northfly
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Red face

Thanks, what you said is right, now I think! I just give up this effort. hehe....
 
  


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
problem with suse 10.1 grub bootloader when loading winXP flanker12k Linux - Newbie 4 09-17-2007 11:05 PM
GRUB not loading SUSE or Windows Dougal Linux - Newbie 43 02-11-2006 09:21 AM
Loading Windows with GRUB scouture Linux - Software 3 03-09-2005 07:07 PM
SuSE 9.1 and Windows Xp refuse to live in harmony: error loading windows through GRUB sanctumtacete Linux - Newbie 3 10-19-2004 08:47 AM
GRUB loading windows teamstatic84 Linux - General 5 12-29-2003 09:46 PM


All times are GMT -5. The time now is 05:21 PM.

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