Slackware 10.2 Tips and Tricks

Want to Install the 2.6.13 Kernel is Slack but don’t know how? Ask and ye shall receive!

First, mount the CDROM…in my case, it is /dev/hdb

mount -t auto /dev/hdb /mnt/cdrom

or

mount -t auto /dev/cdrom /mnt/cdrom

Next, let’s install that Kernel! Insert Slackware Disc 2…then issue the commands below.

installpkg /mnt/cdrom/linux-2.6.13/kernel-source-2.6.13-noarch-1.tgz

 

installpkg /mnt/cdrom/linux-2.6.13/kernel-modules-2.6.13-i486-1.tgz

 

installpkg /mnt/cdrom/linux-2.6.13/kernel-headers-2.6.13-i386-1.tgz

 

installpkg /mnt/cdrom/linux-2.6.13/kernel-generic-2.6.13-i486-1.tgz

 

installpkg /mnt/cdrom/linux-2.6.13/alsa-driver-1.0.9b_2.6.13-i486.1.tgz

Ok, we’re almost there. Next, do the following:

umount /dev/cdrom

Insert Disk 1, we’ll need initrd from there if you use any filesystem other than ext2…so if you use ext2, you’re done. Otherwise, keep going:

mount -t auto /dev/hdb /mnt/cdrom

or

mount -t auto /dev/cdrom /mnt/cdrom

Now that the 1st disc is in and mounted, let’s get mkinitrd installed so we can use it:

installpkg /mnt/cdrom/slackware/a/mkinitrd-1.0.1-i486-3.tgz

Now let’s make it for our filesystem…see[url=ftp://ftp.slackware.com/pub/slackware/slackware-10.2/testing/packages/linux-2.6.13/README.initrd] This How-To[/url] for specifics to your filesystem. For me, I use reiserfs…so my command would be as follows…you may use a different filesystem…so please refer to that linked document above for filesystem specifics:

mkinitrd -c -k 2.6.13 -m reiserfs

Now that you generated an initrd…let’s update lilo, the bootloader for it…here’s my /etc/lilo.conf settings for the new kernel. Please note that I did not change any of the global lilo.conf settings such as framebuffer settings and timeouts, etc.:
image = /boot/vmlinuz-generic-2.6.13
root = /dev/hda2
initrd=/boot/initrd.gz
label =”Slaq-10.2″
read-only
Notice the initrd.gz line above is in the /boot directory. I hopped over to that directory to make sure I was referencing the right thing by listing the contents (ls -al) and ensuring that I was pointing to the right image initrd.gz. I’ve seen other how-to’s reference different files…hence, why I’m clarifying this.
Next, update the MBR with the lilo.conf info by executing

lilo

Now reboot, and hopefully things will have gone well for you. If you have any questions, drop a comment. I’ll try to answer any that you may have. Have fun with Slackware! It was my first and favorite and still is! (NOTE: this article was previously published in the forum tips and tricks area. The forum has been absolved and the article moved here)

This content is published under the Attribution-Noncommercial-Share Alike 3.0 Unported license.

  • http://www.the-shrike.net curson

    I’m quite used to do this, but it’s alaway nice to find a good & clear checklist around for this procedure.
    Well done, I’ll bookmark it, indeed :)

  • Yoni

    yeah,, you have good howto here. I am just having a really hard time trying to get my cdrom to mount successfuly.You can get with me or I can get with you. My Yahoo ID is > xxxinlinuxflamesxxx. I would appreciate it if you could get with me abou this.

  • http://linux-blog.org devnet

    Actually, check the forum link at the top of the blog…I support all my posts in the forum. Please go there and we can get your CDROM problem fixed.
    or the link is below:

    http://linux-blog.org/forum

    The forum is no longer active! I’ll attempt to support through comments…

  • Lev

    Even 2 years later I find this guide extremely useful. (for example, if you want to build LFS from a slackware 10.2 and have to update kernel to 2.6) Very concise, thank you!

    ps:
    ext3 mkinitrd command would be something similar to:
    mkinitrd -c -k 2.6.13 -m jbd:ext3 -f ext3 -r /dev/hda1