I have been ruing Ubuntu 14.04 LTS for some time and have not changed the grub program not the config since the installation. Periodic updates are done and new keels have been installed by "software updater". I have assumed (incorrectly) that these new keels were moving the head of the line and getting booted. I can't remember if I have ever invoked the grub menu but I suspect never.
I have 100 mb /boot partition. Today during a new keel update by "software updater" a popup arose indicating the partition was getting full. So I looked at the list of keels and decided to delete some of the old ones. It was at this point I discovered I was actually ruing on a very old keel and not any of the many newer ones installed. After some research I discovered I was ruing grub1. I then read https://help.ubuntu.com/community/Grub2/Upgrading and followed it to now use grub2.
I was able to boot OK afterward and the most recent keel was booting. So I decided to test getting the grub2 menu to come up and see the look and list of keels, etc.
this worked fine only when I commented out GRUB_HIDDEN_TIMEOUT="0" in /etc/default/grub. When booting I could access the grub menu as expected.
However, when I ran update-grub it complained about having both GRUB_HIDDEN_TIMEOUT="0" and GRUB_TIMEOUT="10" EVEN THOUGH GRUB_HIDDEN_TIMEOUT was commented out!
So I again researched the Ubuntu grub info and it recommended to edit the /etc/default/grub file and comment out both HIDDEN assignments and add the STYLE item as follows:
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT_STYLE="countdown"
GRUB_TIMEOUT="2"
update-grub now did not complain. Now when I reboot during the time one would see the grub boot screen all I get is a quick error to the effect of "cant find hwmatch" and the default keel is silently loaded. No grub menu ever appears.
I see the /boot/grub/grub.cfg script has several points where it is invoking this "hwmatch" command. But clearly it is not finding it.
I can see a binary file /boot/grub/i386-pc:
-rw-r--r-- 1 root root 47288 Mar 14 23:27 hwmatch.mod
uname -r reports
3.19.0-56-generic
The cpu is Intel® Core™ i5-3320M CPU @ 2.60GHz × 4
and the keel is 64 bit.
So, how do I get grub to work? Why is it not loading this hwmatch.mod command?
thanks
oldunixguy
برچسب:
نویسنده: استخدام کار