LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2007, 12:51 PM   #1
Nephersir7
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Rep: Reputation: 0
GRUB customizing?


I recently installed LinuxMint on my very old computer (1998) for testing purposes and i would like to install it discretely on the family computer but there is one problem. On the old computer, when i boot, it shows the grub menu with a timeout and everything.

On the new computer, I would like to customize GRUB to hide that menu and boot automatically to XP, except if i hit a specific key (a little bit the same way that the bios is hidden (i have to hold F1). Is it possible?

Thanks.
 
Old 12-16-2007, 01:10 PM   #2
lin_myworld
Member
 
Registered: Oct 2007
Location: India
Distribution: Ubuntu 8.04
Posts: 93

Rep: Reputation: 15
yes it is possible...

open linux mint ...
in it goto /boot/grub in which u will find menu.lst..
open it...
in it u will find 2 options timeout and default..
set the timeout to 0.
now seee where windows is written in front of tittle.
count the tittle number starting from 0 .eg...
suppose
Tittle : Linux Mint
--------blah blah----
--------blah blah----
--------blah blah----

Tittle : Linux Mint recovery
--------blah blah----
--------blah blah----
--------blah blah----

Tittle: Mint Memtest
--------blah blah----
--------blah blah----
--------blah blah----

Tittle: Windows
--------blah blah----
--------blah blah----

in this case ur windows tittle is at 3 starting from 0..
now set defaults to 3...
save the file and restart..



In linux mint u have to grant permissions to menu file to save it. u can do it by giving command "chmod 777 /boot/grub/menu.lst at the terminal..
enjoy
 
Old 12-16-2007, 01:36 PM   #3
Nephersir7
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry, I didnt understand a single word of what you were saying (not natively english speaking). Can you tell me concretely what to do? All i want to change is to hide the grub menu (except if i press a button) and boot windows as default.
 
Old 12-16-2007, 01:37 PM   #4
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Just some little additions:
  • In order to have the system boot into WinDoze, you'll have to put that entry first (or define it as default [#] ("#" being the number of the WinDoze menu entry).
  • Set hiddenmenu 1. Look for more information on how to format the entries here: http://www.gnu.org/software/grub/manual/grub.html
  • To be able to hit a key (in terms of: have enough time) I'd use timeout 2 - "0" being a bit on the fast side of doable
  • Oh, and it's "title" - I don't want to appear narrow-minded or anything, but in this case, precision helps...
Edit:

Okay, I'll try to reiterate:

You'll have to edit the file /boot/grub/menu.lst as root or, in the case of Mint, using "sudo". Open a terminal and type
Code:
$ sudo gedit /boot/grub/menu.lst
After entering your password, an editor will open the file in question. The menu items are on the bottom (you'll see a busload of automatically generated and default stuff). But first, look for "timeout" first and set it do something small, but not "0" (you want to be able to press a button, don't you?). Then look for "hiddenmenu". It'll be (most probably) commented out with a "#" in front of the line in question. Remove the "#" and add a "1". If it isn't there at all, just add a line "hiddenmenu 1" to the file before the actual menu items.

Then either change the order of the menu items so that the whole entry for WinDoze comes before the one(s) for Mint or add a suitable menu entry for WinDoze (for all I know, there's already one there, you'll only have to move it).

I hope that's better...

M.

Last edited by MoonMind; 12-16-2007 at 01:50 PM.
 
Old 12-16-2007, 02:07 PM   #5
Nephersir7
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Can i set the timeout to zero and just hold (not press) the button while the tiny timeout is happening?
 
Old 12-18-2007, 12:58 AM   #6
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Frankly, no idea - in my eyes, however, "0" means *no* timeout whatsoever, thus, no opportunity to press a button. If you have a live CD at hand, you can try, though - and fix it if it's not possible. "1" should be acceptable (most people aren't watching the screen anyway!) and *is* safe for what you want ("2" is better for your nerves, however... ).

M.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Customizing Sk8trf69 Linux - General 6 06-05-2005 11:16 PM
Customizing icons Iguana Linux - Newbie 2 10-04-2003 03:55 PM
Customizing SnowSurfAir Linux - Software 11 06-05-2003 07:43 AM
Customizing iHeru Linux - Newbie 3 05-08-2003 08:05 PM
Customizing Grub boot loader c0rk3y Linux - Software 4 01-20-2003 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration