Monday, January 30, 2017

Removing newer linux kernel and retain the older one



I updated the linux kernel from 3.5 to 3.16 by downloading tar.xz file from linuxkernel.org and compiled, and subsequently installed successfully on my ubuntu machine(meaning I am able to see the boot options when I start the pc and can log into either 3.5 or 3.16 version of linux kernel)
but now I want to remove the newer version. steps I followed





  1. logged into older version 3.5

  2. ran dpkg --list | grep linux-image
    but there is no mention of 3.16




    root@h2o-Vostro-1015:~# dpkg --list | grep linux-image
    ii linux-image-3.5.0-17-generic 3.5.0-17.28 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
    ii linux-image-extra-3.5.0-17-generic 3.5.0-17.28 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP

    ii linux-image-generic 3.5.0.17.19 i386 Generic Linux kernel image




which indicated that I have only 3.5 version installed,but I can boot into 3.16 version and also




  • I checked the /boot directory, there I can see the initrd.img-3.16.0-rc4, which proves that the 3.16 version is still present.




had above steps worked I would have tried either
removal through synaptic or




sudo apt-get remove --purge 3.16.0*




command via terminal.




kindly advise how can I remove the newer version.



Since you installed the kernel manually, posting a link to what instructions you followed would be helpful.



To delete manually, you can run ls -l /boot . Typically the files would be:




  1. abi-*

  2. initrd.img-*

  3. config-*


  4. System.map-*

  5. vmlinuz-*



Delete these files (corresponding to 3.16) and update grub.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...