boot menu

Robert Holtzman holtzm at cox.net
Sun Mar 31 18:29:10 UTC 2013


On Sun, Mar 31, 2013 at 05:23:36PM +1100, Basil Chupin wrote:
> On 31/03/13 16:06, Robert Holtzman wrote:
> >On Sat, Mar 30, 2013 at 08:02:25PM -0400, Tom H wrote:
> >>On Sat, Mar 30, 2013 at 7:56 PM, Robert Holtzman <holtzm at cox.net> wrote:
> >>>Running Ubuntu 12.04 among other distros. I had kernels all the way back
> >>>to 3.2.0-23 in /boot. Ran "apt-get remove --purge" on all but the
> >>>current and the previous two kernels. I watched grub.cfg being created
> >>>and it showed the three correct kernels and the other distros. When I
> >>>rebooted the menu showed all the kernels I had just removed. Update-grub
> >>>showed the correct number of kernels.
> >>Another distro must be controlling grub.
> >Possibly but if so how come grub.conf was (supposedly) created that
> >showed the correct info?
> 
> Sorry, but this is a "no brainer".
> The grub.cfg (and not grub/conf which you state) 

Sorry. I was typing this from memory late at night.

> was created by the
> version of the oS you *just* installed.

This occurred to me when I was in bed last night. I felt like opening a
vein in embarrassment.

> 
> But the grub.cfg of the oS which is *in* *control* of the boot menu
> from which you select which oS you want booted has *NOT* been
> changed to take into account the changes you made to the list of
> kernels.
> 
> I don't know which oS has the control but what you need to do is to
> go into *that* oS and run (assuming that it is a Linux distro and
> using grub2)-
> 
> sudo grub2-mkconfig -o /boot/grub2/grib.cfg

First thing this morning I booted the controlling OS (Mint)
and ran sudo update-grub which took care of the problem.

My only question is since update-grub worked, where did your
grub2-mkconfig command come from? The only time I ran into that was when 
I tried out Fedora 17. Is that peculiar to RPM based distros? 

> which will then pickup the info in *this*, the controlling oS, and
> also then pickup the info in the altered grub.cfg in 12.04 (which
> now doesn't have all the redundant kernels listed).

Thanks for the reply. 

-- 
Bob Holtzman
If you think you're getting free lunch, 
check the price of the beer.
Key ID: 8D549279
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130331/3ae473e3/attachment.sig>


More information about the ubuntu-users mailing list