When updating whole Ubuntu-Linux OS has been added too.

Asked by Ishwar Sharan

When updating with the Update Manager I find that a complete Ubuntu-Linux OS has been added. There are now three Ubuntu-Linux Maverick operating systems loaded in the computer. This does not seem to affect the functioning of the system but it is taking up space. I am not technical and cannot remove the extra systems myself, so I leave it alone. But I am now afraid to update the system again as another OS may be added to the three already installed. What should I do about this if anything?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
Last query:
Last reply:
Revision history for this message
Best mycae (mycae) said :
#1

There are probably three *kernels* in the system (I assume you are counting the number of unique boot selection items).
https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Kernel_%28software%29

The kernel takes up very little space, comparatively speaking, so I would not worry. The duplication is only in the kernel -- as the kernel contians the device drivers for your system, if there was a problem with a newer kernel after a boot, (say it broke something, like a network driver) you could have simply returned back to the old kernel.

Revision history for this message
Ishwar Sharan (ishwarsharan) said :
#2

Thank for this assurance. There is no problem with the system, so I will leave everything alone. But what about new updates? Can i stop another kernel being added?

Revision history for this message
hub_cap (hub-capem) said :
#3

I solve this in the following manner each time a new kernel is added and I'm sure it works:

From a terminal window

cd /boot/

sudo rm -iv * # confirm the removal of all except the latest configuration, leave memtest86

then, this is the way I update the grub configuration, I'm sure there is a better way, but this works.
assuming you are using GRUB2

sudo apt-get install grub #remove grub-pc

sudo apt-get install grub-pc #remove grub

Revision history for this message
mycae (mycae) said :
#4

If a new update updates your kernel, then this will continue to add to it.

If you are concerned with the number of options being presented, you can remove the old kernels in /boot to change this, though it can be a bit tricky to do so, and getting it wrong can render your system unbootable.

https://help.ubuntu.com/community/Grub2#/etc/default/grub

Revision history for this message
hub_cap (hub-capem) said :
#5

Update to message about updating grub. In lieu of removing grub and reinstalling grub2, do this

sudo update-grub

Revision history for this message
Tom (tom6) said :
#6

Hi :)

The new kernels are a good thing to have. The older ones get pushed down the menu until they disappear some time in the distant future. The idea is that if you get an updated kernel that doesn't work then you can choose a previous one that did work. It doesn't happen very often but it is a theoretical risk.

This is a lot like the Windows "boot to last known good configuration" except that you are given more details. I think the reason is that back in the old days people liked to mess around a lot with their kernel modules and a so a new one might not contain all the modules tweaked in the right way. We don't tweak our kernels often and seldom add extra modules but just in case you do start tinkering this option of reverting to previous kernels is still given.

When you have chosen which kernel you are booting up the rest get ignored. You can delete them but it can cause troubles if you accidentally delete the wrong ones or make some other mistake. I leave them alone.

One way to clear extra space on your hard-drive is to go up to the top taskbar and click on
System - Administration - "Computor Janitor"
but this only 'needs' doing about every month or less. I hardly ever even do this now that i have a decently large hard-drive :)

Good luck and regards from
Tom :)

Revision history for this message
Ishwar Sharan (ishwarsharan) said :
#7

Thank you very much for this clarification, Tom. This helps a lot as I am
not technical and am always afraid I will wreck something. I will leave the
kernels strictly alone and continue updating as usual. Thank you again. - IS

On 6 January 2011 02:49, Tom <email address hidden> wrote:

> Your question #139576 on grub2 in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/grub2/+question/139576
>
> Tom posted a new comment:
> Hi :)
>
> The new kernels are a good thing to have. The older ones get pushed
> down the menu until they disappear some time in the distant future. The
> idea is that if you get an updated kernel that doesn't work then you can
> choose a previous one that did work. It doesn't happen very often but
> it is a theoretical risk.
>
> This is a lot like the Windows "boot to last known good configuration"
> except that you are given more details. I think the reason is that back
> in the old days people liked to mess around a lot with their kernel
> modules and a so a new one might not contain all the modules tweaked in
> the right way. We don't tweak our kernels often and seldom add extra
> modules but just in case you do start tinkering this option of reverting
> to previous kernels is still given.
>
> When you have chosen which kernel you are booting up the rest get
> ignored. You can delete them but it can cause troubles if you
> accidentally delete the wrong ones or make some other mistake. I leave
> them alone.
>
> One way to clear extra space on your hard-drive is to go up to the top
> taskbar and click on
> System - Administration - "Computor Janitor"
> but this only 'needs' doing about every month or less. I hardly ever even
> do this now that i have a decently large hard-drive :)
>
> Good luck and regards from
> Tom :)
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Tom (tom6) said :
#8

Hi :)

All good :) Thanks :)
Err, when you get an email from Launchpad and want to reply please click on the link so that you get to the right thread in Launchpad & scroll down to the bottom. This way you see everything that people have said. When you just reply to the email we sent you it gets very confusing because all the bit we sent you gets copied back to us and therefore appears at least twice. It's annoying and Launchpad really 'should' have some way of cutting the previous post off the end of the email but this forum is not that sophisticated!

Computer Janitor is very useful and worth using.

One of the advantages with linux is that it is a LOT more robust. You can do an amazing amount of damage without causing problems. One way to recover from issues that seem really serious is from the boot-menu. Instead of choosing the 1st Ubuntu option choose the 2nd one or any of the ones that has "recovery mode" near the end of the line. This gets you to another menu with the amazingly helpful "Fix broken packages". I tend to run through a few of those options about 1 per month just to make sure everything stays on-track.

Regards from
Tom :)

Revision history for this message
Ishwar Sharan (ishwarsharan) said :
#9

Yes, understood. Thank you again for your help, Tom. This issue is now closed. - IS

Revision history for this message
Tom (tom6) said :
#10

Brilliant! Nicely done and congrats :) Welcome to linux land, especially the Ubuntu corner of it :)
Regards from
Tom :)