Unable to change the grub
I am a total Linux noob, so it is probably something simple that I'm missing but I have exhausted all search options and nothing has worked. And possibly I am posting this in the wrong place, so my apologies if that is the case.
I did a clean install of Kodibuntu (Lubuntu with Kodi) and updated it as outlined by the wiki (sudo apt-get update && sudo apt-get upgrade). So the machine is now running Lubuntu 14.04 up to date as of 2016-08-17. The issue I am having is with the Lubuntu shell. I am unable to get the grub at startup to disappear. It has been there since installation and is persistent after two clean installs. The grub being there is an issue as the machine running it is controlled via touchscreen and remote, so no option to select anything in the grub, and the grub never times out. When I boot I see the following options without a timeout counter: Code:
[ ] Ubuntu Code:
# If you change this file, run 'update-grub' afterwards to update The content of "grub.cfg": Code:
# Also, setting "GRUB_HIDDEN_TIMEOUT_QUIET=false" and "GRUB_TIMEOUT=1" has no effect. Does anybody know how I could get the grub to timeout (or better yet, not to come up at all)? |
Just to cover all bases here: did you info -f grub -n 'Simple configuration' ??
|
This post took some time before it was up, I stopped checking four hours after I posted it. Since then I actually found an answer.
Installing grub again made it adhere to what is in grub.cfg, but it did remove the splashscreen that was there before (and I haven't found a way of getting it back, or implementing a new one). Installing again was done with: Code:
sudo grub-install /dev/sda |
Quote:
I wonder the recent trend of hastily upgrading and updating. This probably came with the Microsoft Mentality brought in by migrants from that world. Such an attitude was not decades ago in Gnu/Linux community, save on truly serious security issues where the upgraders talk first about the library and dependency issues, but not in a simple *click right away* action. Just a reminder from those who came from Redmond mental conditioning machine: There is no need to update or upgrade, unless it is truly necessary. Quote:
Do this: Code:
sudo vi /etc/default/grub <or you can use whatever text editor you have there> GRUB_TIMEOUT=20 then run the update-grub to update /boot/grub/grub.cfg. Code:
sudo /usr/sbin/update-grub However, should your distro need run mkconfig then by all means run it first: Be sure first where the grub.cfg file is located and make it your target -o file, example: Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg Hope that helps. Good luck and enjoy. m.m. |
Quote:
Quote:
It was clear that I could make changes to /etc/default/grub and then run "sudo update-grub" to see /boot/grub/grub.cfg change accordingly. However, these changes have no effect on the grub displayed during boot. Even after installing grub again, I am unable to make any changes to the grub via this route. |
Can you run post us first what is seen by grub inside after running */usr/sbin/grub-probe*?
|
Quote:
|
It took some time for me to get around to working on this issue.
I must have misunderstood what you wanted me to try, because running */usr/sbin/grub-probe* resulted in "No path or device is specified.". So I looked online as what would normally be commands for grub-probe to get any results and I did the following: *grub-probe -t device /boot/grub* results in "/dev/sda1" and *grub-probe --target=drive --device /dev/sda1* results in "warning: disk does not exist" But I have no idea if this helps at all. Note that I have a separate boot partition. |
Make sure to install grub to the mbr with the following procedure:
step 1 - confirm the device you want to install to with Code:
sudo fdisk -l Then, you want to install grub with Code:
sudo grub-install /dev/sda So I'd recommend doing a more comprehensive procedure: 1st - check /etc/fstab to make sure the entry for /boot is sane. It should be some normal file system probably referencing a UUID but also with a comment indicating which partition it was when originally installed (something like /dev/sda5) 2nd - assuming /boot seems sane, update /boot/grub/grub.cfg with: Code:
sudo update-grub 3rd - Check the contents of /boot/grub/grub.cfg to see if it looks sane. There should hopefully be one or more menuentry for your Linux OS. Look at the top one. There should be a line saying something like "set root='hd0,msdos4'", where 0=sda, 4=sda5 (add one to both numbers). Since you have a separate /boot partition, the linux and initrd lines should look something like: echo 'Loading Linux ...' linux /vmlinuz-3.16.0-4-646-pae root=UUID=5345325342634 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-3.16.0-4-686-pae 4th - If this looks sane, then install grub to the disk's main boot record (mbr) with: Code:
sudo grub-install /dev/sda |
Quote:
Maybe the reason it looks so strange/old to you is that this is a LUBUNTU v14.04 install? I tested the grub with grub emulator (grub-emu). I don't remember what the results were exactly for the grub I posted in the top post, but it works with the following. I used the GUI of grub customizer to update the grub to include a custom menu entry and it shows up in the emulated grub as expected. grub Code:
# If you change this file, run 'update-grub' afterwards to update Code:
# Code:
Sector 32 is already use by the program 'FlexNet' avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track. Installation finished. No error reported. |
|
All times are GMT -5. The time now is 04:47 PM. |