Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Kernel build - using new kernel - help please.

Kernel build - using new kernel - help please.

2003-12-31       - By David W.E. Roberts

 Back
Reply:     1     2  

Hi,

followed the books and rebuilt a kernel, and copied the new stuff into
/boot.
Updated /etc/lilo.conf and ran lilo.

However when I reboot it picks up the old kernel.

/etc/lilo.conf seems O.K.
*************************************
 cat /etc/lilo.conf

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

image=/boot/vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3
       label=linux
       initrd=/boot/initrd-2 (See http://trd-2.ora-code.com).4.18-3.img
       read-only
       root=/dev/hdc1
       append="hdd=ide-scsi"

image=/boot/vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3.291203
       label=linux.291203
       initrd=/boot/initrd-2 (See http://trd-2.ora-code.com).4.18-3.291203.img
       read-only
       root=/dev/hdc1
       append="hdd=ide-scsi"

other=/dev/hda5
       optional
       label=DOS
**************************************

The contents of /boot (ls -lrt) are:

ls -lrt
total 5751
-rw-r--r--    1 root     root          640 Jun 25  2001 os2_d.b
-rw-r--r--    1 root     root        23108 Jun 25  2001 message
-rw-r--r--    1 root     root          612 Jun 25  2001 chain.b
-rw-r--r--    1 root     root         5824 Jun 25  2001 boot.b
-rwxr-xr-x    1 root     root      2868043 Apr 18  2002 vmlinux-2 (See http://nux-2.ora-code.com).4.18-3
-rw-r--r--    1 root     root       474261 Apr 18  2002 System.map-2 (See http://map-2.ora-code.com).4.18-3
-rw-r--r--    1 root     root        14431 Apr 18  2002 module-info-2 (See http://nfo-2.ora-code.com).4.18-3
-rw-r--r--    1 root     root        39999 Apr 18  2002 config-2 (See http://fig-2.ora-code.com).4.18-3
drwxr-xr-x    2 root     root        12288 Aug  1  2002 lost+found
-rw-r--r--    1 root     root          512 Aug  1  2002 boot.0300
lrwxrwxrwx    1 root     root           16 Sep  6  2002 vmlinuz ->
vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3
lrwxrwxrwx    1 root     root           19 Sep  6  2002 System.map ->
System.map-2 (See http://map-2.ora-code.com).4.18-3
lrwxrwxrwx    1 root     root           20 Sep  6  2002 module-info ->
module-info-2 (See http://nfo-2.ora-code.com).4.18-3
-rw-r--r--    1 root     root          473 Sep  6  2002 kernel.h
-rw-r--r--    1 root     root      1041347 Dec 29 16:59
vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3.291203
-rw-r--r--    1 root     root       122238 Dec 29 17:07
initrd-2 (See http://trd-2.ora-code.com).4.18-3.291203.img
-rw-- ----    1 root     root        32768 Dec 29 17:08 map
-rw-r--r--    1 root     root      1090682 Dec 30 17:08 vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3
-rw-r--r--    1 root     root       121554 Dec 30 17:13 initrd-2 (See http://trd-2.ora-code.com).4.18-3.img

*******************************************************************

I have copied the old kernel and initrd files to the *291203* files.
I have replaced vmlinuz-2 (See http://nuz-2.ora-code.com).4.18-3 with the new build (see different date and
size).
I have made a new initrd*.img file after copying in the new kernel.
As far as I can see the system should boot from the December 30th version.
However uname -v tells me the kernel was built on the 18th April.

I am also puzzled as to the function of the System.map and module-info
links - these are not mentioned in my kernel building instructions.

I am also puzzled by the presence of a 'vmlinux' file with execute
permissions (which both vmlinuz files do not have).

I have so far worked from 'Linux Complete' and 'Red Hat Linux Unleashed'
which more or less agree.

About to dig into some O'Reilly books.

I am currently baffled as I seem to have followed the correct steps and have
the new kernel in the /boot directory pointed at by /etc/lilo.cof.

It was so much easier with Unix, where you just booted a single file :-)

I have probably done something trivially foolish, but this is my first Linux
kernel build so I am wondering if the books have left out something vital.

TIA

Dave R