removing an Installed Kernel
I have compiled and installed a kernel,
Now it fails to Load...and i want to remove it....
what is the procedure to be followed, I have installed GRUB 1 on my system fr simplicity during this process.
Quoted 6 lines · Arun M Kumar
I have compiled and installed a kernel,
Now it fails to Load...and i want to remove it....
what is the procedure to be followed, I have installed GRUB 1 on my system fr simplicity during this process.
Hello.
Just delete the kernel image and the initrd files from /boot and delele the entry in /boot/grub/menu.lst (in the entry you can find the file names).
In grub2, you would just delete the image and do an "update-grub2"
Quoted 9 lines · Alexandru Juncu
Quoted 6 lines · Arun M Kumar
I have compiled and installed a kernel,
Now it fails to Load...and i want to remove it....
what is the procedure to be followed, I have installed GRUB 1 on my system fr simplicity during this process.
Quoted 7 lines
Hello.
Just delete the kernel image and the initrd files from /boot and delele the entry in
/boot/grub/menu.lst(in the entry you can find the file names).In grub2, you would just delete the image and do an "update-grub2"
and remove the modules that you install with make modules_install from /lib/modules/<kernel_version>
but take care to not remove the wrong directory!
For the future it may be advisable to use a build-script that builds you a package that can be installed using your distributions packaging system. In example for a Debian based (apt) system you can use make-kpkg and in addition of getting a kernel image and modules you get a package that can be installed and removed using apt (I am sure that there is a comparable tool for any other major distribution as well), so your workflow looks like this:
make menuconfig
CONCURRENCY_LEVEL=8 make-kpkg --initrd kernel_image dpkg -i ../linux-image-<version>_<arch>.deb
this even adds an entry to the boot-loader for you. and then you can just as easy remove the kernel using:
dpkg -r linux-image-<version>
and the kernel is cleanly removed from your system.
regards,
andi
Quoted 5 lines
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies