Re: How to delete a kernel which is built from sources?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...


> Hi all,
>
> I compiled several kernels of different versions from sources. Now I'd
> like to delete some of them. Are following steps the correct way to do
> it?
>
> 1. delete the related tarball with "rm" command
> 2. delete the related source tree with "rm -fr" command
> 3. delete the related
> modules, /lib/modules/linux-version_I_want_to_delete with "rm -fr"
> command
> 4. delete related symbolic links and files such as System.map, vmlinuz,
> initrd.
> 5. delete related entry in /boot/grub/menu.lst
>
> Is there anything i missed?

I think the above steps are correct. Just make sure you're not
currently running the soon-to-be-deleted kernel to avoid facing
strange problem.

Maybe it's ok for deleting currently running kernel image (since it's
already loaded fully to RAM and initrd is no longer in RAM once you
pass init stage), but modules are loaded on-demand so you can't delete
them while still (possibly) needed.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux