Results 1 to 6 of 6

Thread: kernel upgrade lilo problem

  1. #1
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401

    kernel upgrade lilo problem

    Trying to upgrade kernel. After apt-get and running lilo my boot directory looks like this:

    Code:
    knoppix@ttyp0[boot]# ls -l
    total 1100
    lrwxrwxrwx    1 root     root           21 Jan 11 13:26 System.map -> System.map-2.4.22-xfs
    -rw-r--r--    1 root     root            0 Jan 31 11:22 System.map-2.4.22-xfs
    -rw-r--r--    1 root     root       759313 Jan 11 07:17 System.map-2.6.0-1-686
    -rw-r--r--    1 root     root          512 Dec  7 14:35 boot.0340
    -rw-r--r--    1 root     root        38746 Oct  3 20:36 config-2.4.22-xfs
    -rw-r--r--    1 root     root        49779 Jan 11 06:57 config-2.6.0-1-686
    lrwxrwxrwx    1 root     root           38 Jan 11 13:26 debianlilo.bmp -> /usr/share/lilo/contrib/debianlilo.bmp
    -rw-r--r--    1 root     root            0 Jan 31 11:16 initr
    -rw-r--r--    1 root     root       172513 Dec  7 14:25 initrd.gz
    -rw-r--r--    1 root     root            0 Jan 31 11:18 initrd.img-2.6.0-1-686
    -rw-r--r--    1 root     root            0 Dec  7 14:25 knoppix-old-mbr.1070803528
    -rw-------    1 root     root        70144 Jan 31 10:19 map
    lrwxrwxrwx    1 root     root           33 Jan 11 13:26 sarge.bmp -> /usr/share/lilo/contrib/sarge.bmp
    lrwxrwxrwx    1 root     root           31 Jan 11 13:26 sid.bmp -> /usr/share/lilo/contrib/sid.bmp
    -rw-r--r--    1 root     root            0 Jan 31 11:17 vmli
    lrwxrwxrwx    1 root     root           18 Jan 11 13:26 vmlinuz -> vmlinuz-2.4.22-xfs
    -rw-r--r--    1 root     root            0 Jan 31 11:16 vmlinuz-
    -rw-r--r--    1 root     root            0 Jan 31 11:22 vmlinuz-2.4.2
    -rw-r--r--    1 root     root            0 Jan 31 11:18 vmlinuz-2.4.22-xfs
    -rw-r--r--    1 root     root            0 Jan 31 11:18 vmlinuz-2.6.0-1-686
    lilo.conf was modified only replacing kernel references with new
    Code:
    boot=/dev/hdb
    vga=791
    prompt
    timeout=500
    append = "hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce"
    
    image=/boot/vmlinuz-2.6.0-1-686
    	label=knoppix
    	root=/dev/hdb3
    	read-only
    	initrd=/boot/initrd.img-2.6.0-1-686
    ## A Windows installation, example for partition 1 on first IDE harddisk
    	other=/dev/hdb1
    	label=windows
    #	optional
    	table=/dev/hdb
    Now at boot time , lilo screen comes up but neither linux nor windows will boot (although windows will go into safe mode)

    Knoppix cd to the rescue but what to do? Methinks it might be the system.map link pointing to the wrong file

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Location
    Washington State
    Posts
    120

    Re: kernel upgrade lilo problem

    Quote Originally Posted by rusty
    lilo.conf was modified only replacing kernel references with new
    Code:
    boot=/dev/hdb
    vga=791
    prompt
    timeout=500
    append = "hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce"
    
    image=/boot/vmlinuz-2.6.0-1-686
    	label=knoppix
    	root=/dev/hdb3
    	read-only
    	initrd=/boot/initrd.img-2.6.0-1-686
    ## A Windows installation, example for partition 1 on first IDE harddisk
    	other=/dev/hdb1
    	label=windows
    #	optional
    	table=/dev/hdb
    Now at boot time , lilo screen comes up but neither linux nor windows will boot (although windows will go into safe mode)

    Knoppix cd to the rescue but what to do? Methinks it might be the system.map link pointing to the wrong file
    Remove these lines:
    Code:
    hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi
    Then run lilo, and tell me what happens.

    Note: the 2.6 kernel doen't need scsi emulation

  3. #3
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    Well, there's more trouble in river city. I went back and uninstalled the upgrade then reinstalled it with this message:

    Code:
    root@Knoppix:/# apt-get install kernel-image-2.6.0-1-686
    Reading Package Lists... Done
    Building Dependency Tree... Done
    kernel-image-2.6.0-1-686 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 338 not upgraded.
    1 not fully installed or removed.
    Need to get 0B of archives.
    After unpacking 0B of additional disk space will be used.
    Setting up kernel-image-2.6.0-1-686 (2.6.0-2) ...
    error reading /lib/modules/2.6.0-1-686/build :No such file or directory
    Deleting /lib/modules/2.6.0-1-686/build
    /usr/sbin/mkinitrd: /dev/fd does not exist
    Failed to create initrd image.
    dpkg: error processing kernel-image-2.6.0-1-686 (--configure):
     subprocess post-installation script returned error exit status 9
    Errors were encountered while processing:
     kernel-image-2.6.0-1-686
    My lilo.conf looks like this

    Code:
    boot=/dev/hdb
    vga=normal
    prompt
    timeout=500
    append = "apm=power-off nomce"
    image=/boot/vmlinuz-2.6.0-1-686
    	label=knoppix
    	root=/dev/hdb3
    	read-only
    	initrd=initrd.img
    	map=/boot/System.map-2.6.0-1-686
    ## A Windows installaton, example for partition 1 on first IDE harddisk
    	other=/dev/hdb1
    	label=windows
    #	optional
    	table=/dev/hdb
    and when I run lilo:

    Code:
    root@Knoppix:/# lilo
    Warning: '/proc/partitions' does not exist, disk scan bypassed
    Warning: /dev/hdb is not on the first disk
    Fatal: Empty map section
    Running all this off the cd , chrooting to the hd.

    /proc is empty ?

    The urge to reinstall is strong, but I'm resisting

  4. #4
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    More to think about:

    Cleaned up lilo.conf a bit:

    Code:
    boot=/dev/hdb
    vga=normal
    prompt
    timeout=500
    append = "apm=power-off nomce"
    image=/boot/vmlinuz-2.6.0-1-686
    	label=knoppix
    	root=/dev/hdb3
    	read-only
    	initrd=initrd.img
    ## A Windows installaton, example for partition 1 on first IDE harddisk
    	other=/dev/hdb1
    	label=windows
    #	optional
    	table=/dev/hdb
    a more verbose lilo output:

    Code:
    root@Knoppix:/boot# lilo -v -t
    LILO version 22.5.8 (test mode), Copyright (C) 1992-1998 Werner Almesberger
    Development beyond version 21 Copyright (C) 1999-2003 John Coffman
    Released 10-Oct-2003, and compiled at 22:17:37 on Nov  3 2003
    Compiled for Debian GNU/Linux.
    
    Warning: LBA32 addressing assumed
    Reading boot sector from /dev/hdb
    Warning: '/proc/partitions' does not exist, disk scan bypassed
    Warning: /dev/hdb is not on the first disk
    Using MENU secondary loader
    Calling map_insert_data
    
    Boot image: /boot/vmlinuz-2.6.0-1-686
    Mapping RAM disk initrd.img
    Fatal: open initrd.img: No such file or directory
    The contents of my /boot directory:

    Code:
    -rw-r--r--    1 root     root       759313 Jan 11 07:17 System.map-2.6.0-1-686
    -rw-r--r--    1 root     root          512 Dec  7 14:35 boot.0340
    -rw-r--r--    1 root     root        49779 Jan 11 06:57 config-2.6.0-1-686
    lrwxrwxrwx    1 root     root           38 Jan 11 13:26 debianlilo.bmp -> /usr/share/lilo/contrib/debianlilo.bmp
    -rw-r--r--    1 root     root            0 Jan 31 11:16 initr
    -rw-r--r--    1 root     root       172513 Dec  7 14:25 initrd.gz
    -rw-r--r--    1 root     root            0 Jan 31 15:06 initrd.img-2.6.0-1-686
    -rw-r--r--    1 root     root            0 Dec  7 14:25 knoppix-old-mbr.1070803528
    -rw-------    1 root     root        70144 Jan 31 10:19 map
    lrwxrwxrwx    1 root     root           33 Jan 11 13:26 sarge.bmp -> /usr/share/lilo/contrib/sarge.bmp
    lrwxrwxrwx    1 root     root           31 Jan 11 13:26 sid.bmp -> /usr/share/lilo/contrib/sid.bmp
    -rw-r--r--    1 root     root            0 Jan 31 11:17 vmli
    lrwxrwxrwx    1 root     root           18 Jan 11 13:26 vmlinuz -> vmlinuz-2.4.22-xfs
    -rw-r--r--    1 root     root            0 Jan 31 11:16 vmlinuz-
    -rw-r--r--    1 root     root            0 Jan 31 11:22 vmlinuz-2.4.2
    -rw-r--r--    1 root     root      1117933 Jan 11 07:17 vmlinuz-2.6.0-1-686
    Notice that initrd.img.2.6.0-1-686 has 0 bytes.

  5. #5
    Senior Member
    Join Date
    Nov 2003
    Location
    Washington State
    Posts
    120
    Quote Originally Posted by rusty
    More to think about:

    Cleaned up lilo.conf a bit:

    Code:
    boot=/dev/hdb
    vga=normal
    prompt
    timeout=500
    append = "apm=power-off nomce"
    image=/boot/vmlinuz-2.6.0-1-686
    	label=knoppix
    	root=/dev/hdb3
    	read-only
    	initrd=initrd.img
    ## A Windows installaton, example for partition 1 on first IDE harddisk
    	other=/dev/hdb1
    	label=windows
    #	optional
    	table=/dev/hdb
    a more verbose lilo output:

    Code:
    root@Knoppix:/boot# lilo -v -t
    LILO version 22.5.8 (test mode), Copyright (C) 1992-1998 Werner Almesberger
    Development beyond version 21 Copyright (C) 1999-2003 John Coffman
    Released 10-Oct-2003, and compiled at 22:17:37 on Nov  3 2003
    Compiled for Debian GNU/Linux.
    
    Warning: LBA32 addressing assumed
    Reading boot sector from /dev/hdb
    Warning: '/proc/partitions' does not exist, disk scan bypassed
    Warning: /dev/hdb is not on the first disk
    Using MENU secondary loader
    Calling map_insert_data
    
    Boot image: /boot/vmlinuz-2.6.0-1-686
    Mapping RAM disk initrd.img
    Fatal: open initrd.img: No such file or directory
    The contents of my /boot directory:

    Code:
    -rw-r--r--    1 root     root       759313 Jan 11 07:17 System.map-2.6.0-1-686
    -rw-r--r--    1 root     root          512 Dec  7 14:35 boot.0340
    -rw-r--r--    1 root     root        49779 Jan 11 06:57 config-2.6.0-1-686
    lrwxrwxrwx    1 root     root           38 Jan 11 13:26 debianlilo.bmp -> /usr/share/lilo/contrib/debianlilo.bmp
    -rw-r--r--    1 root     root            0 Jan 31 11:16 initr
    -rw-r--r--    1 root     root       172513 Dec  7 14:25 initrd.gz
    -rw-r--r--    1 root     root            0 Jan 31 15:06 initrd.img-2.6.0-1-686
    -rw-r--r--    1 root     root            0 Dec  7 14:25 knoppix-old-mbr.1070803528
    -rw-------    1 root     root        70144 Jan 31 10:19 map
    lrwxrwxrwx    1 root     root           33 Jan 11 13:26 sarge.bmp -> /usr/share/lilo/contrib/sarge.bmp
    lrwxrwxrwx    1 root     root           31 Jan 11 13:26 sid.bmp -> /usr/share/lilo/contrib/sid.bmp
    -rw-r--r--    1 root     root            0 Jan 31 11:17 vmli
    lrwxrwxrwx    1 root     root           18 Jan 11 13:26 vmlinuz -> vmlinuz-2.4.22-xfs
    -rw-r--r--    1 root     root            0 Jan 31 11:16 vmlinuz-
    -rw-r--r--    1 root     root            0 Jan 31 11:22 vmlinuz-2.4.2
    -rw-r--r--    1 root     root      1117933 Jan 11 07:17 vmlinuz-2.6.0-1-686
    Notice that initrd.img.2.6.0-1-686 has 0 bytes.
    The first thing I notice is it's looking for initrd.img, however there isn't an initrd.img; initrd.img should be a symbolic link to initrd.img-2.6.0-1-686.

    You can either run "mkinitrd", or reinstall the 2.6 kernel at this point. However, I notice mkinitrd came up with errors on previous attempts.

    I assume the message:
    Code:
    Warning: /dev/hdb is not on the first disk
    is refering to either "table=/dev/hdb", or "boot=/dev/hdb". I would try to focus on getting the 2.6 kernel booting, so you might want to hash out:
    Code:
    ## A Windows installaton, example for partition 1 on first IDE harddisk
    	other=/dev/hdb1
    	label=windows
    #	optional
    	table=/dev/hdb
    for a while.

    It looks like your initrd troubles where listed in the dpkg output; as you mentioned:
    Code:
    root@Knoppix:/# apt-get install kernel-image-2.6.0-1-686
    Reading Package Lists... Done
    Building Dependency Tree... Done
    kernel-image-2.6.0-1-686 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 338 not upgraded.
    1 not fully installed or removed.
    Need to get 0B of archives.
    After unpacking 0B of additional disk space will be used.
    Setting up kernel-image-2.6.0-1-686 (2.6.0-2) ...
    error reading /lib/modules/2.6.0-1-686/build :No such file or directory
    Deleting /lib/modules/2.6.0-1-686/build
    /usr/sbin/mkinitrd: /dev/fd does not exist
    Failed to create initrd image.
    dpkg: error processing kernel-image-2.6.0-1-686 (--configure):
    subprocess post-installation script returned error exit status 9
    Errors were encountered while processing:
    kernel-image-2.6.0-1-686
    What bafles me is it's looking for "/lib/modules/2.6.0-1-686/build"; I don't have this directory, and it didn't have errors when I installed the 2.6 kernel.
    Try:
    Code:
    dpkg -r kernel-image-2.6.0-1-686
    then:
    Code:
    apt-get install kernel-image-2.6.0-1-686
    Note that the package you fetched is probably still in /var/cache/apt/archives. You may want to remove it.

  6. #6
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    Well, I mucked around with it a bit, but in order to get on with things I reinstalled 3.3 (2.4.22-xfs kernel) from CD, then restored settings from backup.

    I'll be interested to see the 2.6 kernel on a Knoppix distro.

    Thanks for your help.

Similar Threads

  1. Kernel upgrade 2.4 -> 2.6
    By eris_pluvia in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-19-2005, 06:52 PM
  2. Modifying /etc/lilo.conf for kernel upgrade
    By sobriquet in forum General Support
    Replies: 2
    Last Post: 01-29-2004, 11:24 PM
  3. Kernel upgrade problem.
    By massai in forum General Support
    Replies: 32
    Last Post: 01-25-2004, 09:08 AM
  4. kernel upgrade
    By ferreter in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 08-19-2003, 10:23 PM
  5. problem using apt-get with upgrade/dist-upgrade
    By vesselinpeev in forum General Support
    Replies: 0
    Last Post: 05-26-2003, 09:03 PM

Posting Permissions

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


DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$284.00



Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT picture

Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT

$490.00



DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$264.00



1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports

$149.00



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$89.99



Dell R630 Server 2x E5-2620 V4 2.1GHz =16 Cores 128GB DDR4 1x 960GB 2x 1G 2x 10G picture

Dell R630 Server 2x E5-2620 V4 2.1GHz =16 Cores 128GB DDR4 1x 960GB 2x 1G 2x 10G

$210.00



Dell PowerEdge R530 Server 2x E5-2620 V4 = 16 Cores | H730 | 32GB RAM | 2x trays picture

Dell PowerEdge R530 Server 2x E5-2620 V4 = 16 Cores | H730 | 32GB RAM | 2x trays

$279.99



Dell PowerEdge R720 Server - 2x8c CPUs, 256Gb RAM, 128Gb SSD/3x900Gb SAS Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPUs, 256Gb RAM, 128Gb SSD/3x900Gb SAS Proxmox

$340.00



Lantronix UD1100IA2-01 Server New picture

Lantronix UD1100IA2-01 Server New

$199.00



CTO Dell PowerEdge R630 Server, 2x Xeon E5-2680V4, 64GB- 512GB RAM, New SSDs picture

CTO Dell PowerEdge R630 Server, 2x Xeon E5-2680V4, 64GB- 512GB RAM, New SSDs

$354.67