[lug] bzImage into lilo.
John Starkey
jstarkey at advancecreations.com
Wed Nov 8 21:34:17 MST 2000
Mark, it's been a while since you wrote this, I had to put my Kernel
compiling on hold for a while. I came back to this message last weekend
and it got me thru everything easily. I didn't know about "make
module_install" so I got a little lost, but I'd still be caught in a
black hole without this message.
Much appeciated.
John
On Wed, 4 Oct 2000, Mark Horning wrote:
> John Starkey wrote:
> >
> > Can someone tell me how to get from /usr/src/linux/arch/i386/boot/bzImage
> > to /boot and to lilo.conf and bootable??
> >
> > My understanding was that mklilo would do all this but it's still booting
> > the previous kernel, and lilo.conf is unchanged.
> >
>
> Hi John,
> Since I run RH and use the initial ramdisk stuff, I do the following
> after the compile:
> cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-$version-$date
> ( I like to keep the version and date of my kernels)
> cp /usr/src/linux/System.map /boot/System.map-$version-$date
> cd /boot
>
> I use symbolic links for the kernels I have built and that way I don't
> have to mess around with the lilo.conf once I have it set. I also always
> keep the last stable kernel that I used, just in case. (school of hard
> knocks or unbootable boxes).
> First I'll remove the old links and then I'll link the kernels to
> something like:
> rm -i System.map vmold* vmnew*
> ln -s vmlinuz-$oldver-$olddate vmold
> ln -s vmlinuz-$version-$date vmnew
>
> I make the initrd images and link them:
> modprobe loop (load the loop module)
> /sbin/mkinitrd initrd-$version-$date $version
> (version name as found in /lib/modules -i.e. 2.2.16 etc.)
> ln -s initrd-$oldver-$olddate vmold.img
> ln -s initrd-$version-$date vmnew.img
>
> And link the System map:
> ln -s System.map-$version-$date System.map
>
> And then run lilo:
> [root at telecaster boot]# /sbin/lilo
> Added New*
> Added Old
>
> My boot dir will look like:
> [root at telecaster boot]# ls -l
> total 3640
> lrwxrwxrwx 1 root root 26 Sep 3 23:37 System.map ->
> System.map-2.2.18pre2-0903
> -rw-rw-r-- 1 root root 170943 Jul 30 23:01
> System.map-2.2.17pre14-0730
> -rw-rw-r-- 1 root root 174500 Sep 3 17:23
> System.map-2.2.18pre2-0903
> -rw-r--r-- 1 root root 512 Jan 14 2000 boot.0300
> -rw-r--r-- 1 root root 4568 Sep 22 1999 boot.b
> -rw-r--r-- 1 root root 612 Sep 22 1999 chain.b
> -rw-rw-r-- 1 root root 343565 Jul 30 23:02
> initrd-2.2.17pre14-0730
> -rw-rw-r-- 1 root root 343571 Sep 3 17:25
> initrd-2.2.18pre2-0903
> -rw-r--r-- 1 root root 237 Jan 15 2000 kernel.h
> -rw------- 1 root root 38400 Sep 3 17:26 map
> lrwxrwxrwx 1 root root 21 Sep 3 23:37 module-info ->
> module-info-2.2.12-20
> -rw-r--r-- 1 root root 11773 Sep 27 1999
> module-info-2.2.12-20
> -rw-r--r-- 1 root root 620 Sep 22 1999 os2_d.b
> -rw-rw-r-- 1 root root 536355 Jul 30 23:01
> vmlinuz-2.2.17pre14-0730
> -rw-rw-r-- 1 root root 556052 Sep 3 17:22
> vmlinuz-2.2.18pre2-0903
> lrwxrwxrwx 1 root root 23 Sep 3 23:37 vmnew ->
> vmlinuz-2.2.18pre2-0903
> lrwxrwxrwx 1 root root 22 Sep 3 23:37 vmnew.img ->
> initrd-2.2.18pre2-0903
> lrwxrwxrwx 1 root root 24 Sep 3 23:37 vmold ->
> vmlinuz-2.2.17pre14-0730
> lrwxrwxrwx 1 root root 23 Sep 3 23:37 vmold.img ->
> initrd-2.2.17pre14-0730
>
> My lilo.conf like:
> boot = /dev/hda
> # timeout = 500
> prompt
> vga = normal
> read-only
> map=/boot/map
> install=/boot/boot.b
> image = /boot/vmnew
> label = New
> initrd = /boot/vmnew.img
> root = /dev/hda1
> image = /boot/vmold
> label = Old
> initrd = /boot/vmold.img
> root = /dev/hda1
> other = /dev/hdc1
> label = WinNt
> table =/dev/hdc
> map-drive =0x80
> to =0x81
> map-drive =0x81
> to =0x80
>
> Hope it helps!
>
>
More information about the LUG
mailing list