Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
|
|
11-10-2009, 11:15 AM
|
#1
|
LQ Newbie
Registered: Nov 2009
Posts: 2
Rep:
|
Putting 3 windows OS into Grub Menu without going thru windows boot loader
I have installed Windows XP, Windows Vista, Windows 7 and Fedora onto one harddrive and i am currently using GRUB boot loader. I want to make is so i can boot all 4 operating systems from one menu without having to go thru the next screen that has all the versions of windows on it. Please help me ASAP
|
|
|
11-10-2009, 11:21 AM
|
#2
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
I do not understand your question. Can you boot all the windows and fedora now? Do you get two grub menu.lst's?
Larry
|
|
|
11-10-2009, 03:59 PM
|
#3
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,049
|
You boot, get the Grub menu, select windows, get the windows menu with three options?
Grub doesn't boot windows, it just points to where the windows bootloader should be and the windows bootloader takes over from there.
You could try EasyBCD which can modify the vista/win 7 bootloader and can be set up to boot Linux, just google it, it's a free download. This might give you what you want, I don't use vista or win 7 so have never used it.
Have you tried putting entries for each windows in menu.lst? Haven't used windows for a while so...?
Last edited by yancek; 11-10-2009 at 04:03 PM.
|
|
|
11-10-2009, 04:09 PM
|
#4
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
to summarize:
Windows boots from NTLDR, which is in turn called by the code in the MBR. If you put GRUB in the MBR, then you use the chainloader in GRUB to boot NTLDR.
Your other options include booting Linux from the Windows loader (There are many threads here on how to do this.), make boot floppies for each system you want to boot, or use multiple hard drives and use the BIOS options.
|
|
|
11-12-2009, 12:43 PM
|
#5
|
LQ Newbie
Registered: Nov 2009
Posts: 2
Original Poster
Rep:
|
i want GRUB to directly boot to each os without having to go through WIndows bootloader. I installed the OS as follows Xp, Vista, Win7, then Fedora. I want the grub menu to display each operating system and boot to each one without going to windows bootloader. It currently has one option labeled windows and goes to the windows bootloader after choosing it. How can i configure grub to bypass windows bootloader and load each OS??????
this is ny grub config now.
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=8
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.29.4-167.fc11.i686.PAE)
root (hd0,4)
kernel /vmlinuz-2.6.29.4-167.fc11.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rhgb quiet
initrd /initrd-2.6.29.4-167.fc11.i686.PAE.img
title windows
hide (hd0,1)
unhide (hd0,0)
root (hd0,0)
makeactive
chainloader +1
|
|
|
11-12-2009, 12:48 PM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
I think several of us have tried to explain that what you are trying to do is not possible. However, I for one cannot PROVE that it is impossible. I can tell you that I have never seen any information that would make me think it could be done.
|
|
|
11-13-2009, 09:51 PM
|
#7
|
Member
Registered: Aug 2005
Location: Wellington NZ
Distribution: SuSE 11.2, Fedora 12
Posts: 49
Rep:
|
Not stepping through the Windows bootloader offering multiple Win options is possible. The "problem" is that subsequent Windows installs see the pre-existing ones and offer them as boot options.
But you need to know you are going to do this before you start.
So, install first windows (e.g. XP) then use 3rd party tool (gparted?) to "hide" that partition.
Install second windows (Vista if you like) and it doesn't "see" XP so offers no boot option except straight to Vista. Use gparted to hide that win partition too so now both win partitions are hidden.
Install 3rd win (7) and it doesn't "see" either xp or vista so doesn't offer them as boot options, just straight to win7. Hide this partition.
Install your favourite Linux installing grub wherever you like.
Manually edit grub's menu.lst to include 3 separate chainload win entries with each entry containing unhide for the win partition you want to boot and hide for the other 2 (2 lines) - this hides them if they have previously been unhidden to boot.
Note that your win installs won't be easily accesible (except the most recently installed) until you have finished this process because you are ultimately relying on your Linux grub to do the booting.
And actually you *are* still using each Windows bootloader (as everyone else has pointed out), you're just not allowing each of those bootloaders to "see" that there are other windows versions to offer as boot options...which I think is what you actually meant !
Now I have to admit I've only done this with XP and 7 (i.e. 2 x win installs) but can't see why by extension it shouldn't work with 3.
IG
|
|
|
11-13-2009, 10:15 PM
|
#8
|
Member
Registered: Aug 2005
Location: Wellington NZ
Distribution: SuSE 11.2, Fedora 12
Posts: 49
Rep:
|
On reflection, as you already have your 3 win installs, you could probably (?) amend your last win bootloader to not display win boot options other than itself, then use grub entries to find them but would suggest editing grub and ensuring it does boot "directly" (indirectly really because you are chainloading their bootloaders) to those win installs before you remove the option to at least get at those other wins. In that transient state your first two win installs should boot "directly" while the third will still show the 3 win options until you change its own bootloader.
For info, the relevant section of my menu.lst looks like this:
Code:
title Windows XP Pro
rootnoverify (hd0,0)
unhide (hd0,0)
hide (hd0,1)
makeactive
chainloader +1
title Windows 7
rootnoverify (hd0,1)
unhide (hd0,1)
hide (hd0,0)
makeactive
chainloader +1
In your case, each entry should have an additional "hide" line pointing at the second of three win versions you don't want to see.
IG
|
|
|
11-13-2009, 10:23 PM
|
#9
|
Member
Registered: Aug 2005
Location: Wellington NZ
Distribution: SuSE 11.2, Fedora 12
Posts: 49
Rep:
|
Just one other point (of order )
As this thread is in the Ubuntu forum, I'm talking about grub v0.9x and not grub v(nearly)2 that Ubu9.10 has chosen to use, just in case anyone tries that code in grub2 - it won't work !
IG
|
|
|
All times are GMT -5. The time now is 02:13 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
|
|