alt during boot up = GRUB SOLVED!

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

alt during boot up = GRUB SOLVED!

Postby Winchester on Sun Apr 19, 2009 4:05 pm

is there a way to modify the GRUB to only come up if you push a button (alt) during boot up? In my university's Mac Lab the macs are dual boot mac/windows and you push option to bring up the selection and Mac is the default boot.
Last edited by Winchester on Mon Apr 20, 2009 6:42 pm, edited 1 time in total.
Winchester
Level 1
Level 1
 
Posts: 18
Joined: Thu Apr 16, 2009 9:00 pm

Linux Mint is funded by ads and donations.
 

Re: alt during boot up = GRUB

Postby 67GTA on Sun Apr 19, 2009 6:33 pm

You can read /boot/grub/menu.lst for options. You can set the default OS to boot, and set grub to be hidden unless you hit ESC. If the grub file is too confusing, post back and I'll help you sort it out.
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: alt during boot up = GRUB

Postby Winchester on Sun Apr 19, 2009 6:56 pm

how do I go about doing that? I looked over the file but I didn't really see anything about hiding or booting default.
Winchester
Level 1
Level 1
 
Posts: 18
Joined: Thu Apr 16, 2009 9:00 pm

Re: alt during boot up = GRUB

Postby 67GTA on Sun Apr 19, 2009 7:14 pm

It would probably be easier to go by line number. There is a lot of stuff in that file. Open gedit, go to edit, preferences, and select "Display Line Numbers". Then open a terminal and run
Code: Select all
sudo gedit /boot/grub/menu.lst
This will open the menu.lst file as administrator so we can edit it. Line 14 is where you put the default OS number. Grub starts counting at zero instead of 1, so count all of the menu entries at the bottom of the page (first entry is zero) and then change "0" on line 14 to the number you want to default to. Line 19 is the amount of seconds before the default OS boots. This will determine how many seconds you have to hit ESC to see the grub menu. Line 23 is where you set the hidden option. Remove the comment (#)to have it hidden. Lines with a comment (#) are not read. Save the file and reboot. If you choose to hide the grub menu, it will show a counter to countdown the seconds set at line 19 before the default OS boots. You can play with the settings, but you shouldn't change any of the menu entries unless you know what you are doing.
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: alt during boot up = GRUB

Postby Winchester on Sun Apr 19, 2009 7:47 pm

My line 23 is a blank line... what is some of the text that appears there?
Winchester
Level 1
Level 1
 
Posts: 18
Joined: Thu Apr 16, 2009 9:00 pm

Re: alt during boot up = GRUB

Postby 67GTA on Sun Apr 19, 2009 7:58 pm

Mint may have changed their grub file. I'm on Ubuntu right now. Here is my first 23 lines.

Code: Select all
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default      0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: alt during boot up = GRUB

Postby Winchester on Sun Apr 19, 2009 8:02 pm

ok, they removed the hidden option so I copy/pasted it in and it works just fine now.
Thanks for all the help!
Winchester
Level 1
Level 1
 
Posts: 18
Joined: Thu Apr 16, 2009 9:00 pm

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: austin.texas, Jlee86 and 14 guests