Results 1 to 6 of 6

Thread: Help with Multi-boot in Lilo

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    2

    Help with Multi-boot in Lilo

    Hello All,

    I have just installed knoppix 3.3 running kde 3.2 onto my desktop which already had redhat 9 and windows XP installed. The thing now is that whenever I boot up lilo doesnt register my redhat system. I've tried configuring the lilo.conf file by adding the following:

    other=/dev/hda2 (my redhat partition)
    image=/boot/vmlinuz-2.4.20-8 (what's in my /'boot/ directory)
    label="RedHat9"
    initrd=/boot/initrd-2.4.20-8.img
    read-only
    #restricted
    #alias=5

    and when I run lilo in console i get the following message:

    Added Knoppix3.3 *
    Skipping /vmlinuz.old
    Added Windows(hdc1)
    Added WinNT(hda1)
    Fatal: First sector of /dev/hda2 doesn't have a valid boot signature

    so the magic question is how to I get lilo to detect my redhat 9 partition?


    btw im new to linux so any help would be greatly appreciated.

    thanks

  2. #2
    Member registered user
    Join Date
    Apr 2004
    Location
    Earth
    Posts
    93
    Try cfdisk or qtparted and set the partition as bootable. Then run lilo.

  3. #3
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    Here is my lilo.conf:
    #Boots Knoppix on hda5
    image=/boot/vmlinuz-2.4.26
    label="Knoppix24"
    root=/dev/hda5
    initrd=/boot/initrd.img-2.4.26
    append="lang=us apm=power-off ramdisk_size=100000 init=/etc/init nomce quiet nofstab wheelmouse"
    read-only

    #boots Knoppix on hda5
    image=/boot/vmlinuz-2.6.6
    label="Linux(new)"
    root=/dev/hda5
    initrd=/boot/initrd.img-2.6.6
    append="lang=us apm=power-off ramdisk_size=100000 init=/etc/init nomce nofstab wheelmouse"
    read-only

    #boots Mandrake on hda8
    image=/mnt/hda8/boot/vmlinuz
    label="Linux(old)"
    root=/dev/hda8
    initrd=/mnt/hda8/boot/initrd.img
    append="devfs=mount hdc=ide-scsi acpi=ht resume=/dev/hda6"
    read-only

    other=/dev/hda1
    label="Windows"
    table=/dev/hda

    Some thing similar shoud work for you.
    (hda8 must be mounted when you run lilo.)

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555

    Re: Help with Multi-boot in Lilo

    Quote Originally Posted by o3greg
    Fatal: First sector of /dev/hda2 doesn't have a valid boot signature
    Before you installed knoppix, were you booting from a boot loader (lilo or grub) redhat had installed? It appears you probably had it installed to MBR, _not_ to your (redhat) root hda2 - hence the above message. Also, do you have a separate /boot partition possibky mounted under /boot both under rh and knx?

    I guess the easiest thing to do is add RedHat to your knoppix lilo install, referring to it through /mnt/hda2 (which has to be mounted when running lilo), so a section similar to the following should do:
    Code:
    image=/mnt/hda2/boot/vmlinuz-2.4.20-8
    label="RedHat9"
    initrd=/mnt/hda2/boot/initrd-2.4.20-8.img
    root=/dev/hda2
    append=...whatever your RH kernel needs...
    read-only

  5. #5
    Senior Member registered user
    Join Date
    Aug 2004
    Location
    Sydney/Australia
    Posts
    311

    Re: Help with Multi-boot in Lilo

    Howdy o3greg


    >>
    ==================================
    other=/dev/hda2 (my redhat partition)
    ==================================
    .
    .
    .

    and when I run lilo in console i get the following
    message:

    Added Knoppix3.3 *
    Skipping /vmlinuz.old
    Added Windows(hdc1)
    Added WinNT(hda1)
    Fatal: First sector of /dev/hda2 doesn't have a
    valid boot signature

    so the magic question is how to I get lilo to
    detect my redhat 9 partition?
    >>

    The reason you get the message that the First sector
    of /dev/hda2 dosen't have a valid boot signature,
    is because it dosen't. Linux boots directly via the
    kernel, rather than using an external boot
    sector. Thus the use of the "image=" setting
    pointing directly at the lernel image.

    Most OS's, such as Windows, BSD, and others, will
    have a boot sector located on the first sector of
    their main partition. Which will be referenced by
    the MBR's loader. It in turn will commonly reference
    a number of other files to effect the OS's boot
    process.

    The "other=" setting that Lilo uses is designed to
    facilitate these other, non-Linux systems. It's
    also designed to work with the "chainloader+1"
    setting, which allows you to jump to an other
    sector on that partition, if it was so needed. That
    is, the OS's boot sector was damaged and
    you had a backup stored further into the
    partition. Or you were developing another loader
    file or something.

    As there is no boot loader installed on
    Red Hat's partition's first sector, the message is
    correct.


    Get rid of the "other=" setting


    You could use "other=" if you really wanted
    to, but you would have to point it at the actual
    kernel image itself, which has a loader on it's
    first sector anyway. But then a number of other
    settings which are designed to work with the "image="
    setting wouldn't be available. Such as using a
    different "root=" setting. Also there is a
    slightly greater over head involved in using "other="


    Yep, delete the "other=" setting for Red Hat, the
    rest of the config is OK.

    As long as the directories which hold your
    kernel images are mounted, then running "lilo"
    will update the map file. It dosen't matter
    where you mount them for that.



    jm

  6. #6
    Junior Member
    Join Date
    Nov 2004
    Posts
    2

    Thanks... it finally works!

    Thanks guys... i can now successfully run the multi-boot system. thanks for all your help!

Similar Threads

  1. Multi distros and LILO
    By radnor in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 03-26-2005, 12:33 AM
  2. Lilo setup improperly on multi-hard drive setup, how to fix?
    By Kethinov in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 12-21-2003, 10:23 PM
  3. multi boot different version of knoppix
    By certifieduser in forum General Support
    Replies: 3
    Last Post: 11-07-2003, 09:02 PM
  4. Using Grub in multi-OS with /boot partition
    By nuke in forum Hdd Install / Debian / Apt
    Replies: 7
    Last Post: 10-09-2003, 03:26 PM
  5. using knoppix on multi-boot CD's (boot scriptor)
    By ebone in forum Customising & Remastering
    Replies: 4
    Last Post: 05-16-2003, 02:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Pair Micron 16GB (2x8GB) PC4-21300 DDR4-2666VMHz Non-ECC Desktop Memory Ram picture

Pair Micron 16GB (2x8GB) PC4-21300 DDR4-2666VMHz Non-ECC Desktop Memory Ram

$19.95



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$27.98



8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture

8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A

$12.00



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



Samsung 16GB (2x8GB) PC3L-12800S Lap Top Memory RAM picture

Samsung 16GB (2x8GB) PC3L-12800S Lap Top Memory RAM

$20.00



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 256GB 8x 32GB 4Rx4 PC4-17000L DDR4 2133 MHz ECC LRDIMM Server Memory RAM picture

A-Tech 256GB 8x 32GB 4Rx4 PC4-17000L DDR4 2133 MHz ECC LRDIMM Server Memory RAM

$319.92