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

Posted on 2004-11-18
Last Modified: 2013-12-15

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,


Question by:rfr1tz
    LVL 13

    Accepted Solution

    This appears to have already been discussed here:

    LVL 38

    Assisted Solution


       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
    You need to go to "Control Panel"--> Folder Options --> View and
    "Show hidden files and folders"
    "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



    Assisted Solution

    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

    Expert Comment

    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
    LVL 38

    Expert Comment

    Hi NYCmitch25,

       Please read the link posted by Caseybea first:

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

    LVL 4

    Author Comment

    Hi all,

    Thanks so much for your help on this.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now