That ain't hard and that will work :)  thanks for that too.<br><br>Jared<br><br><div><span class="gmail_quote">On 7/14/06, <b class="gmail_sendername">James Gray</b> <<a href="mailto:james@grayonline.id.au">james@grayonline.id.au
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>yager wrote:<br>
> Use your favorite editor to edit the /boot/grub/menu.lst file.  I use<br>> gedit and type the following command.<br>><br>> sudo gedit /boot/grub/menu.lst<br>><br>> Remove all of the entries that you no longer need from the list.
<br>><br>> After you have removed the entries, you can go back and remove the<br>> vinitrd and vmlinuz files from the boot directory that you no longer<br>> need.<br><br>That will cause dpkg headaches when you remove the package the kernel
<br>was originally part of - besides, you forgot to delete the bulk of the<br>kernel in /lib/modules/<kernel-ver>.  Remove the *package* the old<br>kernel belongs to, and as part of the removal process, the grub entries
<br>will be removed too.  Simple.<br><br>To see what kernels are installed, try this:<br><br>export COLUMNS=150; dpkg -l '*image*' | grep ^ii<br><br>The "COLUMNS" environment variable is used by dpkg to draw the output.
<br>Unfortunately it's often too small to see the FULL package name with all<br>the version numbers a fru-fru associated with kernel images.  So by<br>explicitly setting "COLUMNS" you can trick dpkg into displaying more
<br>info, although it will probably wrap around, so watch out for that.  If<br>you still can't see the full package name, increase 150 to something<br>else (180? 200?  who cares?! :P)<br><br>Now that you have the package name;
<br><br>apt-get --purge remove <name-of-kernel-package><br><br>WARNING: DO NOT REMOVE THE RUNNING KERNEL!!!<br>         Not unless:<br>         1. you know what you're doing<br>         2. you have a backup plan (rescue CD - and know how to use it)
<br>         3. you know for sure you didn't screw up the "apt-get" command<br><br>Best option is to find the correct meta-package for whatever kernel you<br>want to run (386/686/k7/k8/smp/etc), install the meta package.  Then
<br>when new kernels come out it removes the old one as part of the<br>meta-package upgrade process.  You still need to manually remove the old<br>kernels that were installed PRIOR to the meta-package.<br><br>No need to break out the text editor or go removing "package-managed"
<br>files.  That's what dpkg was designed to avoid :)<br><br>Cheers,<br><br>James<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.3 (Darwin)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org">
http://enigmail.mozdev.org</a><br><br>iD8DBQFEt0MgwBHpdJO7b9ERAuSHAJ94ThyK05iEYwDo69NsMl13GCfVfQCgjNBB<br>Z1iaQt5E6YVSSrIiQia+WM0=<br>=bsnC<br>-----END PGP SIGNATURE-----<br><br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">
ubuntu-users@lists.ubuntu.com</a><br><a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></blockquote></div><br>