Professional Web Applications Themes

new XP installation won't boot from grub - Linux Setup, Configuration & Administration

I've added a hard drive to an existing RH9 installation to make my machine dual bootable. The drives are as follows: /dev/hda linux (/, swap) (no /dev/hdb) /dev/hdc cdrom /dev/hdd windoze XP (single NTFS partition) Before I installed the 2nd drive w/ XP, I created a boot floppy in linux. After the windows installation successfully installed, I booted back into linux off of the boot floppy and ran: grub-install /dev/hda and now the machine boots back into linux. I've been trying to add the appropriate lines to /etc/grub.conf to get it to boot XP off of the secondary slave drive ...

  1. #1

    Default new XP installation won't boot from grub

    I've added a hard drive to an existing RH9 installation to make my
    machine dual bootable. The drives are as follows:

    /dev/hda linux (/, swap)
    (no /dev/hdb)
    /dev/hdc cdrom
    /dev/hdd windoze XP (single NTFS partition)


    Before I installed the 2nd drive w/ XP, I created a boot floppy in
    linux. After the windows installation successfully installed, I
    booted back into linux off of the boot floppy and ran:

    grub-install /dev/hda

    and now the machine boots back into linux. I've been trying to add
    the appropriate lines to /etc/grub.conf to get it to boot XP off of
    the secondary slave drive and nothing seems to work. Here is what
    /etc/grub.conf looks like:

    default=0
    timeout=10
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz
    title Red Hat Linux (2.4.18-3)
    root (hd0,0)
    kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda1
    initrd /boot/initrd-2.4.18-3.img
    title XP
    rootnoverify (hd1,0)
    chainloader +1


    ....and when I select "XP" from the grub menu it says:

    booting XP
    rootnoverify (hd1,0)
    chainloader +1


    ....and then just hangs w/ a black screen.

    Anyone know what /etc/grub.conf should look like for this setup? I've
    tried other drive numbers even tho my understanding is that grub
    ignores cdroms so hd1 should be correct. I've also tried mapping
    (hd1) (hd0) and (hd0) (hd1) w/ no success. I've also tried changing
    "rootnoverify" to "root". (and I think every possible combination of
    these options).
    Jed Guest

  2. #2

    Default Re: new XP installation won't boot from grub

    > I've added a hard drive to an existing RH9 installation to make my 

    Was XP installed when this disc was connected as hdd?
    Or was it hda then?
    I suspect the latter.

    Use the bios number remapping commands.
    If have no idea what they are exactly in grub, so
    you'll have to RTFM

    Eric
    Eric Guest

  3. #3

    Default Re: new XP installation won't boot from grub

    Jed Rogge wrote: 

    Here is our /boot/grub/grub.conf definition. This PC has also (very
    oold) Windows on secondary (slave) disk.

    Take a look:
    http://home.online.no/~osmoma/grub1.html

    // os moma
    http://www.futuredesktop.org









    osmoma Guest

  4. #4

    Default Re: new XP installation won't boot from grub

    Jed Rogge wrote: 

    Check if hd1 is the right one for Windows.

    start GRUB
    # grub

    grub> root (hd1, [PRESS TAB KEY]

    Possible partitions are:
    Partition num: 0, Filesystem type is fat(ntfs?), partition type 0xb
    Partition num: 4, Filesystem type is fat(ntfs?), partition type 0xb

    // 0 1 2 3 4 5
    // a b c d e f
    Shouldn't it be hd3 ?


    osmoma Guest

  5. #5

    Default Re: new XP installation won't boot from grub

    osmoma wrote: 
    >
    >
    > Check if hd1 is the right one for Windows.
    >
    > start GRUB
    > # grub
    >
    > grub> root (hd1, [PRESS TAB KEY]
    >
    > Possible partitions are:
    > Partition num: 0, Filesystem type is fat(ntfs?), partition type 0xb
    > Partition num: 4, Filesystem type is fat(ntfs?), partition type 0xb
    >
    > // 0 1 2 3 4 5
    > // a b c d e f
    > Shouldn't it be hd3 ?
    >
    >[/ref]


    hd1 was right. Apparently grub ignores empty channels and cdroms so
    even tho it was /dev/hdd, grub saw it as the second disk, hd1

    I tried your suggestions and got "NTLOADER not found" so I moved the
    hard drive to the primary master and re-installed XP on it (with the
    linux disk removed). Then I moved it back to secondary slave, put the
    linux disk back on primary master and grub booted it right away.

    A long way to get there, but it does work now. Thanks for the help.


    Jed Guest

Similar Threads

  1. Grub boot problem
    By RaidenSix in forum Ubuntu
    Replies: 4
    Last Post: June 4th, 03:32 PM
  2. Where To Put GRUB Boot mbr???
    By Don in forum Ubuntu
    Replies: 4
    Last Post: June 4th, 06:39 AM
  3. Dual boot Win XP / Linux, using grub
    By Stefan in forum Linux Setup, Configuration & Administration
    Replies: 12
    Last Post: October 22nd, 07:55 PM
  4. Boot issue, possible Grub error
    By Lije in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: October 18th, 02:39 PM
  5. How to Uninstall the GRUB boot loader?
    By Leslie in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: July 11th, 02:32 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139