getting rid of a configured and installed kernel on 10.04?
Robert P. J. Day
rpjday at crashcourse.ca
Thu Aug 5 21:39:04 UTC 2010
On Thu, 5 Aug 2010, Nils Kassube wrote:
> Robert P. J. Day wrote:
> > i just want to verify this since i'm still not as familiar with
> > grub 2 as i'd like to be. if i've configured and installed a new
> > kernel on my system, and i eventually want to get rid of all traces
> > of it, as i read it, all i need to do is go into /boot, delete all
> > associated components, then
> >
> > $ sudo update-grub
> >
> > will that do it? or am i missing something? thanks.
>
> It depends on the way you installed your kernel. If you made your
> own kernel and installed just the files with "make install" etc. and
> generated the initramfs, then I think that would be the way to go.
> But don't forget that there are also modules at
> "/lib/modules/$(uname -r)/" (unless you made a kernel without
> modules).
ok, i think i verified that my suspicion works just fine. after
removing all components associated with that manually-installed
kernel, i just ran update-grub and got:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-rc4-rday
Found initrd image: /boot/initrd.img-2.6.35-rc4-rday
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found linux image: /boot/vmlinuz-2.6.32-23-generic
Found initrd image: /boot/initrd.img-2.6.32-23-generic
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /memtest86+.bin
done
so that confirms that the update-grub utility just scans for whatever
looks like a bootable kernel and adds that to grub.cfg.
again, i would do this only for manually-installed kernels, not for
apt/dpkg-managed kernels.
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Top-notch, inexpensive online Linux/OSS/kernel courses
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the ubuntu-users
mailing list