Professional Web Applications Themes

boot problem after Mandrake upgrade and cannot make LILO work - Linux Setup, Configuration & Administration

Hi, I've just upgraded my Mandrake system from 8.1 to 9.1. Everything went fine, apart from the bootloader upgrade which produced some error messages I cannot remember. Now, when I dual boot from LILO on the newly upgraded linux, it stops with this message: "Warning: unable to open an initial console". In order to do some mending, I followed the instructions of lilo-crashes-rescue-HOWTO. I boot as root with Tom's root boot (tomsrtbt), as recommended in the Howto. the command 'fdisk -l' produces: Disk /dev/hda: 255 heads, 63 sectors, 1757 cylinders Units = cylinders of 16065 * 512 bytes Device Boot ...

  1. #1

    Default boot problem after Mandrake upgrade and cannot make LILO work

    Hi,

    I've just upgraded my Mandrake system from 8.1 to 9.1. Everything went
    fine, apart from the bootloader upgrade which produced some error
    messages I cannot remember.

    Now, when I dual boot from LILO on the newly upgraded linux, it stops
    with this message:
    "Warning: unable to open an initial console".

    In order to do some mending, I followed the instructions of
    lilo-crashes-rescue-HOWTO. I boot as root with Tom's root boot
    (tomsrtbt), as recommended in the Howto.

    the command 'fdisk -l' produces:

    Disk /dev/hda: 255 heads, 63 sectors, 1757 cylinders
    Units = cylinders of 16065 * 512 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 498 4000153+ b Win95 FAT32
    /dev/hda2 499 1757 10112917+ 85 Linux extended
    /dev/hda5 499 500 16033+ 83 Linux
    /dev/hda6 1090 1757 5365678+ 83 Linux
    /dev/hda7 501 563 506016 82 Linux swap
    /dev/hda8 564 1089 4225063+ 83 Linux

    Partition table entries are not in disk order

    and the fstab file includes the following information:
    /dev/hda8 is the root ( / ) partition,
    /dev/hda5 is the /boot partition,
    /dev/hda6 is the /home partition.

    I then mount as follows:
    # mkdir /test
    # mount /dev/hda8 /test
    # mount /dev/hda5 /test/boot
    # mount /dev/hda6 /test/home
    # mount -t vfat /dev/hda1 /test/mnt/windows
    (the directory is already created).

    I then modify /etc/fstab (not /test/etc/fstab) with the 4 new lines as
    follows:

    /dev/ram0 / minix defaults 1 1
    none /proc proc defaults 1 1
    /dev/hda8 /test ext2 defaults 1 1
    /dev/hda6 /test/home ext2 defaults 1 1
    /dev/hda5 /test/boot ext2 defaults 1 1
    /dev/hda1 /test/mnt/windows vfat defaults 1 1

    after running command `mount -a' (but it's not really necessary, is
    it?), I try:

    # chroot /test /sbin/lilo

    But it fails with this error message:

    "Fatal: open /dev/hda: no such file or directory "

    Can anybody explain to me why LILO can't "see" /dev/hda ?

    Here's my lilo.conf:

    ------------------/test/etc/lilo.conf--------------------------
    boot=/dev/hda
    map=/boot/map
    vga=normal
    default="windows"
    keytable=/boot/fr_CH-latin1.klt
    prompt
    nowarn
    timeout=150
    message=/boot/message
    menu-scheme=wb:bw:wb:bw
    image=/boot/vmlinuz
    label="linux"
    root=/dev/hda8
    append="devfs=mount acpi=off"
    read-only
    image=/boot/vmlinuz-2.4.7-12.3mdk
    label="failsafe.new"
    root=/dev/hda8
    append="failsafe devfs=mount acpi=off"
    read-only
    other=/dev/hda1
    label="windows"
    table=/dev/hda
    other=/dev/fd0
    label="floppy"
    unsafe
    image=/boot/vmlinuz-2.4.7-12.3mdk
    label="old_linux"
    root=/dev/hda8
    initrd=/boot/initrd-2.4.7-12.3mdk.img
    append="devfs=mount acpi=off"
    read-only
    image=/boot/vmlinuz-2.4.7-12.3mdk
    label="247-3"
    root=/dev/hda8
    append="devfs=mount acpi=off"
    read-only
    image=/boot/vmlinuz
    label="failsafe"
    root=/dev/hda8
    append="devfs=nomount acpi=off failsafe"
    read-only
    ------------------end of/test/etc/lilo.conf--------------------------

    I tried to replace /dev/hda with /dev/hda5, /dev/hda8, /dev/hda2, to
    no avail. Further, there is no reason, why it should not work. It
    always did boot from /dev/hda.
    If I remove the line0 "boot=/dev/hda" from lilo.conf,
    LILO complains that it cannot install in a logical device (or
    something in this vein), which I presume is expected.

    Any hint as to how I can tackle the problem is welcome.

    In advance, thanks a lot.

    Giovanni


    Giovanni Guest

  2. #2

    Default Re: boot problem after Mandrake upgrade and cannot make LILO work

    On Fri, 08 Aug 2003 15:04:09 GMT, Giovanni
    <ferro-luzziecopo.unige.ch> wrote:
    > Hi,
    >
    > I've just upgraded my Mandrake system from 8.1 to 9.1. Everything went
    > fine, apart from the bootloader upgrade which produced some error
    > messages I cannot remember.
    >
    >
    > and the fstab file includes the following information:
    > /dev/hda8 is the root ( / ) partition,
    > /dev/hda5 is the /boot partition,
    > /dev/hda6 is the /home partition.
    >
    > I then mount as follows:
    > # mkdir /test
    > # mount /dev/hda8 /test
    > # mount /dev/hda5 /test/boot
    > # mount /dev/hda6 /test/home
    > # mount -t vfat /dev/hda1 /test/mnt/windows
    > (the directory is already created).
    >
    > I then modify /etc/fstab (not /test/etc/fstab) with the 4 new lines as
    > follows:
    >
    > /dev/ram0 / minix defaults 1 1
    > none /proc proc defaults 1 1
    > /dev/hda8 /test ext2 defaults 1 1
    > /dev/hda6 /test/home ext2 defaults 1 1
    > /dev/hda5 /test/boot ext2 defaults 1 1
    > /dev/hda1 /test/mnt/windows vfat defaults 1 1
    >
    > after running command `mount -a' (but it's not really necessary, is
    > it?), I try:
    >
    > # chroot /test /sbin/lilo
    >
    > But it fails with this error message:
    >
    > "Fatal: open /dev/hda: no such file or directory "
    >
    > Can anybody explain to me why LILO can't "see" /dev/hda ?
    >
    Are you sure that /test/dev/hda exists?



    --
    Oh my Darl-ing, oh my Darl-ing, oh my Darl-ing SCO,
    For a while the joke was funny, but it's really time to go.
    Bill Marcum Guest

  3. #3

    Default Re: boot problem after Mandrake upgrade and cannot make LILO work

    On Fri, 08 Aug 2003 15:04:09 GMT, [email]ferro-luzziecopo.unige.ch[/email] (Giovanni) wrote:
    >Hi,
    >
    >I've just upgraded my Mandrake system from 8.1 to 9.1. Everything went
    >fine, apart from the bootloader upgrade which produced some error
    >messages I cannot remember.
    >
    >Now, when I dual boot from LILO on the newly upgraded linux, it stops
    >with this message:
    >"Warning: unable to open an initial console".
    This is a kernel message, not a boot-loader message. The last line put out by
    LILO before transferring to the kernel is:
    "BIOS data check successful".

    I am guessing you are past the "Uncompressing .." message, which is the first
    line put out by the loaded kernel.

    >
    >In order to do some mending, I followed the instructions of
    >lilo-crashes-rescue-HOWTO. I boot as root with Tom's root boot
    >(tomsrtbt), as recommended in the Howto.
    >
    >the command 'fdisk -l' produces:
    >
    >Disk /dev/hda: 255 heads, 63 sectors, 1757 cylinders
    >Units = cylinders of 16065 * 512 bytes
    >
    > Device Boot Start End Blocks Id System
    >/dev/hda1 * 1 498 4000153+ b Win95 FAT32
    >/dev/hda2 499 1757 10112917+ 85 Linux extended
    >/dev/hda5 499 500 16033+ 83 Linux
    >/dev/hda6 1090 1757 5365678+ 83 Linux
    >/dev/hda7 501 563 506016 82 Linux swap
    >/dev/hda8 564 1089 4225063+ 83 Linux
    >
    >Partition table entries are not in disk order
    >
    >and the fstab file includes the following information:
    >/dev/hda8 is the root ( / ) partition,
    >/dev/hda5 is the /boot partition,
    >/dev/hda6 is the /home partition.
    >
    >I then mount as follows:
    ># mkdir /test
    ># mount /dev/hda8 /test
    ># mount /dev/hda5 /test/boot
    ># mount /dev/hda6 /test/home
    ># mount -t vfat /dev/hda1 /test/mnt/windows
    >(the directory is already created).
    >
    >I then modify /etc/fstab (not /test/etc/fstab) with the 4 new lines as
    >follows:
    >
    >/dev/ram0 / minix defaults 1 1
    >none /proc proc defaults 1 1
    >/dev/hda8 /test ext2 defaults 1 1
    >/dev/hda6 /test/home ext2 defaults 1 1
    >/dev/hda5 /test/boot ext2 defaults 1 1
    >/dev/hda1 /test/mnt/windows vfat defaults 1 1
    >
    >after running command `mount -a' (but it's not really necessary, is
    >it?), I try:
    >
    ># chroot /test /sbin/lilo
    >
    >But it fails with this error message:
    >
    >"Fatal: open /dev/hda: no such file or directory "
    >
    >Can anybody explain to me why LILO can't "see" /dev/hda ?
    After a chroot, there is no "/dev" directory in your new file hierarchy.

    >
    >Here's my lilo.conf:
    >
    >------------------/test/etc/lilo.conf--------------------------
    >boot=/dev/hda
    >map=/boot/map
    >vga=normal
    >default="windows"
    >keytable=/boot/fr_CH-latin1.klt
    >prompt
    >nowarn
    >timeout=150
    >message=/boot/message
    >menu-scheme=wb:bw:wb:bw
    >image=/boot/vmlinuz
    > label="linux"
    > root=/dev/hda8
    > append="devfs=mount acpi=off"
    > read-only
    >image=/boot/vmlinuz-2.4.7-12.3mdk
    > label="failsafe.new"
    > root=/dev/hda8
    > append="failsafe devfs=mount acpi=off"
    > read-only
    >other=/dev/hda1
    > label="windows"
    > table=/dev/hda
    >other=/dev/fd0
    > label="floppy"
    > unsafe
    >image=/boot/vmlinuz-2.4.7-12.3mdk
    > label="old_linux"
    > root=/dev/hda8
    > initrd=/boot/initrd-2.4.7-12.3mdk.img
    > append="devfs=mount acpi=off"
    > read-only
    >image=/boot/vmlinuz-2.4.7-12.3mdk
    > label="247-3"
    > root=/dev/hda8
    > append="devfs=mount acpi=off"
    > read-only
    >image=/boot/vmlinuz
    > label="failsafe"
    > root=/dev/hda8
    > append="devfs=nomount acpi=off failsafe"
    > read-only
    >------------------end of/test/etc/lilo.conf--------------------------
    >
    >I tried to replace /dev/hda with /dev/hda5, /dev/hda8, /dev/hda2, to
    >no avail. Further, there is no reason, why it should not work. It
    >always did boot from /dev/hda.
    >If I remove the line0 "boot=/dev/hda" from lilo.conf,
    >LILO complains that it cannot install in a logical device (or
    >something in this vein), which I presume is expected.
    >
    >Any hint as to how I can tackle the problem is welcome.
    Don't chroot. Prefix all of the above file paths in "lilo.conf" with
    /test/...

    Rather than destroy "lilo.conf", create another file: lilo-test.conf with the
    changes, and install with:

    lilo -C /test/etc/lilo-test.conf




    HOWEVER,

    the "initial console" problem is not a LILO problem. It is a kernel startup
    issue.

    --John



    LILO version 22++ links at:
    [url]http://freshmeat.net/projects/lilo[/url]
    johninsd at san dot rr dot com Guest

Similar Threads

  1. Floppy boot option in Lilo
    By Darsin in forum Linux Setup, Configuration & Administration
    Replies: 8
    Last Post: August 9th, 07:05 AM
  2. 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
  3. Debian lilo won't boot Redhat
    By Bijan Soleymani in forum Debian
    Replies: 9
    Last Post: July 2nd, 10:40 PM
  4. dual boot problems: LILO stops at LI
    By Douglas Mayne in forum Linux Setup, Configuration & Administration
    Replies: 11
    Last Post: July 2nd, 09:23 AM
  5. Using Lilo to boot more than one Linux distro.
    By Jon Haugsand in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: June 30th, 12:04 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