Securing-Optimizing-RH-Linux-1_2_90
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
90
else
INITLOG_ARGS= action "Finding module dependencies" depmod -a
fi
fi
To read:
# if [ -L /lib/modules/default ]; then
# INITLOG_ARGS= action "Finding module dependencies" depmod -a default
# else
# INITLOG_ARGS= action "Finding module dependencies" depmod -a
# fi
#fi
NOTE: Once again, all this part Delete program, file and lines related to modules is required only
if you say No to Enable loadable module support (CONFIG_MODULES) in your kernel
configuration above. The procedure described above relates to initscripts-4_70-1 package.
Now you must Reboot your system and then test your results.
[root@deep /]# reboot
When the system is rebooted and you are logged in, verify the new version of your kernel with the
following command:
·
To verify the version of your new kernel, use the following command:
[root@deep /]# uname -a
Linux deep.openarch.com 2.2.14 #1 Mon Jan 10 10:40:35 EDT 2000 i686 unknown
[root@deep]#
Congratulation.
Making a new rescue floppy
After the reboot of your Linux server, you should have now a system with an upgraded kernel.
Time is to make a new rescue image with this new kernel in the case of future emergencies. To
do this, follow the simple step bellow:
·
Login as root, and insert a new floppy, then execute the following command:
[root@deep /]# mkbootdisk --device /dev/fd0 2.2.14
Insert a disk in /dev/fd0. Any information on the disk will be lost.
Press <Enter> to continue or ^C to abort:
Important note: The mkbootdisk program runs only on modularized kernel. So you cant use it on
a monolithic kernel; instead create an emergency boot floppy as shown bellow if you have a
problem with your system in the future.
Making a emergency boot floppy disk
Because it is possible to create a rescue floppy only on modularized kernel, we must find another
way to boot our Linux system if the Linux kernel on the hard disk is damaged. This is possible
with a Linux emergency boot floppy disk. You should immediately create it after you successfully
start your system and log in as root.
·
To create the emergency boot floppy disk, follow these steps:
1. Insert a floppy disk and format it with the following command:
[root@deep /]# fdformat /dev/fd0H1440
Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB.