Professional Web Applications Themes

Using Lilo to boot more than one Linux distro. - Linux Setup, Configuration & Administration

I have two linux distros on my machine, but cannot figure out how to configure lilo to boot them. Searching on the web, I don't find many answers just a few hints. Here is my lilo.conf on the (for the time being) only bootable os: prompt timeout=50 default=rawhide boot=/dev/hda map=/boot/map install=/boot/boot.b message=/boot/message linear image=/boot/vmlinuz-2.4.20-2.21 label=rawhide initrd=/boot/initrd-2.4.20-2.21.img read-only append="hdc=ide-scsi root=LABEL=/ resume=force" image=/debian/vmlinuz label=debian root=/dev/hda1 read-only append="hdc=ide-scsi root=LABEL=/ resume=force" initrd=/debian/initrd.img /debian is a symbolic link to /mnt/debinstall which is mounted at my debian root partition, i.e. /dev/hda1. Some suggestions have been to install a single lilo boot loader on each root partition's ...

  1. #1

    Default Using Lilo to boot more than one Linux distro.

    I have two linux distros on my machine, but cannot figure out how to
    configure lilo to boot them. Searching on the web, I don't find many
    answers just a few hints.

    Here is my lilo.conf on the (for the time being) only bootable os:

    prompt
    timeout=50
    default=rawhide
    boot=/dev/hda
    map=/boot/map
    install=/boot/boot.b
    message=/boot/message
    linear

    image=/boot/vmlinuz-2.4.20-2.21
    label=rawhide
    initrd=/boot/initrd-2.4.20-2.21.img
    read-only
    append="hdc=ide-scsi root=LABEL=/ resume=force"


    image=/debian/vmlinuz
    label=debian
    root=/dev/hda1
    read-only
    append="hdc=ide-scsi root=LABEL=/ resume=force"
    initrd=/debian/initrd.img

    /debian is a symbolic link to /mnt/debinstall which is mounted at my
    debian root partition, i.e. /dev/hda1.

    Some suggestions have been to install a single lilo boot loader on
    each root partition's boot sector such that each individual
    installation does not need to know about any other installation. Then
    one should (somehow) install "master boot" something on the boot
    sector of /dev/hda.

    Not daring to destroy anything more on my machine, I haven't even
    tried to figure this out. But is the following on track?

    For each installation:

    mount root partition : mount /dev/hdax /mnt
    chroot to this partition : chroot /mnt
    configure lilo with no prompt or anything: editor /etc/lilo.conf
    run lilo: lilo
    exit this root and umount: exit, umount /mnt

    Then make a single master boot sector like the following:

    boot=/dev/hda
    other=/dev/hda1
    label=linux1
    other=/dev/hda2
    label=linux2
    ...

    Or is this approach far off? Maybe the single master boot sector
    configuration needs more stuff in it?

    Thanks for any input.

    --
    Jon Haugsand
    Dept. of Informatics, Univ. of Oslo, Norway, mailto:jonhaugifi.uio.no
    [url]http://www.ifi.uio.no/~jonhaug/[/url], Phone: +47 22 95 21 52

    Jon Haugsand Guest

  2. #2

    Default Re: Using Lilo to boot more than one Linux distro.

    On 29 Jun 2003 17:13:57 +0200, Jon Haugsand wrote:
    > I have two linux distros on my machine, but cannot figure out how to
    > configure lilo to boot them. Searching on the web, I don't find many
    > answers just a few hints.
    Ok,
    [url]http://groups.google.com/advanced_group_search[/url]
    initrd=/md91n/boot/initrd.img in the first box
    *linux* in the Newsgroup, pick English


    Bit Twister Guest

  3. #3

    Default Re: Using Lilo to boot more than one Linux distro.

    Jon Haugsand wrote:
    > I have two linux distros on my machine, but cannot figure out how to
    > configure lilo to boot them. Searching on the web, I don't find many
    > answers just a few hints.
    > Here is my lilo.conf on the (for the time being) only bootable os:
    .... and here is a link to the subject matter you require:
    "Running Multiple OS's" ...
    [url]http://www.linuxselfhelp.com/cats/running_multiple.html[/url]


    --
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
    Michael J. Tobler: motorcyclist, surfer, # Black holes result
    skydiver, and author: "Inside Linux", # when God divides the
    "C++ HowTo", "C++ Unleashed" # universe by zero

    mjt Guest

  4. #4

    Default Re: Using Lilo to boot more than one Linux distro.

    On Sun, 29 Jun 2003 at 15:13 GMT, Jon Haugsand eloquently wrote:
    > I have two linux distros on my machine, but cannot figure out how to
    > configure lilo to boot them. Searching on the web, I don't find many
    > answers just a few hints.
    ========= One of my /etc/lilo.conf ==============
    boot=/dev/hda
    map=/boot/map
    install=/boot/boot.b
    vga=5
    prompt
    timeout=30
    message=/boot/message
    linear
    default=RH9
    # append="video=matrox:vesa:447"

    image=/mnt/rh9boot/vmlinuz-2.4.20-9SGI_XFS_1.2.0
    label=RH9
    initrd=/mnt/rh9boot/initrd-2.4.20-9SGI_XFS_1.2.0.img
    append="video=matrox:vesa:443 hdc=ide-scsi"
    read-only
    root=/dev/hdb3

    image=/boot/vmlinuz-2.4.16-xfs
    label=RH72
    append="video=matrox:vesa:443 hdc=ide-scsi"
    read-only
    root=/dev/hda12

    ========= end One of my /etc/lilo.conf ==========

    ========= The /etc/fstab for the above system =======
    /dev/hda12 / xfs defaults 1 1
    /dev/hda1 /boot xfs defaults 1 2
    /dev/hda13 /tmp xfs defaults 1 2
    /dev/hda6 /usr xfs defaults 1 2
    /dev/hdb1 /mnt/rh9boot xfs defaults 1 2
    /dev/hdb3 /mnt/rh9root xfs defaults 1 2
    /dev/hdb6 /mnt/rh9home xfs defaults 1 2
    ========= end /etc/fstab for the above system =======
    HTH

    --
    Registered Linux User # 125653 ([url]http://counter.li.org[/url]) | Please remove
    Certified: 55% , 31% of which is tard. | '.invalid'
    [url]http://www.thespark.com/test[/url] | to reply.
    Switch to: [url]http://www.speakeasy.net/refer/190653[/url]
    ne... Guest

Similar Threads

  1. Ruby-oriented Linux distro?
    By Hal Fulton in forum Ruby
    Replies: 30
    Last Post: October 24th, 08:40 PM
  2. Floppy boot option in Lilo
    By Darsin in forum Linux Setup, Configuration & Administration
    Replies: 8
    Last Post: August 9th, 07:05 AM
  3. wired ol sparce linux distro question
    By Markku Kolkka in forum Linux Setup, Configuration & Administration
    Replies: 0
    Last Post: August 7th, 10:07 PM
  4. Change *first* bootloader from Lilo to Winxp with boot.ini
    By silly in forum Linux Setup, Configuration & Administration
    Replies: 1
    Last Post: July 3rd, 03:49 AM
  5. Debian lilo won't boot Redhat
    By Bijan Soleymani in forum Debian
    Replies: 9
    Last Post: July 2nd, 10:40 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