LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10: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, 11:55 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 03: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, 03: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, 03:45 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,357

Rep: Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180
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, 03: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 10:05 PM
GRUB not loading SUSE or Windows Dougal Linux - Newbie 43 02-11-2006 08:21 AM
Loading Windows with GRUB scouture Linux - Software 3 03-09-2005 06: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 07:47 AM
GRUB loading windows teamstatic84 Linux - General 5 12-29-2003 08:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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