FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 04-26-2012, 09:00 AM
Colin Law
 
Default Removing old kernels that are not actually installed

I know how to remove old kernels by finding them in synaptic an
uninstalling them but I have a machine that has been through numerous
upgrades over the years and seems to have ended up with a number of
kernels in /boot that are found by update-grub but according to
synaptic are not installed. For example:

~$ ls /boot/*2.6.27*
/boot/abi-2.6.27-11-generic /boot/System.map-2.6.27-11-generic
/boot/config-2.6.27-11-generic /boot/vmcoreinfo-2.6.27-11-generic
/boot/initrd.img-2.6.27-11-generic /boot/vmlinuz-2.6.27-11-generic

Can I just remove all these files?

Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 04-26-2012, 09:21 PM
NoOp
 
Default Removing old kernels that are not actually installed

On 04/26/2012 02:00 AM, Colin Law wrote:
> I know how to remove old kernels by finding them in synaptic an
> uninstalling them but I have a machine that has been through numerous
> upgrades over the years and seems to have ended up with a number of
> kernels in /boot that are found by update-grub but according to
> synaptic are not installed. For example:
>
> ~$ ls /boot/*2.6.27*
> /boot/abi-2.6.27-11-generic /boot/System.map-2.6.27-11-generic
> /boot/config-2.6.27-11-generic /boot/vmcoreinfo-2.6.27-11-generic
> /boot/initrd.img-2.6.27-11-generic /boot/vmlinuz-2.6.27-11-generic
>
> Can I just remove all these files?
>
> Colin
>

Yes - as long as you are no longer using 2.6.27-*


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 04-26-2012, 09:32 PM
William Scott Lockwood III
 
Default Removing old kernels that are not actually installed

On Thu, Apr 26, 2012 at 4:21 PM, NoOp <glgxg@sbcglobal.net> wrote:
> On 04/26/2012 02:00 AM, Colin Law wrote:
>> I know how to remove old kernels by finding them in synaptic an
>> uninstalling them but I have a machine that has been through numerous
>> upgrades over the years and seems to have ended up with a number of
>> kernels in /boot that are found by update-grub but according to
>> synaptic are not installed. *For example:
>>
>> ~$ ls /boot/*2.6.27*
>> /boot/abi-2.6.27-11-generic * * * * /boot/System.map-2.6.27-11-generic
>> /boot/config-2.6.27-11-generic * * */boot/vmcoreinfo-2.6.27-11-generic
>> /boot/initrd.img-2.6.27-11-generic */boot/vmlinuz-2.6.27-11-generic
>>
>> Can I just remove all these files?
>>
>> Colin
>>
>
> Yes - as long as you are no longer using 2.6.27-*

The proper way to remove them is better of course - use apt-get or
aptitude to remove the packages that installed them.

Hint: dpkg -l | grep linux

--
Regards,
W. Scott Lockwood

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 04-26-2012, 11:31 PM
NoOp
 
Default Removing old kernels that are not actually installed

On 04/26/2012 02:32 PM, William Scott Lockwood III wrote:
> On Thu, Apr 26, 2012 at 4:21 PM, NoOp <glgxg@sbcglobal.net> wrote:
>> On 04/26/2012 02:00 AM, Colin Law wrote:
>>> I know how to remove old kernels by finding them in synaptic an
>>> uninstalling them but I have a machine that has been through numerous
>>> upgrades over the years and seems to have ended up with a number of
>>> kernels in /boot that are found by update-grub but according to
>>> synaptic are not installed. For example:
>>>
>>> ~$ ls /boot/*2.6.27*
>>> /boot/abi-2.6.27-11-generic /boot/System.map-2.6.27-11-generic
>>> /boot/config-2.6.27-11-generic /boot/vmcoreinfo-2.6.27-11-generic
>>> /boot/initrd.img-2.6.27-11-generic /boot/vmlinuz-2.6.27-11-generic
>>>
>>> Can I just remove all these files?
>>>
>>> Colin
>>>
>>
>> Yes - as long as you are no longer using 2.6.27-*
>
> The proper way to remove them is better of course - use apt-get or
> aptitude to remove the packages that installed them.

"upgrades over the years and seems to have ended up with a number of
kernels in /boot that are found by update-grub but according to
synaptic are not installed."

If they are not shown as installed in Synaptic, then I doubt that they
can be removed by apt-get or aptitude.

>
> Hint: dpkg -l | grep linux
>

It's probably helpful to point out that installed packages are preceded
by 'ii'.



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 04-27-2012, 07:47 AM
Colin Law
 
Default Removing old kernels that are not actually installed

On 26 April 2012 22:32, William Scott Lockwood III <vladinator@gmail.com> wrote:
> On Thu, Apr 26, 2012 at 4:21 PM, NoOp <glgxg@sbcglobal.net> wrote:
>> On 04/26/2012 02:00 AM, Colin Law wrote:
>>> I know how to remove old kernels by finding them in synaptic an
>>> uninstalling them but I have a machine that has been through numerous
>>> upgrades over the years and seems to have ended up with a number of
>>> kernels in /boot that are found by update-grub but according to
>>> synaptic are not installed. *For example:
>>>
>>> ~$ ls /boot/*2.6.27*
>>> /boot/abi-2.6.27-11-generic * * * * /boot/System.map-2.6.27-11-generic
>>> /boot/config-2.6.27-11-generic * * */boot/vmcoreinfo-2.6.27-11-generic
>>> /boot/initrd.img-2.6.27-11-generic */boot/vmlinuz-2.6.27-11-generic
>>>
>>> Can I just remove all these files?
>>>
>>> Colin
>>>
>>
>> Yes - as long as you are no longer using 2.6.27-*
>
> The proper way to remove them is better of course - use apt-get or
> aptitude to remove the packages that installed them.
>
> Hint: dpkg -l | grep linux

As I can see they are not "installed". dpkg -l | grep linux shows
only 2.6.35-25 and 2.6.35-22 but in /boot I have various versions of
2.6.27, 2.6.28 and 2.6.31. I can only guess that for some reason
upgrading has not removed the files over the years.

It seems likely that I can just delete them.

Thanks all for the help.

Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 04-27-2012, 08:52 AM
"Murat D. Kadirov"
 
Default Removing old kernels that are not actually installed

On 27.04.2012 13:47, Colin Law wrote:
> On 26 April 2012 22:32, William Scott Lockwood III <vladinator@gmail.com> wrote:
>> On Thu, Apr 26, 2012 at 4:21 PM, NoOp <glgxg@sbcglobal.net> wrote:
>>> On 04/26/2012 02:00 AM, Colin Law wrote:
>>>> I know how to remove old kernels by finding them in synaptic an
>>>> uninstalling them but I have a machine that has been through numerous
>>>> upgrades over the years and seems to have ended up with a number of
>>>> kernels in /boot that are found by update-grub but according to
>>>> synaptic are not installed. For example:
>>>>
>>>> ~$ ls /boot/*2.6.27*
>>>> /boot/abi-2.6.27-11-generic /boot/System.map-2.6.27-11-generic
>>>> /boot/config-2.6.27-11-generic /boot/vmcoreinfo-2.6.27-11-generic
>>>> /boot/initrd.img-2.6.27-11-generic /boot/vmlinuz-2.6.27-11-generic
>>>>
>>>> Can I just remove all these files?
>>>>
>>>> Colin
>>>>
>>> Yes - as long as you are no longer using 2.6.27-*
>> The proper way to remove them is better of course - use apt-get or
>> aptitude to remove the packages that installed them.
>>
>> Hint: dpkg -l | grep linux
> As I can see they are not "installed". dpkg -l | grep linux shows
> only 2.6.35-25 and 2.6.35-22 but in /boot I have various versions of
> 2.6.27, 2.6.28 and 2.6.31. I can only guess that for some reason
> upgrading has not removed the files over the years.
>
> It seems likely that I can just delete them.
>
> Thanks all for the help.
>
> Colin
>
There are also modules for them in /lib/modules

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 04-27-2012, 09:06 AM
Colin Law
 
Default Removing old kernels that are not actually installed

On 27 April 2012 09:52, Murat D. Kadirov <md.kadirov@gmail.com> wrote:
> On 27.04.2012 13:47, Colin Law wrote:
>> On 26 April 2012 22:32, William Scott Lockwood III <vladinator@gmail.com> wrote:
>>> On Thu, Apr 26, 2012 at 4:21 PM, NoOp <glgxg@sbcglobal.net> wrote:
>>>> On 04/26/2012 02:00 AM, Colin Law wrote:
>>>>> I know how to remove old kernels by finding them in synaptic an
>>>>> uninstalling them but I have a machine that has been through numerous
>>>>> upgrades over the years and seems to have ended up with a number of
>>>>> kernels in /boot that are found by update-grub but according to
>>>>> synaptic are not installed. *For example:
>>>>>
>>>>> ~$ ls /boot/*2.6.27*
>>>>> /boot/abi-2.6.27-11-generic * * * * /boot/System.map-2.6.27-11-generic
>>>>> /boot/config-2.6.27-11-generic * * */boot/vmcoreinfo-2.6.27-11-generic
>>>>> /boot/initrd.img-2.6.27-11-generic */boot/vmlinuz-2.6.27-11-generic
>>>>>
>>>>> Can I just remove all these files?
>>>>>
>>>>> Colin
>>>>>
>>>> Yes - as long as you are no longer using 2.6.27-*
>>> The proper way to remove them is better of course - use apt-get or
>>> aptitude to remove the packages that installed them.
>>>
>>> Hint: dpkg -l | grep linux
>> As I can see they are not "installed". *dpkg -l | grep linux shows
>> only 2.6.35-25 and 2.6.35-22 but in /boot I have various versions of
>> 2.6.27, 2.6.28 and 2.6.31. *I can only guess that for some reason
>> upgrading has not removed the files over the years.
>>
>> It seems likely that I can just delete them.
>>
>> Thanks all for the help.
>>
>> Colin
>>
> There are also modules for them in /lib/modules

In fact there are only modules for the installed kernels there. So
for some reason those were uninstalled but not the stuff in /boot.

Thanks

Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 04-27-2012, 09:14 AM
"Murat D. Kadirov"
 
Default Removing old kernels that are not actually installed

On 27.04.2012 15:06, Colin Law wrote:
> On 27 April 2012 09:52, Murat D. Kadirov <md.kadirov@gmail.com> wrote:
>> On 27.04.2012 13:47, Colin Law wrote:
>>> On 26 April 2012 22:32, William Scott Lockwood III <vladinator@gmail.com> wrote:
>>>> On Thu, Apr 26, 2012 at 4:21 PM, NoOp <glgxg@sbcglobal.net> wrote:
>>>>> On 04/26/2012 02:00 AM, Colin Law wrote:
>>>>>> I know how to remove old kernels by finding them in synaptic an
>>>>>> uninstalling them but I have a machine that has been through numerous
>>>>>> upgrades over the years and seems to have ended up with a number of
>>>>>> kernels in /boot that are found by update-grub but according to
>>>>>> synaptic are not installed. For example:
>>>>>>
>>>>>> ~$ ls /boot/*2.6.27*
>>>>>> /boot/abi-2.6.27-11-generic /boot/System.map-2.6.27-11-generic
>>>>>> /boot/config-2.6.27-11-generic /boot/vmcoreinfo-2.6.27-11-generic
>>>>>> /boot/initrd.img-2.6.27-11-generic /boot/vmlinuz-2.6.27-11-generic
>>>>>>
>>>>>> Can I just remove all these files?
>>>>>>
>>>>>> Colin
>>>>>>
>>>>> Yes - as long as you are no longer using 2.6.27-*
>>>> The proper way to remove them is better of course - use apt-get or
>>>> aptitude to remove the packages that installed them.
>>>>
>>>> Hint: dpkg -l | grep linux
>>> As I can see they are not "installed". dpkg -l | grep linux shows
>>> only 2.6.35-25 and 2.6.35-22 but in /boot I have various versions of
>>> 2.6.27, 2.6.28 and 2.6.31. I can only guess that for some reason
>>> upgrading has not removed the files over the years.
>>>
>>> It seems likely that I can just delete them.
>>>
>>> Thanks all for the help.
>>>
>>> Colin
>>>
>> There are also modules for them in /lib/modules
> In fact there are only modules for the installed kernels there. So
> for some reason those were uninstalled but not the stuff in /boot.
>
> Thanks
>
> Colin
murat@mbox:/lib/modules$ uname -r
3.0.0-17-generic

murat@mbox:/lib/modules$ du -hs 2.6.38-13-generic/
105M 2.6.38-13-generic/

murat@mbox:/lib/modules$ du -hs 3.0.0-14-generic/
108M 3.0.0-14-generic/

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 04-27-2012, 09:20 AM
Colin Law
 
Default Removing old kernels that are not actually installed

On 27 April 2012 10:14, Murat D. Kadirov <md.kadirov@gmail.com> wrote:
> On 27.04.2012 15:06, Colin Law wrote:
>> On 27 April 2012 09:52, Murat D. Kadirov <md.kadirov@gmail.com> wrote:
>>> On 27.04.2012 13:47, Colin Law wrote:
>>>> On 26 April 2012 22:32, William Scott Lockwood III <vladinator@gmail.com> wrote:
>>>>> On Thu, Apr 26, 2012 at 4:21 PM, NoOp <glgxg@sbcglobal.net> wrote:
>>>>>> On 04/26/2012 02:00 AM, Colin Law wrote:
>>>>>>> I know how to remove old kernels by finding them in synaptic an
>>>>>>> uninstalling them but I have a machine that has been through numerous
>>>>>>> upgrades over the years and seems to have ended up with a number of
>>>>>>> kernels in /boot that are found by update-grub but according to
>>>>>>> synaptic are not installed. *For example:
>>>>>>>
>>>>>>> ~$ ls /boot/*2.6.27*
>>>>>>> /boot/abi-2.6.27-11-generic * * * * /boot/System.map-2.6.27-11-generic
>>>>>>> /boot/config-2.6.27-11-generic * * */boot/vmcoreinfo-2.6.27-11-generic
>>>>>>> /boot/initrd.img-2.6.27-11-generic */boot/vmlinuz-2.6.27-11-generic
>>>>>>>
>>>>>>> Can I just remove all these files?
>>>>>>>
>>>>>>> Colin
>>>>>>>
>>>>>> Yes - as long as you are no longer using 2.6.27-*
>>>>> The proper way to remove them is better of course - use apt-get or
>>>>> aptitude to remove the packages that installed them.
>>>>>
>>>>> Hint: dpkg -l | grep linux
>>>> As I can see they are not "installed". *dpkg -l | grep linux shows
>>>> only 2.6.35-25 and 2.6.35-22 but in /boot I have various versions of
>>>> 2.6.27, 2.6.28 and 2.6.31. *I can only guess that for some reason
>>>> upgrading has not removed the files over the years.
>>>>
>>>> It seems likely that I can just delete them.
>>>>
>>>> Thanks all for the help.
>>>>
>>>> Colin
>>>>
>>> There are also modules for them in /lib/modules
>> In fact there are only modules for the installed kernels there. *So
>> for some reason those were uninstalled but not the stuff in /boot.
>>
>> Thanks
>>
>> Colin
> murat@mbox:/lib/modules$ uname -r
> 3.0.0-17-generic
>
> murat@mbox:/lib/modules$ du -hs 2.6.38-13-generic/
> 105M * *2.6.38-13-generic/
>
> murat@mbox:/lib/modules$ du -hs 3.0.0-14-generic/
> 108M * *3.0.0-14-generic/

Sorry, I am not sure why you have posted the above

Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org