Professional Web Applications Themes

How can I install grub on MBR so that it prompts grub for booting Windows 98 - Linux Setup, Configuration & Administration

How do I install grub to MBR of primary hard disk that prompts grub first when I turns on computer? I want to know how do I boot Windows 98 from grub's command-line after I booting by grub boot disk? /dev/hda has two partitions /dev/hda1 - Windows 98 /dev/hda2 - for future installtion /dev/hdb has one partion /dev/hdb1 - Linux on ReiserFS...

  1. #1

    Default How can I install grub on MBR so that it prompts grub for booting Windows 98

    How do I install grub to MBR of primary hard disk that prompts grub
    first when I turns on computer?

    I want to know how do I boot Windows 98 from grub's command-line after
    I booting by grub boot disk?

    /dev/hda has two partitions
    /dev/hda1 - Windows 98
    /dev/hda2 - for future installtion

    /dev/hdb has one partion
    /dev/hdb1 - Linux on ReiserFS
    learner Guest

  2. #2

    Default Re: How can I install grub on MBR so that it prompts grub for booting Windows 98

    On Wed, 03 Dec 2003 00:09:08 -0700, learner wrote:
     
    Caveat: I am not running Windows 98.

    Your question does not make it clear how your system boots now. It is
    also not clear whether the entire grub package is installed.

    Continuing on..., part of your question implies you can get to a grub
    shell at bootup. If this is true, try this command:

    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    boot

    When you are sure your system will start both OS's, you can install grub
    at the MBR- this will give it maximum control of the boot order. Also
    notice that any command you enter at this shell, will work the same way
    automatically when entered into /boot/grub/menu.lst. Prepare a "stanza"
    for each of your OS's.

    Before proceeding make sure you have a set of rescue floppies for your
    system (windows and linux).

    Also, you should review the grub manual, here:
    http://www.gnu.org/software/grub/manual/html_node/index.html

    Here is an example /boot/grub/menu.lst (grub.conf) file. Edit
    as appropriate for your system for specific kernels and startup
    parameters.

    default=0
    timeout=10
    splashimage=(hd1,0)/boot/grub/splash.xpm.gz
    title Red Hat Linux (kernel 2.4.20-i686)
    root (hd1,0)
    kernel /vmlinuz-2.4.20-i686 ro root=/dev/hdb1
    title Red Hat Linux (kernel 2.4.19-i686)
    root (hd1,0)
    kernel /vmlinuz-2.4.19-i686 ro root=/dev/hdb1
    title Windows98
    rootnoverify (h0,0)
    chainloader +1
    makeactive

    BTW, since you are using Reiser, make sure the file
    /boot/grub/reiserfs_stage1_5 exists (along with other stage files, etc.)

    When you are sure the grub package is installed, run the grub shell from a
    linux boot:
    #grub
    grub> root (hd1,0)
    grub> setup (hd0)
    grub> quit

    Watch for error messages, after issuing the setup command.

    --
    Douglas Mayne
    Douglas Guest

  3. #3

    Default Re: How can I install grub on MBR so that it prompts grub for bootingWindows 98

    learner wrote: 

    Hello,

    Setting up multi-boot-menu using GRUB boot loader.
    A suggestion.


    (1) Boot into Linux. If problems then
    use rescue disk (in RedHat it is cd #1) or give boot command
    boot: linux rescue

    (2) You're now in Linux.
    Open xterm or konsole and goto CLI (CLI=Command Line=Shell)
    Become root-user
    $ su root


    (3) Learn to use these commands, study the output.
    # fdisk -l
    .....

    # cd /
    # df
    .....

    # ls -l /boot
    .....

    (4) Install GRUB on /hda/ drive.
    Note: This will override the Windows MBR.

    # /sbin/grub-install /dev/hda

    Check if it gives any errors or warning.


    (5) Edit /boot/grub/grub.conf. Backup it first.

    # cp -b /boot/grub/grub.conf /boot/grub/grub.conf.old

    # kate /boot/grub/grub.conf


    (6) Key inn these lines

    # ----------- grub.conf ----------beg
    timeout 15
    default 1
    color=blue/white light-gray/green

    title 1. Windows '98
    # unhide (hd0,0)
    # hide (hd0,1)
    rootnoverify (hd0,0)
    chainloader +1
    makeactive

    title 2. Linux, the master
    root=(hd1,0)
    kernel /vmlinuz-xx.yy.z ro root=/dev/hdb1 hdc=ide-scsi
    initrd /initrd-xx.yy.z.img
    # ----------- grub.conf ----------end


    Note-1:
    Use ls -l to find out correct vmlinuz... and initrd... values
    # ls -l /boot


    Note-2:
    You may need/want to hide the unused partition /hda2.
    hide (hd0,1)


    Note-3:
    You can start grub from CLI and ask it to give you some values.
    # grub

    grub>
    grub> root(hd1, [Press TAB-KEY]
    ...

    ---------

    (7) Save grub.conf and reboot
    # reboot

    ---------

    This HOWTO gives pretty good instructions:
    http://www.faqs.org/docs/Linux-mini/Multiboot-with-GRUB.html#ss2.3

    Links to other grub howtos:
    http://www.futuredesktop.org/grub1.html

    ----
    Ps.
    If you get problems, reply and include output of commands in step (3)
    ----

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

    osmoma Guest

Similar Threads

  1. (newbie) grub menu install
    By Vito in forum Ubuntu
    Replies: 2
    Last Post: October 11th, 01:35 PM
  2. Dual booting XP, Linux with Grub, on Dell
    By linuxquestion@yahoo.com in forum Linux Setup, Configuration & Administration
    Replies: 106
    Last Post: December 14th, 11:50 AM
  3. dual booting gentoo and debian via grub question
    By Rob in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: November 25th, 05:03 PM
  4. GRUB can't see the hard drive, booting windows fail in dual bootenviroment
    By Kamal in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: November 19th, 04:53 PM
  5. GRUB Install Explanation Please!
    By H Ho in forum Linux Setup, Configuration & Administration
    Replies: 0
    Last Post: July 14th, 04:04 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