+ Reply to Thread
Results 1 to 2 of 2

Thread: ubuntu trying to get xp to load in grub

  1. #1
      Associate unix1adm
    Join Date
    Oct 2008
    Posts
    16

    ubuntu trying to get xp to load in grub

    I just reformatted and reloaded my system with a winxp partition,

    I restored from a back up but I do not know the syntax to put in the /boot/grub/menu.lst to get it to see the new3 XP partition.

    My device is xp hda2, ubuntu hda1 and fedora hda4. ubuntu and Fedora work fine. But i get an error on the Xp menu option.

    Can someone post the stanza I need to add for XP.

    I did a search but not finding what i need.

    I can now see the menu entry but get

    error 13: Invalid or unsupported executable format
    Press any key to continue…
    Thanx

    CJ

  2. #2
      Associate lynnevan
    Join Date
    Sep 2007
    Location
    idaho
    Posts
    12
    Originally Posted by unix1adm
    I just reformatted and reloaded my system with a winxp partition,

    I restored from a back up but I do not know the syntax to put in the /boot/grub/menu.lst to get it to see the new3 XP partition.

    My device is xp hda2, ubuntu hda1 and fedora hda4. ubuntu and Fedora work fine. But i get an error on the Xp menu option.

    Can someone post the stanza I need to add for XP.

    I did a search but not finding what i need.

    I can now see the menu entry but get

    error 13: Invalid or unsupported executable format
    Press any key to continue…
    Thanx

    CJ
    I would help if you had posted yr menu.lst. You may have to mess w/ yr windoz boot.ini file – I really don’t know. I’ve never seen that error.


    This is from Mandriva OS on 2nd HDD. Has some good ideas and formats:
    timeout 15
    color white/cyan yellow/cyan
    gfxmenu (hd1,2)/boot/gfxmenu
    default 0

    title windows
    root (hd0,0)
    makeactive
    chainloader +1


    title openSUSE 11.1 (i586)
    root (hd1,0)
    configfile /boot/grub/menu.lst

    title Fedora (Sulphur)
    root (hd1,1)
    configfile /boot/grub/menu.lst

    title linux
    kernel (hd1,2)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=a45bf97d-9b6a-446b-bad0-ebb7a94b3718 resume=UUID=7b4fe752-d93a-4832-baa5-3ef49fd240d3 splash=silent vga=788
    initrd (hd1,2)/boot/initrd.img

    Try something like:
    title windows
    root (hd0,1)
    makeactive
    chainloader +1


    I’m including the following in case yr MBR is not correct.
    It is a file from Mandriva that will write the menu.lst of the OS it’s in to the MBR. It should be placed in /boot/grub directory, either in Ubuntu or Fedora. Your /boot/grub/device map should say
    Code:
    (hd0)       /dev/sda
    . File:
    grub –device-map=/boot/grub/device.map –batch <<EOF
    root (hd1,2)
    setup –stage2=/boot/grub/stage2 (hd0)
    quit
    EOF
    Where it says root, you should follow that w/ the hard drive and partition of the OS yr running the file from – for example, if Ubuntu, you would put (hd0,0).
    Name the file "install.sh" and make it executable:
    Code:
    sudo chmod 755 install.sh
    and run it w/ the command in a terminal
    Code:
    sudo sh install.sh
    .
    Good luck.

+ Reply to Thread

Similar Threads

  1. X Fail to Load
    By GhostDawg in forum Linux – Software, Applications & Programming
    Replies: 4
    Last Post: 01-04-2005, 08:18 PM
  2. GRUB GRUB GRUB GRUB "Whats Going on?"
    By Gaweph in forum Linux – General Topics
    Replies: 13
    Last Post: 03-26-2004, 05:14 PM
  3. What does ‘load average’ mean?
    By Bartman in forum Linux – General Topics
    Replies: 5
    Last Post: 09-03-2002, 09:39 PM
  4. load average
    By elovkoff in forum Linux – General Topics
    Replies: 9
    Last Post: 04-26-2002, 02:23 PM
  5. joystick won’t load…
    By pbharris in forum Linux – Hardware, Networking & Security
    Replies: 15
    Last Post: 12-18-2001, 01:42 PM

Bookmarks

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