All of lore.kernel.org
 help / color / mirror / Atom feed
From: andi.platschek@gmail.com (Andreas Platschek)
To: kernelnewbies@lists.kernelnewbies.org
Subject: removing an Installed Kernel
Date: Fri, 30 Aug 2013 09:17:56 +0200	[thread overview]
Message-ID: <52204724.50109@gmail.com> (raw)
In-Reply-To: <CAPhGq=YZ2MPNxe+iaex0=bchxXW7J54xuR-K=RVYTx3=CE3QvA@mail.gmail.com>

On 08/30/2013 08:49 AM, Alexandru Juncu wrote:
> On 30 August 2013 08:11, Arun M Kumar <arunkr.linux@gmail.com> wrote:
>> 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"
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






>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply	other threads:[~2013-08-30  7:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30  5:11 removing an Installed Kernel Arun M Kumar
2013-08-30  6:49 ` Alexandru Juncu
2013-08-30  7:17   ` Andreas Platschek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52204724.50109@gmail.com \
    --to=andi.platschek@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.