Find the answer to your Linux question:
Results 1 to 4 of 4
If you are doing a dual boot with Fedora Core and Windows 2000 or XP anaconda should add it to the grub automatically. If you need to restore the grub ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie imdeemvp's Avatar
    Join Date
    Sep 2004
    Location
    California
    Posts
    225

    How To ADD Windows 2K or XP to the Grub.


    If you are doing a dual boot with Fedora Core and Windows 2000 or XP anaconda should add it to the grub automatically. If you need to restore the grub after re-installing windows follow this tutorial.

    If you are installing Fedora Core in primary hard drive and have Windows 2000 or XP on slave drive you will need to add the lines to /etc/fstab.

    Open terminal become root and type:
    Code:
    gedit /etc/grub.conf
    and add this lines for your windows entry:
    Code:
    [B]title Windows XP
                   map (hd0) (hd1)
                   map (hd1) (hd0)
                   rootnoverify (hd1,0)
                   chainloader +1[/B]
    Dont forget to click on SAVE.

    Now if you have Windows 95, 98 or ME and want to mount a FAT32 partition this is how is done just add this line to your fstab:
    Code:
     /dev/hda2 /mnt/windows vfat users,rw,owner,umask=000 0 0
    Please note I am using /dev/hda2 as an example.
    Many new comers are asking this question very frequently so here is the answer.

  2. #2
    Linux Newbie
    Join Date
    Jul 2004
    Location
    WA, USA
    Posts
    102
    How do you make Windows the default OS to boot into? Too many times I've had to do a hard reboot because I forgot I had to select Windows on boot.

    Thanks in advance :)

    Robert
    Taking a walk on the wonderful path computers have lain before me

  3. #3
    Linux Newbie imdeemvp's Avatar
    Join Date
    Sep 2004
    Location
    California
    Posts
    225
    This is my grub.conf:
    # 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,0)
    # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
    # initrd /initrd-version.img
    #boot=/dev/hda
    default=0 << its here which is my first option in the grub
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    title Fedora Core (2.6.9-1.681_FC3)
    root (hd0,0)
    kernel /vmlinuz-2.6.9-1.681_FC3 ro root=/dev/VolGroup00/LogVol00 rhgb quiet acpi=off
    initrd /initrd-2.6.9-1.681_FC3.img
    title Fedora Core (2.6.9-1.667)
    root (hd0,0)
    kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup00/LogVol00 rhgb quiet acpi=ht
    initrd /initrd-2.6.9-1.667.img
    title Windows XP
    map (hd0) (hd1)
    map (hd1) (hd0)
    rootnoverify (hd1,0)
    chainloader +1
    0= 1st line in grub
    1= 2nd line and so on.....

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Jul 2004
    Location
    WA, USA
    Posts
    102
    Ah, thanks. Out of curiosity then, does anyone know what the chainloader value defines?

    Robert Peaslee
    Taking a walk on the wonderful path computers have lain before me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •