Professional Web Applications Themes

GRUB and multiple linux installations - Linux Setup, Configuration & Administration

Been using grub for some time now as a replacement for LILO. However, I have only used grub to boot different 2.4.x kernels from the same "installation" ( from ... /dev/hda7 ), with different 2.4.x kernels residing in /boot. I have a new HD, on /dev/hdb. Now what I wanted to do is to install linux on this new hard drive too ( too play around with 2.6 kernel while keeping my 2.4.x installation intact ). Of course, the new installation in /dev/hdb will have its own /boot/grub/menu.lst during the initial install. My question is, for those that have done ...

  1. #1

    Default GRUB and multiple linux installations


    Been using grub for some time now as a replacement for LILO.
    However, I have only used grub to boot different 2.4.x kernels from the
    same "installation" ( from ... /dev/hda7 ), with different 2.4.x kernels
    residing in /boot.

    I have a new HD, on /dev/hdb. Now what I wanted to do is to install
    linux on this new hard drive too ( too play around with 2.6 kernel while
    keeping my 2.4.x installation intact ).

    Of course, the new installation in /dev/hdb will have its own
    /boot/grub/menu.lst during the initial install.


    My question is, for those that have done this, what have you done to
    keep a single "menu.lst" file that can boot either 2.4 or 2.6 installation ?



    I was thinking:

    In the installation in /dev/hdb, mount /dev/hda7 and append the menu.lst
    from the 2.4 installation into the new installation. Do the same the
    other way around to keep things consistent, so that menu.lst in both
    installations are identical. However, this may be a bit bersome.


    Also, if the menu.lst are different between the two installations, how
    does grub know at startup whether to show the menu.lst from
    /boot/grub/menu.lst of /dev/hda7 or from /boot/grub/menu.lst of /dev/hdbX ?




    noone Guest

  2. #2

    Default Re: GRUB and multiple linux installations

    On Tue, 23 Dec 2003 00:23:09 +1100, noone wrote: 

    Grub has the flexibility to boot images from the other drive.

    You mount hda boot partition on the new install so that you can modify
    hda menu.lst when required. I do the same thing for different
    releases and other distributions. I just install whever, mount the
    master boot partition, cut standza from new install config file and
    paste into the /hda master list.

    When the old boot loader became obsolete I used the new boot loader
    with old list cut/pasted into new config file.

    Bit Guest

  3. #3

    Default Re: GRUB and multiple linux installations

    Bit Twister wrote: 

    I am aware of that ... given that you specify /dev/hdaX or /dev/hdbX in
    the menu.lst ....
     

    So you just copy and paste between the two menu.lst ?

    If the two are not identical, which one does grub decide to use / display ?

    noone Guest

  4. #4

    Default Re: GRUB and multiple linux installations

    On Tue, 23 Dec 2003 02:35:06 +1100, noone wrote: 
    >
    > I am aware of that ... given that you specify /dev/hdaX or /dev/hdbX in
    > the menu.lst ....

    >
    > So you just copy and paste between the two menu.lst ?
    >
    > If the two are not identical, which one does grub decide to use / display ?[/ref]

    Let's there are several .lst, redhat, mandrake 90, mandrake 92.
    Mandrake 92 is the default *production* boot and I decide to play with
    the new kernel 2.6 for mandrake.

    The production .lst has everyone and grub boot from that .lst.
    I create the new partition(s) on the other drive and copy *production*
    partition(s). I modify production .lst to have the new development
    standza. Boot it, build kernel, mount *production* /boot, modify .lst
    to boot new image, and see if I can boot new kernel.

    I would wind up with labels like
    md92
    rh70
    md90
    md92dev_24
    md92dev_26
    Bit Guest

Similar Threads

  1. Getting to DOS with Grub -- is my linux box fried?!
    By velvet in forum Linux Setup, Configuration & Administration
    Replies: 4
    Last Post: December 23rd, 03:37 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. Many (more than one) linux installations on a HD
    By Chris in forum Linux Setup, Configuration & Administration
    Replies: 8
    Last Post: December 10th, 11:34 PM
  4. Dual boot Win XP / Linux, using grub
    By Stefan in forum Linux Setup, Configuration & Administration
    Replies: 12
    Last Post: October 22nd, 07:55 PM

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