How to make GRUB boot loader to list all the installed OS, including Windows OS, when the PC starts?

Hi,

On a PC, I installed 3 OS: Win2000, Win XP, and Linux RedHat Enterprise.

I started installing Win2000 first, then Win XP, and install Linux the last. I selected GRUB as the boot loader when installing Linux. When the PC starts, GRUB lists the OS in the following orders:
-- Linux ...
-- DOS

And then if we choose to start DOS, it will lead us into the normal start screen of Windows OS that lists:
-- Window XP Professional
-- Window 2000 Professional

My questions:
Is it possible for GRUB to list directly all the OS in the order: Linux, Win XP, Win 2000, when the PC starts
If it is possible, how I update the GRUB boot loader so that it lists the OS to start in that way.

Thanks for any help,

Rfr1tz


LVL 3
rfr1tzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CaseybeaCommented:
This appears to have already been discussed here:

http://www.experts-exchange.com/Operating_Systems/Q_21068717.html

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wesly_chenCommented:
Hi,

   As the link posted by Caseybea, just follow what Nyaema's first post.
It is very clear. The only thing you might need to know is that the following 3 files are hidden
c:\boot.ini
c:\ntldr
c:\ntdetect.com
You need to go to "Control Panel"--> Folder Options --> View and
check
"Show hidden files and folders"
un-check
"Hide protected systems files"
Then you can copy thes three files to other partion (D: ?)

Besides, do
c:\> attrib -s -r -h c:\boot.ini
d:\> attrib -s -r -h d:\boot.ini  (Assume Windows XP is on D:)

then edit c:\boot.ini and d:\boot.ini as Nyaema said.
After finished the boot.ini editing, do
c:\> attrib +s +h +r c:\boot.ini
d:\> attrib +s +h +r d:\boot.ini

Regards,

Wesly
0
NYCmitch25Commented:
Good question!  Honestly I don't think that it's really all that possible.  I guess in linux you'll have to edit the /etc/grub.conf file.  In linux try logging in as root or type su - to ch to root.  Then type fdisk -l  to see what partitions your  systems are on.

[root@morocco grub]# fdisk -l
   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      3761  28433128+   7  HPFS/NTFS
/dev/hda2          4803      6063   9533160   83  Linux
/dev/hda3          6064      6201   1043280   82  Linux swap
/dev/hda4          4722      4802    612360    f  Win95 Ext'd (LBA)
/dev/hda5          4722      4802    612328+   b  Win95 FAT32

Try adding this: (x and y are the partitions your system are on)
(e.g. hdax or hday)  if they are both (xp and 2k) on the same drive, I'm not sure how one would get this to work properly.

title Microsoft Windows XP Professional
        rootnoverify (hd0,x)
        chainloader +1
title Microsoft Windows 2000 Professional
        rootnoverify (hd0,y)
        chainloader +1
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

NYCmitch25Commented:
So for example it could look somthing like:

title Microsoft Windows XP Professional
        rootnoverify (hd0,2)
        chainloader +1
title Microsoft Windows 2000 Professional
        rootnoverify (hd0,4)
        chainloader +2
0
wesly_chenCommented:
Hi NYCmitch25,

   Please read the link posted by Caseybea first:
http://www.experts-exchange.com/Operating_Systems/Q_21068717.html

   The way you mentioned for /etc/grub.conf all covered by the article in that link.

Wesly
0
rfr1tzAuthor Commented:
Hi all,

Thanks so much for your help on this.

Rfr1tz
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.