Linux Lite Forums

Software - Support => Other => Topic started by: dodo on April 23, 2014, 04:51:22 AM

Title: How to clean up GRUB?
Post by: dodo on April 23, 2014, 04:51:22 AM
My GRUB is messy, especially after installing PAE kernel, now i have to go to "Previous Versions" submenu and boot LL from there.
Is there any way to remove all these Memtests, Recovery Modes and such to keep it nice and clean.
Since i have XP Dual boot, i would like my GRUB to look like this:

Linux Lite
Windows XP

pls point me in right direction  :)
Title: Re: How to clean up GRUB?
Post by: N4RPS on April 23, 2014, 07:10:13 PM
Hello!

Point you in the right direction? Sure!

This sounds like a job for GRUB Customizer. More info here:

http://ubuntuforums.org/showthread.php?t=1664134

American TV shows are aired more or less worldwide, but since you're from Croatia, just in case you didn't know, the following phrase comes from the 1960s US TV series 'Lost In Space'...

DANGER, Will Robinson!   DANGER, Will Robinson!   DANGER, Will Robinson!  DANGER, Will Robinson!   DANGER, Will Robinson!   DANGER, Will Robinson!   DANGER, Will Robinson!   DANGER, Will Robinson!


The GRUB boot loader is EXTREMELY easy to goof up. If you DO, you will NOT be able to boot to ANYTHING on your hard drive!

Therefore, BEFORE you play with it, go here:

https://help.ubuntu.com/community/Boot-Repair

In MOST cases, Boot Repair will fix any fatal GRUB boo-boos you happen to make. Have a LiveCD ready to boot from, also, just in case.

To install GRUB Customizer, in a terminal window [CTRL=ALT-T], type this:

Code: [Select]
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

You can even specify a background image for GRUB:

Code: [Select]
sudo apt-get install grub2-splashimages
More info on THAT HERE:

http://linuxers.org/howto/how-change-grub2-splash-images

Enjoy, but BE CAREFUL!!!

73 DE N4RPS
Rob
Title: Re: How to clean up GRUB?
Post by: dodo on April 24, 2014, 03:47:10 AM
American TV shows are aired more or less worldwide, but since you're from Croatia, just in case you didn't know, the following phrase comes from the 1960s US TV series 'Lost In Space'...

DANGER, Will Robinson!   DANGER, Will Robinson!   DANGER, Will Robinson!  DANGER, Will Robinson!   DANGER, Will Robinson!   DANGER, Will Robinson!   DANGER, Will Robinson!   DANGER, Will Robinson!

Ty for instructions, i didn't watch "Lost in Space"
Will try GRUB customizer and hopefully i won't get stuck in time-space continuum.
;D
Title: Re: How to clean up GRUB?
Post by: dodo on April 24, 2014, 10:47:36 AM
Hm, after running these commands in terminal, looks like there is some kind of error

i copied:
Code: [Select]
kucni-kompjuter@KucniKompjuter-Linux:~$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer
[sudo] password for kucni-kompjuter:
You are about to add the following PPA to your system:
 This PPA contains the latest release of Grub Customizer.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
 More info: https://launchpad.net/~danielrichter2007/+archive/grub-customizer
Press [ENTER] to continue or ctrl-c to cancel adding it
sudo apt-get update
gpg: keyring `/tmp/tmpJt7VKD/secring.gpg' created
gpg: keyring `/tmp/tmpJt7VKD/pubring.gpg' created
gpg: requesting key 3F055C03 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpJt7VKD/trustdb.gpg: trustdb created
gpg: key 3F055C03: public key "Launchpad PPA for Daniel Richter" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
kucni-kompjuter@KucniKompjuter-Linux:~$ sudo apt-get install grub-customizer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package grub-customizer
kucni-kompjuter@KucniKompjuter-Linux:~$

excuse my newbieness  ::)
Title: Re: How to clean up GRUB?
Post by: gold_finger on April 24, 2014, 02:18:32 PM
Open terminal and enter only these two again:

Code: [Select]
sudo apt-get update
Code: [Select]
sudo apt-get install grub-customizer
From your output in last post, after this:
Code: [Select]
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
 More info: https://launchpad.net/~danielrichter2007/+archive/grub-customizer
Press [ENTER] to continue or ctrl-c to cancel adding it

You were supposed to just hit enter to add the ppa.  It appears as though that is when you typed sudo apt-get update and then hit enter.  If that's what you did, then it probably just registered the "enter", but not the update command.  So, when you tried to install, the package lists were not updated to reflect the addition of the ppa source.  That's my guess at least based on what the output appears to show.
Title: Re: How to clean up GRUB?
Post by: dodo on April 24, 2014, 05:27:37 PM

Thank you gold finger, that worked and i learned something new: -> (read lines in terminal, dont just put commands and keep pressing enter  ???)
Now, GRUB Customizer is installed, i will tinker with it tomorrow and post results.
Hopefully i wont blow something up.
 ;)
Title: Re: How to clean up GRUB?
Post by: dodo on April 25, 2014, 04:07:38 AM
GRUB customizer worked fine.
I have advice for anyone who will use it: save after each step, for example if u delete one entry-save, move one entry up- save, add submenu-save and so on..., dont just make all the changes at once and save em then because i did that and there was some kind of error so i had to go all over again.

Mission accomplished. grub edited successfuly
 8)