Re: [PLUG] boot filled

2017-02-24 Thread Tom
Hi Denis,

Need to run to remove unused old versions of kernels and other
packages?
Run: sudo apt autoremove --purge

That should fix that for you automagically.

If you want to prevent the problem happening in the future without
remembering the command, you can configure it by following this guide:
http://ubuntuhandbook.org/index.php/2016/05/remove-old-kernels-ubuntu-1
6-04/

I just run the "autoremove" command whenever I remember, one a year
maybe. 

Hope it helps, Tomas
On Fri, 2017-02-24 at 07:57 -0800, Denis Heidtmann wrote:
> The last time this happened Tomas told me what to do, but I did not
> write
> it down and my mind is a sieve.  What is the solution?  There are 9
> archived images.  How do I safely throw out the older ones?
> 
> Thanks,
> -Denis
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] boot filled

2017-02-24 Thread Denis Heidtmann
On Fri, Feb 24, 2017 at 10:56 AM, Bruce Kilpatrick  wrote:

>
> > On 02/24/2017 07:57 AM, Denis Heidtmann wrote:
> >> The last time this happened Tomas told me what to do, but I did not
> write
> >> it down and my mind is a sieve.  What is the solution?  There are 9
> >> archived images.  How do I safely throw out the older ones?
> >
> If you are running Ubuntu (or something similar) sudo apt-get autoremove
> will uninstall anything the system no longer relies on and update Grub
> for you.
>
> Bruce


I chose this solution ("autoremove" sounded good).  Seems to have done the
trick.  Thanks for all the replies.

-Denis
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] boot filled

2017-02-24 Thread David Barr

> On Feb 24, 2017, at 10:19 AM, Tony Schlemmer  wrote:
> 
> On Fri, 2017-02-24 at 09:36 -0800, David wrote:
>> On 02/24/2017 07:57 AM, Denis Heidtmann wrote:
>>> 
>>> The last time this happened Tomas told me what to do, but I did not
>>> write
>>> it down and my mind is a sieve.  What is the solution?  There are 9
>>> archived images.  How do I safely throw out the older ones?
>>> 
>>> Thanks,
>>> -Denis
>> Howdy.
>> 
>> You don't provide quite enough information, but I can get you close
>> enough that you should be able to figure it out from there.
>> 
>> If you have a RH based system, you will want to use yum to remove the
>> oldest one or two kernel RPMs. I'd suggest starting with find out
>> your current kernel release, and then listing which kernel images are
>> installed:
>> 
>> $ uname -r # so you know what you can't remove
>> $ rpm -qa | grep kernel-[2-4]
>> $ sudo yum remove ${package name from above}
>> 
>> If you are using a Debian based system, it's similar:
>> 
>> $ uname -r # so you know what you can't remove
>> $ dpkg -l linux-image* | grep ^i
>> $ sudo apt-get remove ${package name from above}
>> 
>> You just want to be sure to leave your current running kernel and the
>> next youngest version (IMO), and the rest can be removed to free up
>> space in /boot.
>> 
>> dafr
> 
> I made the mistake one time of removing the active kernel under Ubuntu
> so I had to create a DVD recovery disk. With Ubuntu I use the Synaptic
> Package manager to uninstall old kernel images since I had a limited
> about of space in my boot partition. I have a new laptop that I bought
> in October so I have not had to delete any Kernels right now.


I've had the exact same problem, in the past. So, I wrote a fix...

https://github.com/dafydd2277/systemAdmin/blob/master/scripting/52_removeOldKernels.sh


Cheers!
dafydd

--

David - Offbeat http://pgp.mit.edu/
dafydd - Online 0xda3f18449337d6b5

51525354555657--

Dr. Viktor Frankenstein entered into a body building competition
only to find he has seriously misunderstood the objective.





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] boot filled

2017-02-24 Thread Bruce Kilpatrick
On 02/24/2017 08:36 AM, Dick Steffens wrote:
> On 02/24/2017 07:57 AM, Denis Heidtmann wrote:
>> The last time this happened Tomas told me what to do, but I did not write
>> it down and my mind is a sieve.  What is the solution?  There are 9
>> archived images.  How do I safely throw out the older ones?
>
> While I don't have an answer to your question, I do recall that there is
> a way to search for it in the archives. This involves using Google
> Advanced Search to search a "site or domain". I put pdxlinux.org in the
> "site or domain" line, but my search foo probably isn't what you need. I
> tried "linux remove old images from boot" (without quotes), but the
> first page didn't seem like what you are looking for. Maybe your foo
> would work better for you.
>
If you are running Ubuntu (or something similar) sudo apt-get autoremove 
will uninstall anything the system no longer relies on and update Grub 
for you.

Bruce
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] boot filled

2017-02-24 Thread Tony Schlemmer
On Fri, 2017-02-24 at 09:36 -0800, David wrote:
> On 02/24/2017 07:57 AM, Denis Heidtmann wrote:
> > 
> > The last time this happened Tomas told me what to do, but I did not
> > write
> > it down and my mind is a sieve.  What is the solution?  There are 9
> > archived images.  How do I safely throw out the older ones?
> > 
> > Thanks,
> > -Denis
> Howdy.
> 
> You don't provide quite enough information, but I can get you close 
> enough that you should be able to figure it out from there.
> 
> If you have a RH based system, you will want to use yum to remove the
> oldest one or two kernel RPMs. I'd suggest starting with find out
> your current kernel release, and then listing which kernel images are
> installed:
> 
> $ uname -r # so you know what you can't remove
> $ rpm -qa | grep kernel-[2-4]
> $ sudo yum remove ${package name from above}
> 
> If you are using a Debian based system, it's similar:
> 
> $ uname -r # so you know what you can't remove
> $ dpkg -l linux-image* | grep ^i
> $ sudo apt-get remove ${package name from above}
> 
> You just want to be sure to leave your current running kernel and the
> next youngest version (IMO), and the rest can be removed to free up 
> space in /boot.
> 
> dafr
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

I made the mistake one time of removing the active kernel under Ubuntu
so I had to create a DVD recovery disk. With Ubuntu I use the Synaptic
Package manager to uninstall old kernel images since I had a limited
about of space in my boot partition. I have a new laptop that I bought
in October so I have not had to delete any Kernels right now.

Tony

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] boot filled

2017-02-24 Thread Chuck Hast
This works for me:
http://ubuntuhandbook.org/index.php/2016/05/remove-old-kernels-ubuntu-16-04/

On Fri, Feb 24, 2017 at 9:36 AM, David  wrote:

> On 02/24/2017 07:57 AM, Denis Heidtmann wrote:
> > The last time this happened Tomas told me what to do, but I did not write
> > it down and my mind is a sieve.  What is the solution?  There are 9
> > archived images.  How do I safely throw out the older ones?
> >
> > Thanks,
> > -Denis
>
> Howdy.
>
> You don't provide quite enough information, but I can get you close
> enough that you should be able to figure it out from there.
>
> If you have a RH based system, you will want to use yum to remove the
> oldest one or two kernel RPMs. I'd suggest starting with find out your
> current kernel release, and then listing which kernel images are installed:
>
> $ uname -r # so you know what you can't remove
> $ rpm -qa | grep kernel-[2-4]
> $ sudo yum remove ${package name from above}
>
> If you are using a Debian based system, it's similar:
>
> $ uname -r # so you know what you can't remove
> $ dpkg -l linux-image* | grep ^i
> $ sudo apt-get remove ${package name from above}
>
> You just want to be sure to leave your current running kernel and the
> next youngest version (IMO), and the rest can be removed to free up
> space in /boot.
>
> dafr
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



-- 

Chuck Hast  -- KP4DJT --
Glass, five thousand years of history and getting better.
The only container material that the USDA gives blanket approval on.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] boot filled

2017-02-24 Thread David
On 02/24/2017 07:57 AM, Denis Heidtmann wrote:
> The last time this happened Tomas told me what to do, but I did not write
> it down and my mind is a sieve.  What is the solution?  There are 9
> archived images.  How do I safely throw out the older ones?
>
> Thanks,
> -Denis

Howdy.

You don't provide quite enough information, but I can get you close 
enough that you should be able to figure it out from there.

If you have a RH based system, you will want to use yum to remove the 
oldest one or two kernel RPMs. I'd suggest starting with find out your 
current kernel release, and then listing which kernel images are installed:

$ uname -r # so you know what you can't remove
$ rpm -qa | grep kernel-[2-4]
$ sudo yum remove ${package name from above}

If you are using a Debian based system, it's similar:

$ uname -r # so you know what you can't remove
$ dpkg -l linux-image* | grep ^i
$ sudo apt-get remove ${package name from above}

You just want to be sure to leave your current running kernel and the 
next youngest version (IMO), and the rest can be removed to free up 
space in /boot.

dafr
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] boot filled

2017-02-24 Thread c
If you use ubuntu, you could use something like ubuntu-tweak or synaptic to
let you select the kernels in a gui and delete them.

If you are not on ubuntu, or prefer command line you can

get the name of your current kernel
uname -r

list all kernels except what you are currently using
dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r)

remove listed packages
sudo dpkg --purge #NAME GOES HERE#


http://askubuntu.com/questions/2793/how-do-i-remove-old-kernel-versions-to-clean-up-the-boot-menu
https://help.ubuntu.com/community/RemoveOldKernels

Purcell




On Fri, Feb 24, 2017 at 9:57 AM, Denis Heidtmann 
wrote:

> The last time this happened Tomas told me what to do, but I did not write
> it down and my mind is a sieve.  What is the solution?  There are 9
> archived images.  How do I safely throw out the older ones?
>
> Thanks,
> -Denis
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



-- 
Darkness spoons with you.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] boot filled

2017-02-24 Thread Dick Steffens
On 02/24/2017 07:57 AM, Denis Heidtmann wrote:
> The last time this happened Tomas told me what to do, but I did not write
> it down and my mind is a sieve.  What is the solution?  There are 9
> archived images.  How do I safely throw out the older ones?

While I don't have an answer to your question, I do recall that there is 
a way to search for it in the archives. This involves using Google 
Advanced Search to search a "site or domain". I put pdxlinux.org in the 
"site or domain" line, but my search foo probably isn't what you need. I 
tried "linux remove old images from boot" (without quotes), but the 
first page didn't seem like what you are looking for. Maybe your foo 
would work better for you.

-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug