Closed Thread
Results 1 to 7 of 7

Thread: Add Windows (XP) to Grub

  1. #1
    Wanch Guest

    Add Windows (XP) to Grub

    I just finished installing a new Linux Flavor and when I rebooted my Windows XP option wasn't in Grub. In all of the other installs I have done this was added automatically.

    Here is my partition table:
    Code:
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x41ab2316
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1           5       40131   de  Dell Utility
    /dev/sda2   *           6        6889    55295730    7  HPFS/NTFS
    /dev/sda3            6890        6902      104422+  83  Linux
    /dev/sda4            6903        9729    22707877+   5  Extended
    /dev/sda5            6903        9729    22707846   8e  Linux LVM
    See my /dev/sda2 is active and is the NTFS filesystem. But it does not appear in Grub. How do I add it and how do I make Windows the default?

  2. CODECALL Circuit advertisement

     
  3. #2
    Jordan Guest
    Here is what you should add:

    Code:
    title Windows XP
    rootnoverify (hd0,1)
    chainloader +1
    Notice the rootnoverify (doesn't verify the filesystem type)? Here is what the (hdX,Y) mean:

    (hd0,0) = /dev/sda1
    (hd0,1) = /dev/sda2
    (hd0,2) = /dev/sda3
    etc.

    If your HD are /dev/hda you use the same syntax as above.

  4. #3
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    Most Linux installed do this for you now. I can't imagine why one wouldn't. Which flavor was it?

  5. #4
    Jordan Guest
    I've seen some that do not do it. For instance, Sabayon Linux does not do this.

  6. #5
    MHJ
    MHJ is offline Newbie
    Join Date
    Apr 2008
    Posts
    29
    Rep Power
    0
    Is it possible to do the same thing with Windows ME or is the system too old?

  7. #6
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    Yeah, you can do that with any Windows. Just change the "Title" line to whatever version of Windows you are using.

  8. #7
    Crop is offline Learning Programmer
    Join Date
    Jan 2007
    Posts
    62
    Rep Power
    0
    Quote Originally Posted by MHJ View Post
    Is it possible to do the same thing with Windows ME or is the system too old?
    You can do this with any boot partition.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Crack/Reset grub password
    By Off in forum Linux/Unix General
    Replies: 14
    Last Post: 06-30-2008, 12:31 PM
  2. Installing GRUB and WINE?
    By EGS in forum Linux Applications
    Replies: 6
    Last Post: 03-31-2008, 03:35 PM
  3. grub.conf
    By John in forum General Programming
    Replies: 1
    Last Post: 01-22-2007, 01:20 PM
  4. Hello Grub Here
    By Grub in forum Introductions
    Replies: 4
    Last Post: 01-06-2007, 01:21 PM
  5. Loading grub....
    By Ronin in forum Computer Software/OS
    Replies: 7
    Last Post: 11-08-2006, 02:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

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