Re: Kernel Upgrade?

From: Pedro M (Morphix User) (pmacv_at_telefonica.net)
Date: 01/30/05

  • Next message: Steve Turnbull: "Re: Kernel Upgrade?"
    Date: Sun, 30 Jan 2005 18:57:38 +0000
    To: Steve Turnbull <steve.turnbull@yhgfl.net>
    
    

    Steve Turnbull escribió:

    >On Sunday 30 January 2005 16:18, Max wrote:
    >
    >
    >>Dear All,
    >>
    >>Is it possible to change the Linux kernel in a Debian installation without
    >>having to do a complete reinstall?
    >>
    >>
    >
    >You can easily upgrade the kernel without reinstalling the whole operating
    >system - a very common thing to do. I don't know what version of Debian you
    >are using, but if you do;
    >
    >apt-get update
    >apt-cache search kernel-source
    >
    >you will get a list of 'debian-ified' kernels. Choose which one you want (if
    >your after functionality go for a 2.6.x...) and do
    >
    >apt-get install kernel-source-2.6.xx
    >
    >This will install the kernel SOURCE into /usr/src
    >
    >Install 'quick steps' (as root), make sure you have mkinitrd tools installed,
    >and if you want to use your Knoppix config, find it and put it in /tmp. I
    >would suggest you don't use this as it compiles modules for all sorts you
    >probably don't need. A better solution would be to use the config when you
    >first installed Debian, which is in /boot/config-x.xx.xx. Also, this assumes
    >a 2.6 kernel;
    >
    >cd /usr/src
    >tar xjvf kernel-source-2.6.xx
    >ln -s kernel-source-2.6.xx linux
    >cd linux
    >
    >make mrproper
    >cp /boot/config-2.xx.xx .config (or your knoppix one?)
    >make menuconfig (add/delete modules etc then save & exit)
    >make
    >make modules_install
    >cd /boot
    >cp /usr/src/linux/arch/i386/boot/bzImage linuz-2.6.xx
    >cp /usr/src/linuz/System.map System.map-2.6.xx
    >
    >The 'make modules_install' will place your modules into /lib/modules/2.6.xx
    >
    >mkinitrd -o initrd.img-2.6.xx 2.6.xx
    >
    >Note the space before the last '2.6.xx'. This is looking at
    >the /lib/modules/2.6.xx dir created earlier
    >
    >
    >Next you need to update your boot manager (I only know grub - if using lilo
    >then maybe someone else can help)
    >
    >edit /boot/grub/menu.lst and add the required fields, something similar to
    >this, but every setup maybe different, read up on grub if required;
    >
    >title Debian GNU/Linux, kernel 2.6.xx
    >root (hd0,1)
    >kernel /boot/vmlinuz-2.6.xx root=/dev/hda2 ro
    >initrd /boot/initrd.img-2.6.xx
    >savedefault
    >boot
    >
    >
    >Good look
    >Steve
    >
    >
    >
    >>I have e version ok Knoppix to hand so I'm feeling quite brave. I read a
    >>vague report that the kernel is just an ordinary file in some specific
    >>location, and it's possible to copy the old kernel to a backup directory
    >>for safe keeping, put a new kernel in said specific location, reboot and
    >>presto!
    >>
    >>Finally, is there anything I should be aware of before changing the
    >>kernel? The only reason prompting me to change the kernel is that I have
    >>a bit of software the documentation of which states that the kernel should
    >>be v2.4 or later. For instance, does a change in kernel usually go hand
    >>in hand with changing some other part of a system?
    >>
    >>Regards,
    >>--
    >>Muggles
    >>
    >>
    >
    >
    >
    A lot of commands. Kernel update is so usual, that would be only a
    single command to do it.

    Regards.

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Steve Turnbull: "Re: Kernel Upgrade?"

    Relevant Pages

    • Re: Does upgrading motherboard/CPU actually work?
      ... |process to install a new motherboard/CPU on an existing install or do you ... You shouldn't have to reinstall. ... to boot in safe mode, or even to console mode and then run sax2. ... That's assuming you are not running a processors specific kernel. ...
      (alt.os.linux.suse)
    • debian kernel & modules
      ... After 2 years of happily running Debian (with Windowz I needed to reinstall every 6 months) on my Asus laptop, unforunally, I had to reinstall my system. ... In the previous times I was compiuling the kernel by myself, I knew exactly which modules I need and compiling them as modules. ... I see eth1 (which was my wireless card at previous times, but I am not sure that this is the case now)). ...
      (Debian-User)
    • Re: Adding a dual processor
      ... Assuming the OS didn't get reinstalled after the loss of the processor, ... are still running the SMP kernel and HAL, ... If you had to reinstall the OS after the loss, ... processor Kernel and HAL. ...
      (microsoft.public.windowsxp.setup_deployment)
    • Re: [SLE] must boot from suse 10 DVD
      ... >>> We reinstalled the kernel, rewrote mbr, checked the bios, checked ... >> Reinstall the boot-loader. ... I probably can't help much more 'coz I use only lilo myself. ...
      (SuSE)
    • Re: [SLE] Many modules not found during boot after update...
      ... >> Simply reinstall the kernel rpm, and run you to upgrade it. ... CDs and then try the update with the patch CD containing the newest ...
      (SuSE)