Linux Lite Forums

Hardware - Support => Start up and Shutdown => Topic started by: phil66 on June 03, 2017, 04:07:19 PM

Title: Modifying boot menu
Post by: phil66 on June 03, 2017, 04:07:19 PM
Need to change start boot menu from default to Start Linux Lite. /etc/default/grub shows grub default=saved grub default=0 changed to 1 no help
Title: Re: Modifying boot menu
Post by: supergamer on June 03, 2017, 05:21:33 PM
You can try this:


https://launchpad.net/~danielrichter2007/+archive/ubuntu/grub-customizer (https://launchpad.net/~danielrichter2007/+archive/ubuntu/grub-customizer)


manually:


Code: [Select]
sudo leafpad /etc/issue


sudo leafpad /etc/lsb-release


sudo update-grub



Title: Re: Modifying boot menu
Post by: gold_finger on June 03, 2017, 07:19:55 PM
Post back with output from both of these commands:
Code: [Select]
cat /etc/grub/default
cat /boot/grub/grub.cfg | grep "menuentry '"
NOTE:  In last command there is a space between menuentry and '.


EDIT:
First command above is mis-typed.  It should be cat /etc/default/grub.
Title: Re: Modifying boot menu
Post by: phil66 on June 03, 2017, 08:55:35 PM
cat /etc/grub/default; no such file or directory  cat /boot/grub/grub.cfg | grep : menuentry '" no such file or directory  The boot menu is labeled unetbootin???
Title: Re: Modifying boot menu
Post by: gold_finger on June 03, 2017, 10:07:48 PM
Sorry, I mis-typed the first command.  It should be:
Code: [Select]
cat /etc/default/grub


The second command is correct as given in my post, but you entered grep : menuentry '" at the end.  That's not correct.  Just copy/paste the command into the terminal so it doesn't get mis-typed.  (EDIT: if you are using a UNetBootin USB stick, forget about second command -- it won't work.)


Quote from: phil66
The boot menu is labeled unetbootin???
Are you booting from a live USB stick or an installed system on hard drive?
Title: Re: Modifying boot menu
Post by: gold_finger on June 03, 2017, 11:07:09 PM
Just found thread from a couple of weeks ago (https://www.linuxliteos.com/forums/installing-linux-lite/installing-3-4-to-usb-flash-drive/msg32183/#msg32183) where you made a UNetbootin USB of LL3.4, so I'm assuming that's what you're talking about here -- correct?  (When posting for support make sure you let people know this, otherwise we'll automatically assume you're talking about a normal hard drive installed system.)


This command will work on USB, so post back with the output:
Code: [Select]
cat /etc/default/grub

Second command above will not work, so forget about that one.
Title: Re: Modifying boot menu
Post by: phil66 on June 04, 2017, 03:34:23 PM
ray@Ray-Kudu-Pro:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="Ubuntu"
GRUB_HIDDEN_TIMEOUT=
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_GFXPAYLOAD_LINUX=None
Title: Re: Modifying boot menu
Post by: phil66 on June 04, 2017, 08:09:19 PM
GRUB_DEFAULT=saved
#GRUB_DEFAULT=0
GRUB_SAVEDEFAULT=true
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR='Linux Lite'
#GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_DISTRIBUTOR=`lsb_release -d 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet"
GRUB_CMDLINE_LINU
Title: Re: Modifying boot menu
Post by: gold_finger on June 04, 2017, 10:00:30 PM
I'm assuming that your post above this one is correct for LL USB and prior post was for something else (Ubuntu) -- right?


Also, I'm guessing that somewhere along the line you changed that grub file to read as it does now because I don't think that is what standard UNetBootin USB boot menu would look like.


I don't have an LL UNetBootin USB, so I'm going to guess at possible fixes.


Boot USB stick and open the file with your text editor (leafpad) as root with this command:
Code: [Select]
gksu leafpad /etc/default/grub

Delete the following lines in the file:
Code: [Select]
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true


Uncomment the GRUB_DEFAULT=0 line.  In other words, remove the "#" at beginning of that line so it reads as:
Code: [Select]
GRUB_DEFAULT=0

I'm not sure if these lines are correct, so for now leave them as-is.  (Do you remember changing anything on these lines?  Did you maybe add the first line and comment out one or both of the other two?)
Code: [Select]
GRUB_DISTRIBUTOR='Linux Lite'
#GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_DISTRIBUTOR=`lsb_release -d 2> /dev/null || echo Debian`


The last line in post looks like you didn't copy the whole thing.  Make sure it reads as:
Code: [Select]
GRUB_CMDLINE_LINUX=""

Save file, close text editor and terminal, then reboot.  Hopefully that works.


P.s.  I'm still not entirely clear on what the problem is/was.  The "Default" boot entry in UNetBootin is to boot whatever Linux distro you made on it -- in this case LL.  Was it doing something different and is that why you made changes to the grub file?  Did you maybe boot Windows from the UNetBootin menu and now it default to booting that?  If so, that is because of the two lines I had you delete above.  Deleting them should fix problem, assuming the middle three lines are correct as they are now.
Title: Re: Modifying boot menu
Post by: phil66 on June 07, 2017, 03:43:09 PM
I commented the grub default=save and the grub save default=true.I also uncommented the grub default=0 line.The boot is going to the start linux desktop as wanted.Now to set up programs and enjoy Linux-lite. Thanks for the help!!