[ILUG] Debian and new kernel
Colm Buckley
colm at tuatha.org
Tue Jan 29 11:28:08 GMT 2002
On Tue 29 Jan 2002 10:56, Fergal Moran wrote:
> I cut my teeth on debian (2.2R4) over the weekend on an old HP Netserver
> (it has an integrated HP Surestore DAT which I was hoping to use for
> backups). The install was fine but I had to recompile a new kernel
> (2.4.9) to get support for the DAT drive but I am having trouble
> installing it. I notice that debian put its default kernel in / rather
> than in /boot (I have /boot on a separate partition) which confused me a
> bit as all the other distros I am familiar with put it in /boot - so I
> put my new kernel in / just to be sure (it's a bzImage if that makes a
> difference) I added the relevant bits to lilo.conf - ran /sbin/lilo which
> added the new kernel without complaining. I then rebooted and at the
> LILO prompt - selected my new kernel but it hung after
The "Debian Way" to install a new kernel is to make a package out of
it, and then install that package.
Install the "kernel-package" package (apt-get install kernel-package),
and then, to install a new kernel:
* Unpack the kernel source wherever you want.
* cd to the "linux" source directory
* configure using your preferred method (make menuconfig, make xconfig,
whatever)
* run "make-kpkg kernel_image"
- this will create a kernel .deb in the directory containing the
"linux" source directory.
- you can add a revision number using e.g.: "make-kpkg --revision
mykernel.v1 kernel_image"
* install the resulting .deb using e.g.: "dpkg -i
kernel-image-2.4.17_mykernel.v1_i386.deb"
This will do the following:
Install the bzImage in /boot/vmlinuz-2.4.17
Install the modules in /lib/modules/2.4.17
Rename the symlink /vmlinuz to /vmlinuz.old
Symlink /boot/vmlinuz-2.4.17 to /vmlinuz
Run LILO
Hope this helps,
Colm
--
Colm Buckley : Systems Architect @ NewWorld Commerce
Business: +353 1 4334334 / colm at nwcgroup.com / http://www.nwcgroup.com/
Personal: +353 87 2469146 / colm at tuatha.org / http://www.tuatha.org/~colm/
... and these people are my vast array of unnecessary tag-alongs.
More information about the ILUG
mailing list