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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-25-2007, 10:38 AM
|
#1
|
LQ Newbie
Registered: Sep 2007
Posts: 4
Rep:
|
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!
|
|
|
09-25-2007, 11:55 AM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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
...
|
|
|
09-25-2007, 03:24 PM
|
#3
|
LQ Newbie
Registered: Sep 2007
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
09-25-2007, 03:26 PM
|
#4
|
LQ Newbie
Registered: Sep 2007
Posts: 4
Original Poster
Rep:
|
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?
|
|
|
09-25-2007, 03:45 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,357
|
Quote:
Originally Posted by northfly
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.
|
|
|
09-25-2007, 03:47 PM
|
#6
|
LQ Newbie
Registered: Sep 2007
Posts: 4
Original Poster
Rep:
|
Thanks, what you said is right, now I think! I just give up this effort. hehe....
|
|
|
All times are GMT -5. The time now is 04:24 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
|
|