[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

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


0
rfr1tz
Asked:
rfr1tz
3 Solutions
 
CaseybeaCommented:
This appears to have already been discussed here:

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

0
 
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
Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now