Linux-Setup Digest #244, Volume #19 Tue, 25 Jul 00 20:13:11 EDT
Contents:
Adding User Accpunts in a Script ([EMAIL PROTECTED])
Re: Cannot install Linux, any help appreciated ("dn")
Re: I've got more reading to do. [Change boot parameters LILO] ("Ken Crofts")
Re: How to modify the floppy boot disk after recompiling the kernel ("David ..")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: Adding User Accpunts in a Script
Date: Tue, 25 Jul 2000 22:58:29 GMT
I am currently using RH Linux 6.2. I need to create 1000 user accounts
(e.g. user0001 to user1000, with password same as the username ) for my
test setup/environment. How would i create a script to accomplish this?
I tried the following command to create just one account:
useradd -G pppusers -m -p user1 user1
I am getting "login incorrect" everytime i try to login as user1 with
password "user1". I noticed that the password field in the /etc/shadow
file displays "user1" instead of an encrypted password for the
account "user1". I was able to login after i changed the password of
user1 using the passwd command.
The man page for the adduser says the following for the -p password
option:
"the encrypted password, as returned by crypt(3)".
Thank you very much.
John Echano
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "dn" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.os.linux.mandrake,comp.os.linux.misc
Subject: Re: Cannot install Linux, any help appreciated
Date: Tue, 25 Jul 2000 23:12:51 GMT
I was having much HANG troubles until i replaced my S3-Virge with an ATI
Rage Pro.
"Dave Brown" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> In article <D2Oe5.2606$[EMAIL PROTECTED]>, Robert Schumacher
wrote:
> >I am having a problem installing Linux (tried four distributions thus
far).
> >Keeping the differences between distributions in mind, basically what is
> >happening is that the installers either a) freeze at language selection
or
> >b) the keyboard and mouse will not work in the installer. I can't tell
for
>
> I hate to suggest this, but if you can forego the pretty graphical
installer,
> you might try the "text" install of RH 6.2. As the various distros have
> "improved" their hardware sniffing capability, they've also increased the
> possibility of getting hung up on a particular hardware condition. The
> text install skips some of the hardware sniffing, since it doesn't require
> a graphical display or a mouse.
>
> --
> Dave Brown Austin, TX
------------------------------
From: "Ken Crofts" <[EMAIL PROTECTED]>
Crossposted-To: aus.computers.linux,comp.os.linux.hardware
Subject: Re: I've got more reading to do. [Change boot parameters LILO]
Date: Wed, 26 Jul 2000 09:13:01 +1000
"Alan Mackenzie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> Linux is _user_ friendly. That's not quite the same thing as being
> _beginner_ friendly.
>
I like that distinction.
I certainly don't expect Linux to be another Windows, but I thought I could
at least get a basic installation without too many dramas (maybe
unrealistic).
I've purchased "Mastering REd Hat Linux 6" by Sybex and am furthering my
knowledge.
==========================================================
CAUTION - Any views expressed in this message are those of
the individual sender and may not necessarily reflect the
views of Department of Public Works and Services
==========================================================
------------------------------
From: "David .." <[EMAIL PROTECTED]>
Subject: Re: How to modify the floppy boot disk after recompiling the kernel
Date: Tue, 25 Jul 2000 18:04:10 -0500
This is a multi-part message in MIME format.
==============9ACD568C32140D8BF32A41EC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
The attached HTML file is how I do it on my systems.
Hope it helps.
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
==============9ACD568C32140D8BF32A41EC
Content-Type: text/html; charset=us-ascii;
name="kernel.compile.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="kernel.compile.html"
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="David Barnett">
<meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; U; Linux 2.2.16 i686)
[Netscape]">
<title>Compile a custom built kernel starting with source RPM's</title>
</head>
<body text="#000000" bgcolor="#CCCCCC" link="#0000EE" vlink="#CC33CC" alink="#FF0000">
<center><a NAME="Compile a Custom Built Kernel"></a><b><tt><font color="#CC0000"><font
size=+3>Compile
a Custom Built Kernel</font></font></tt></b>
<br><b><tt><font color="#CC0000"><font size=+3>Starting with Source
RPMS</font></font></tt></b>
<br><tt><font size=-2>Author: David Barnett</font></tt>
<br><tt><font size=-2>April 4, 2000</font></tt></center>
<tt></tt>
<p><tt> This document will take you through the steps
to compile and replace the kernel with a custom built kernel for your specific
system. It was written in an effort to help document and contribute back
to the Open Source Community.</tt><tt></tt>
<p><tt> Permission to use, copy, modify and distribute
the "Compile a Custom Built Kernel Starting with Source RPMS" documentation
for any purpose and without fee is hereby granted in perpetuity, provided
that the above Author notice appear in all copies. The Author makes
no representation about the suitability of this document for any purpose.
It is provided "as is" without expressed or implied warranty.</tt><tt></tt>
<p><tt> It is written on a Home built system with Dual
<b><a href="http://www.intel.com">Intel</a></b>
Pentiums, specifically built with Linux in mind and based on the <b><a
href="http://www.redhat.com">Red
Hat Distribution</a></b>. You should be able to use it as a guide for any
<b><a href="http://www.intel.com">Intel</a></b>
based system by reading the help notes and making the correct choices specific
to your system during the configuration steps of the kernel.</tt><tt></tt>
<p><tt> I start with the kernel SRPMS file which can
be downloaded from <b><a href="ftp://ftp.redhat.com/pub/redhat">Red Hat's
ftp site</a></b> or any of the <b><a
href="http://www.redhat.com/download/mirror.html">RedHat
Mirror ftp sites</a></b>. I use the kernel SRPM's due to the many
patches included in them and the ease of having these patches installed
by the
<b><a href="http://www.rpm.org">RPM program</a></b> which you will
see in action later during the following procedures in this document.</tt><tt></tt>
<p><tt> While downloading the kernel you should take
the time to make an Emergency boot disk and Rescue disk, just in case you
have troubles later. In order to keep the size of this document to a minimum,
I do not explain the reasons for each step involved, or any steps to keep
more than one kernel version.</tt>
<br><tt>It is very important to be careful to not make typo errors during
the following procedures as they will make this document appear useless.</tt><tt></tt>
<p><tt>I've personally followed these procedures several times on my own
systems. They will work if followed.</tt><tt></tt>
<center>
<p><b><tt><font color="#CC0000"><font size=+1>*** Use this guide with no
Guarantee ***</font></font></tt></b>
<br><b><tt><font color="#CC0000"><font size=+1>*** considered or implied.
***</font></font></tt></b></center>
<hr SIZE=4 WIDTH="100%">
<br><b><tt><font color="#3333FF"><font size=+1>Contents</font></font></tt></b><tt></tt>
<p><b><tt> <font color="#CC0000">Section 1</font></tt></b>
<blockquote><b><tt><font color="#3333FF"><font size=+1><a href="#Making an Emergency
Boot Disk">Making
an Emergency Boot Disk</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Making a Rescue Disk">Making
a Rescue Disk</a></font></font></tt></b></blockquote>
<b><tt> <font color="#CC0000">Section 2</font></tt></b>
<blockquote><b><tt><font color="#3333FF"><font size=+1><a href="#Installing the Source
RPM">Installing
the Source RPM</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Building Source
Directory">Building
Source Directory</a></font></font></tt></b></blockquote>
<b><tt><font color="#000000"> </font><font color="#CC0000">Section
3</font></tt></b>
<blockquote><b><tt><font color="#3333FF"><font size=+1><a href="#Removing RPM Kernel
Sources">Removing
RPM Kernel Sources</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Remove & Verify Kernel Source
Removal">Remove
& Verify Kernel Source Removal</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Verify Removal of RPM
Kernel">Verify
Removal of RPM Kernel</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Removing Old Modules">Removing
Old Modules</a></font></font></tt></b></blockquote>
<b><tt> <font color="#CC0000">Section 4</font></tt></b>
<blockquote><b><tt><font color="#3333FF"><font size=+1><a href="#Moving the
Sources">Moving
the Sources into Place</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Preparing for the
Compile">Preparing
for the Compile</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Configuration
Steps">Configuration
Steps</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Starting the Compile
Process">Starting
the Compile Process</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Modules Section">Modules
Section</a></font></font></tt></b></blockquote>
<b><tt> <font color="#CC0000">Section 5</font></tt></b>
<blockquote><b><tt><font color="#3333FF"><font size=+1><a href="#Kernel Installation
and Finishing Touches">Kernel
Installation and Finishing Touches</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Configuring LILO for new
Kernel">Configuring
LILO for new Kernel</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Updating LILO">Updating
LILO</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Reboot New Kernel">Reboot
New Kernel</a></font></font></tt></b>
<br><b><tt><font color="#3333FF"><font size=+1><a href="#Correcting Boot Time Module
Errors">Correcting
Boot Time Module Errors</a></font></font></tt></b></blockquote>
<hr SIZE=4 WIDTH="100%"><tt></tt>
<p><a NAME="Making an Emergency Boot Disk"></a><b><tt><font color="#3333FF"><font
size=+1>Making
an Emergency Boot Disk</font></font></tt></b>
<br><tt>To make an Emergency Boot Disk insert a blank floppy and give the
commands:</tt><tt></tt>
<p><tt><b> fdformat /dev/fd0H1440 </b>#
formats 1.44MB floppy</tt><tt></tt>
<p><tt><b> mkbootdisk --device /dev/fd0
x.x.xx</b>
# x.x.xx is kernel version.</tt><tt></tt>
<p><a NAME="Making a Rescue Disk"></a><b><tt><font color="#3333FF"><font size=+1>Making
a Rescue Disk</font></font></tt></b>
<br><tt>To make an Emergency boot disk you need a blank floppy and to give
the command:</tt><tt></tt>
<p><tt><b> fdformat /dev/fd0H1440</b>
# formats 1.44 MB floppy</tt><tt></tt>
<p><tt><b> cp /boot/vmlinuz
/dev/fd0</b>
# copies the kernel (vmlinuz) to floppy</tt><tt></tt>
<p><tt><b> rdev</b>
# Shows kernel root device such as "/dev/hda5"</tt><tt></tt>
<p><tt><b> rdev /dev/fd0
/dev/hdaX</b>
# hdaX root device shown by command above.</tt><tt></tt>
<p><tt><b> rdev -R /dev/fd0 1</b>
# This makes the root device read only</tt><tt></tt>
<p><tt>If you wish to test the new disks simply put one of the disks in
A: and reboot with the command</tt><tt></tt>
<p><b><tt> shutdown -r now</tt></b><tt></tt>
<p>
<hr SIZE=4 WIDTH="100%"><tt></tt>
<p><a NAME="Installing the Source RPM"></a><b><tt><font color="#3333FF"><font
size=+1>Installing
the Source RPM</font></font></tt></b>
<br><tt>Once the download is done and you have a working boot disk and
rescue disk then you are ready to continue with the compile.</tt><tt></tt>
<p><tt>First we need to install the kernel.src.rpm package with the
command:</tt><tt></tt>
<p><tt> <b>rpm -i kernel-x.x.xx.src.rpm</b></tt>
<br><tt>
# x.x.xx is version number</tt><tt></tt>
<p><tt>This will install the kernel sources into the /usr/src/redhat/SOURCES
directory.</tt><tt></tt>
<p><a NAME="Building Source Directory"></a><b><tt><font color="#3333FF"><font
size=+1>Building
Source Directory</font></font></tt></b>
<br><tt>This step will un-tar the source and install all the patches that
are provided with the src.rpm and place the un-tared & patched sources
in the /usr/src/redhat/BUILD/linux directory.</tt><tt></tt>
<p><tt> <b>cd /usr/src/redhat/SPECS/</b></tt><tt></tt>
<p><tt> <b>rpm -bp --target i686 kernel-x.x.xx.spec</b></tt><tt></tt>
<p><tt>Be sure to use correct spec file name and target architecture such
as i686, If you are building a kernel for the i386 architecture you do
not need to use the "--target iX86" section since the i386 is the
default.</tt><tt></tt>
<p>
<hr SIZE=4 WIDTH="100%"><tt></tt>
<p><a NAME="Removing RPM Kernel Sources"></a><b><tt><font color="#3333FF"><font
size=+1>Removing
RPM Kernel Sources</font></font></tt></b>
<br><tt>If you are rebuilding from a new <b><a
href="http://www.redhat.com">RedHat</a></b>
installation then you will have an RPM kernel installed on your system
as this would have been done during installation.</tt><tt></tt>
<p><tt>In order to find which RPM kernel version you have you would give
the command:</tt><tt></tt>
<p><tt> <b>rpm -qa | grep kernel</b></tt><tt></tt>
<p><tt>This will list all the kernel RPM's which are presently installed
on your system. If no kernel files are listed with this command then you
need to skip to the <b><font color="#3333FF">Remove & Verify Kernel
Source Removal </font></b>section<b>. </b> After finding what kernel
rpm's you have, you can remove all of them at the same time, by entering
the kernel files listed using the command above, and entering them all
on one line as shown below. Your system may have others as well as what
I have listed below. You need to remove all of them.</tt><tt></tt>
<p><b><tt><font color="#CC0000"><font size=+1>Since the next steps will
remove the existing kernel DO NOT attempt to reboot your system from this
point, until the compile and install is complete.</font></font></tt></b><b><tt><font
color="#CC0000"><font size=+1></font></font></tt></b>
<p><b><tt><font color="#CC0000"><font size=+1> ** You
have been Warned! **</font></font></tt></b>
<br><tt></tt> <tt></tt>
<p><b><tt> rpm -e --nodeps kernel kernel-headers kernel-source
kernel-smp</tt></b><tt></tt>
<p><a NAME="Remove & Verify Kernel Source Removal"></a><b><tt><font
color="#3333FF"><font size=+1>Remove
& Verify Kernel Source Removal</font></font></tt></b>
<br><tt>If you find that yours is not an rpm kernel then you will need
to remove the old kernel sources as shown in the following steps. I also
recommend these steps to verify that the old RPM kernel was properly removed.
The first step is to get a list of what is in the /usr/src/ directory,
all this is for is to show which directories there are. If you had an RPM
kernel these directories should have already been removed so you will just
need to verify that they were.</tt><tt></tt>
<p><tt><b> ls /usr/src/ </b># 2 directories
linux & linux-x.x.xx that need to be removed.</tt><tt></tt>
<p><tt><b> rm -rf /usr/src/linux </b> # Removes
symbolic link directory.</tt><tt></tt>
<p><tt><b> rm -rf /usr/src/linux-x.x.xx</b>
# x.x.xx is kernel version</tt><tt></tt>
<p><tt>Now that you have removed the kernel sources with the steps shown
above. The next steps are to remove the kernel.</tt><tt></tt>
<p><a NAME="Verify Removal of RPM Kernel"></a><b><tt><font color="#3333FF"><font
size=+1>Verify
Removal of RPM Kernel</font></font></tt></b>
<br><tt>This section covers removing both the RPM kernel and non-RPM kernel.
For the RPM kernel we want to verify the <a href="http://www.rpm.org/">RPM
program</a> removed the kernel and the links. For the non-RPM kernel we
must remove the kernel so there are no conflicts later when we replace
it. These steps are a precaution for the RPM kernel in case these files
were not removed as they should have been.</tt><tt></tt>
<p><tt> <b>cd /boot/</b></tt><tt></tt>
<p><tt><b> ls </b>#
lists files in /boot</tt><tt></tt>
<p><tt> <b>rm -f vmlinuz </b>#
removes symbolic link if not removed by rpm</tt><tt></tt>
<p><tt> <b>rm -f
vmlinuz-x.x.xx </b>
# x.x.xx is version number.</tt><tt></tt>
<p><tt> <b>rm -f
System.map </b>
# removes symbolic link</tt><tt></tt>
<p><tt> <b>rm -f System.map-x.x.xx</b>
# x.x.xx is version number.</tt><tt></tt>
<p><b><tt> rm -f module-info</tt></b><tt></tt>
<p><b><tt> rm -f initrd-x.x.xx.img</tt></b><tt></tt>
<p><tt><b>
cd </b>
# back to root.</tt><tt></tt>
<p><tt>The vmlinuz & System.map files and links will be replaced with
the new kernel when you are done compiling but prior to the reboot into
the new kernel.</tt><tt></tt>
<p><a NAME="Removing Old Modules"></a><b><tt><font color="#3333FF"><font
size=+1>Removing
Old Modules</font></font></tt></b>
<br><tt><font color="#000000">In this step we will start by finding the
current modules version and then removing them. </font>This will show what
kernel version of modules you have.</tt><tt></tt>
<p><tt> <b>ls /lib/modules/</b></tt><tt></tt>
<p><tt>To remove these we would use the following command:</tt><tt></tt>
<p><tt> <b>rm -rf /lib/modules/x.x.xx</b>
# where x.x.xx is the old kernel version.</tt><tt></tt>
<p><tt><font color="#000000">These will be replaced during the compile
of the new kernel.</font></tt><tt></tt>
<p>
<hr SIZE=4 WIDTH="100%"><tt></tt>
<p><a NAME="Moving the Sources"></a><b><tt><font color="#3333FF"><font size=+1>Moving
the Sources</font></font></tt></b>
<br><tt>The next step is to move the sources to /usr/src/ To do this
we will move the sources you built earlier with the <a
href="http://www.rpm.org/">RPM
program</a>, which un-tarred and added all the patches included with the
kernel-src.rpm. and placed them in the /usr/src/redhat/BUILD
directory.</tt><tt></tt>
<p><tt>From here all we need to do is give the following command.</tt><tt></tt>
<p><tt> <b>mv /usr/src/redhat/BUILD/linux /usr/src/</b></tt><tt></tt>
<p><tt>The next step is just a security precaution to be sure the owner
and group of all the files in the linux directory are set to root.</tt><tt></tt>
<p><tt> <b>chown -R 0.0 /usr/src/linux/</b></tt><tt></tt>
<p><a NAME="Preparing for the Compile"></a><b><tt><font color="#3333FF"><font
size=+1>Preparing
for the Compile</font></font></tt></b>
<br><tt>This step is to setup links to files which are needed to compile
programs and the kernel.</tt><tt></tt>
<p><tt> <b>cd /usr/include</b></tt><tt></tt>
<p><b><tt> rm -rf asm linux scsi</tt></b><tt></tt>
<p><b><tt> ln -s /usr/src/linux/include/asm-i386
asm</tt></b><tt></tt>
<p><b><tt> ln -s /usr/src/linux/include/linux
linux</tt></b><tt></tt>
<p><b><tt> ln -s /usr/src/linux/include/scsi
scsi</tt></b><tt></tt>
<p><tt> At this point you need to add any other patches not included
with the kernel.src.rpm that you want or need.</tt>
<br><tt>Now is also the time to make any tweaks to the Makefile or any
other changes you wish to make to the source prior to the compile.</tt><tt></tt>
<p><a NAME="Configuration Steps"></a><b><tt><font color="#3333FF"><font
size=+1>Configuration
Steps</font></font></tt></b>
<br><tt>To get started with choosing the configuration of the new kernel
give the commands:</tt><tt></tt>
<p><tt> <b>cd /usr/src/linux/</b></tt><tt></tt>
<p><b><tt> make mrproper</tt></b><tt></tt>
<p><b><tt> make menuconfig</tt></b><tt></tt>
<p><tt> Make the needed selection changes for your specific system.
Choose carefully or you can have problems and have to recompile from the
scratch. I like to save the config file to an alternate file so that if
I have to recompile for any reason I don't have to go back through the
whole config file to add or remove just one choice. When done be sure to
save your changes.</tt><tt></tt>
<p><a NAME="Starting the Compile Process"></a><b><tt><font color="#3333FF"><font
size=+1>Starting
the Compile Process</font></font></tt></b>
<br><tt>Now that you have your configuration picked out it is time to give
some more commands. Starting with:</tt><tt></tt>
<p><tt> <b>make dep; make clean; make bzImage</b></tt><tt></tt>
<p><tt>These 3 commands can all be included in one line as long as they
are separated by a <b>;</b> (semicolon).</tt><tt></tt>
<p><tt>This may take from a few minutes, to several hours, depending on
your system.</tt>
<br><tt>Be patient. Get some coffee, or maybe even some sleep if it is
a slower system.</tt>
<br><tt>When the compile is done you need to make and install any modules
that you need.</tt><tt></tt>
<p><a NAME="Modules Section"></a><b><tt><font color="#3333FF"><font size=+1>Modules
Section</font></font></tt></b>
<br><tt>This step is not needed ONLY if you have compiled a kernel with
no loadable modules.</tt><tt></tt>
<p><tt> <b>make modules</b></tt><tt></tt>
<p><b><tt> make modules_install</tt></b><tt></tt>
<p><tt> <b>cd</b></tt><tt></tt>
<p>
<hr SIZE=4 WIDTH="100%"><tt></tt>
<p><a NAME="Kernel Installation and Finishing Touches"></a><b><tt><font
color="#3333FF"><font size=+1>Kernel
Installation and Finishing Touches</font></font></tt></b>
<br><tt>From here it is basically just a matter of installing the kernel
and some final touches.</tt>
<br><tt>In the following section when you see "<b>x.x.xx</b>" it stands
for the kernel version you have just compiled.</tt><tt></tt>
<p><tt> <b>cp /usr/src/linux/arch/i386/boot/bzImage
/boot/vmlinuz-x.x.xx</b></tt><tt></tt>
<p><tt> <b>cp /usr/src/linux/System.map
/boot/System.map-x.x.xx</b></tt><tt></tt>
<p><tt> <b>cd /boot</b></tt><tt></tt>
<p><b><tt> ln -fs vmlinuz-x.x.xx vmlinuz</tt></b><tt></tt>
<p><b><tt> ln -fs System.map-x.x.xx System.map</tt></b><tt></tt>
<p><b><tt> cd</tt></b><tt></tt>
<p><tt>Now we need to make new linux-version directory, copy some files
into it, and create a link.</tt><tt></tt>
<p><tt> <b>mkdir -p /usr/src/linux-x.x.xx/include</b>
# x.x.xx is the kernel version you have compiled.</tt><tt></tt>
<p><tt><b> cp -r /usr/src/linux/include/linux
/usr/src/linux-x.x.xx/include
</b>#
x.x.xx is kernel version</tt><tt></tt>
<p><tt> <b>cp -r /usr/src/linux/include/scsi
/usr/src/linux-x.x.xx/include</b></tt><tt></tt>
<p><b><tt> cp -r /usr/src/linux/include/net
/usr/src/linux-x.x.xx/include</tt></b><tt></tt>
<p><b><tt> cp -r /usr/src/linux/include/video
/usr/src/linux-x.x.xx/include</tt></b><tt></tt>
<p><b><tt> cp -r /usr/src/linux/incluse/asm-i386
/usr/src/linux-x.x.xx/include</tt></b><tt></tt>
<p><b><tt> cp -r /usr/src/linux/inclide/asm-generic
/usr/src/linux-x.x.xx/include</tt></b><tt></tt>
<p><tt> <b>rm -rf /usr/src/linux</b></tt><tt></tt>
<p><b><tt> cd /usr/src/</tt></b><tt></tt>
<p><tt> <b>ln -s /usr/src/linux-x.x.xx linux</b>
# this creates symbolically linked linux directory.</tt>
<br><tt></tt> <tt></tt>
<p><a NAME="Configuring LILO for new Kernel"></a><b><tt><font color="#3333FF"><font
size=+1>Configuring
LILO for new Kernel</font></font></tt></b>
<br><tt>Next you will need to edit /etc/lilo.conf so that it points to
your new kernel version</tt><tt></tt>
<p><tt> vi /etc/lilo.conf</tt>
<br><tt> comment out or remove the
"initrd=/boot/initrd-x.x.xx.img"
line.</tt>
<br><tt> and change the image=/boot/vmlinuz-x.x.xx to point
the correct version of your new kernel.</tt>
<br><tt> Your /etc/lilo.conf would look similar to this for a dual
boot system with linux being the default OS:</tt><tt></tt>
<p><tt> boot=/dev/hda</tt>
<br><tt> map=/boot/map</tt>
<br><tt> install=/boot/boot.b</tt>
<br><tt> prompt</tt>
<br><tt> timeout=50</tt>
<br><tt> default=linux</tt><tt></tt>
<p><tt> <b>image=/boot/vmlinuz-2.2.13 </b>#
change this line to correct kernel version</tt>
<br><tt> label=linux</tt>
<br><tt> <b>initrd=/boot/initrd-x.x.xx.img</b>
# comment out or remove this line</tt>
<br><tt> read-only</tt>
<br><tt> root=/dev/hda5</tt><tt></tt>
<p><tt> other=/dev/hda1</tt>
<br><tt> label=dos</tt><tt></tt>
<p><a NAME="Updating LILO"></a><b><tt><font color="#3333FF"><font size=+1>Updating
LILO</font></font></tt></b>
<br><tt>Be sure to use the correct kernel version when making changes to
your /etc/lilo.conf file.</tt>
<br><tt>Once you get these changes made then you need to install the new
lilo with:</tt><tt></tt>
<p><tt> <b>/sbin/lilo -v</b></tt><tt></tt>
<p><a NAME="Reboot New Kernel"></a><b><tt><font color="#3333FF"><font size=+1>Reboot
New Kernel</font></font></tt></b>
<br><tt>If you made a modularized kernel then all that is left to do is
to give the command to reboot with this.</tt><tt></tt>
<p><tt> <b>shutdown -r now</b></tt><tt></tt>
<p><tt>This will reboot your system into the new kernel you just built
for your system.</tt><tt></tt>
<p><a NAME="Correcting Boot Time Module Errors"></a><b><tt><font color="#3333FF"><font
size=+1>Correcting
Boot Time Module Errors</font></font></tt></b>
<br><b><tt><font color="#CC0000"><font size=+1>Notice: The steps
below are ONLY for kernels with no loadable modules.</font></font></tt></b>
<br><b><tt><font color="#CC0000"><font size=+1> (If you compiled everything
into the kernel only!)</font></font></tt></b>
<br><b><tt><font color="#CC0000"><font size=+1> You have been
warned!</font></font></tt></b><tt></tt>
<p><tt>Since you told the kernel what it needs during the configuration
section of rebuilding the kernel, it no longer needs to be told at boot
time what modules to use.</tt><tt></tt>
<p><tt>To correct this we want to:</tt>
<br><tt> Comment out the line around line 252 in the rc.sysinit file.</tt>
<br><tt>(vi +252 /etc/rc.d/rc.sysinit):</tt><tt></tt>
<p><tt> <b>if [ -x /sbin/depmod -a -n "$USEMODULES" ];
then</b></tt><tt></tt>
<p><tt> You will also need to comment out these lines starting around
line 264 in the rc.sysinit file.</tt>
<br><tt>(vi +264 /etc/rc.d/rc.sysinit):</tt><tt></tt>
<p><tt> <b>if [ -L /lib/modules/default ]; then</b></tt>
<br><b><tt> INITLOG_ARGS= action "Finding module dependencies"
depmod -a default</tt></b>
<br><b><tt> else</tt></b>
<br><b><tt> INITLOG_ARGS= action "Finding module dependencies"
depmod -a</tt></b>
<br><b><tt> fi</tt></b>
<br><b><tt> fi</tt></b><tt></tt>
<p><tt>You will no longer need the conf.modules file or modutils, since
it is only used by the kernel to load the modules needed by your system.</tt><tt></tt>
<p><tt> <b>rpm -e --nodeps modutils</b></tt><tt></tt>
<p><tt> <b>rm -f /etc/conf.modules</b></tt><tt></tt>
<p><tt>With these changes you would now be ready to reboot your system
into the new kernel.</tt><tt></tt>
<p><tt>Best of luck with your new system.</tt><tt></tt>
<center>
<p><b><tt><a href="http://twinscrew.barda.org/index.html">Home</a>
<a href="http://twinscrew.barda.org/dweb/linux/linux.index.html">Linux
Index</a> <a href="#Compile a Custom Built
Kernel">Top</a></tt></b></center>
</body>
</html>
==============9ACD568C32140D8BF32A41EC==
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.setup) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Setup Digest
******************************