Solved

grup menu with memtest

Posted on 2010-08-19
16
632 Views
Last Modified: 2013-12-06
hi there
I am using both ubutu karmic and debian lenny and
my grup menu is messed with memtest, recovery and generic modes

how can I remove memtest and recovery choices on grup menu?

regards.
0
Comment
Question by:loopfinity
  • 5
  • 5
  • 3
  • +2
16 Comments
 
LVL 22

Accepted Solution

by:
Matt V earned 91 total points
ID: 33479584
I assume you mean grub, you can edit the /boot/grub/menu.lst file to remove boot options.  I suggest making a copy before you begin.
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 228 total points
ID: 33479823
Hi!

If you're running Grub2 you can't use menu.lst. Read this instead: http://ubuntuforums.org/showthread.php?t=1195275

# Omitting memtest86+: To prevent "memtest86+" entries in your Grub 2 menu, remove the "executable" bit from /etc/grub.d/20_memtest86+. You can do this via a file browser by selecting "Properties (right click), Permissions", or via the command line:
Code:

sudo chmod -x /etc/grub.d/20_memtest86+

# Omitting Recovery Mode entries: The file /etc/grub.d/10_linux was recently updated to include a check for recovery mode options. Edit /etc/default/grub and add or change this line:
Quote:
GRUB_DISABLE_LINUX_RECOVERY=true
If you have an older version of /etc/grub.d/10_linux and the above does not work after updating grub, you can prevent "Recovery mode" entries in your Grub 2 menu, by editing /etc/grub.d/10_linux. If there are no conditional "if" statements concerning the recovery mode, place a comment symbol (#) in front of the following lines (at approximately line 146) of the old file:
Quote:
# linux_entry "${OS}, Linux ${version} (recovery mode)" \
# "single ${GRUB_CMDLINE_LINUX}"
If you wish to retain one "Recovery mode" entry for insurance, you can add an entry to /etc/grub.d/40_custom which will appear at the bottom of your grub menu.

Regards, Tobias
0
 
LVL 6

Author Comment

by:loopfinity
ID: 33479913
I hope, the above recomendation is safe to change grub menu since i really do not want to harm my system.
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 228 total points
ID: 33480001
If you are using Grub2 you can safely follow the directions in the link I sent you.
0
 
LVL 35

Assisted Solution

by:torimar
torimar earned 136 total points
ID: 33480776
Debian Lenny, by default, uses Grub Legacy, not Grub2.
Ubuntu Karmic, by default, uses Grub2, but *only* if it was an original installation; if you made a dist-upgrade from Ubuntu Jaunty, it will also still use Grub Legacy.

Now that you know which Grub versions your operating systems are usually running, you need to find out which OS is the one that placed its Grub into the MBR and thus is the one responsible for your main boot menu. This will usually be the OS which is mentioned first in the boot menu and/or the one that was installed last.

You will have to modify the Grub menu from inside the OS to which it belongs.
- If that is Debian (or Ubuntu upgraded from Jaunty or earlier), go look for the file /boot/grub/menu.lst and edit it (as root). Remove or uncomment the entries you don't want to see (menu entries start with the word: "title"). Please don't forget to make a backup copy of the old menu.lst first!!
- If that is an Ubuntu Karmic original installation, follow the advice given by TobiasHolm above.
0
 
LVL 6

Assisted Solution

by:JRoyse
JRoyse earned 45 total points
ID: 33488126
Maybe you should make the wait time shorter - that may be simpler.  It is the variable in the grub.conf or grub.lst named: "timeout=5" .  Change it to 1 and you may not even see the menu.
0
 
LVL 6

Author Comment

by:loopfinity
ID: 33488157
>>Change it to 1 and you may not even see the menu.

so, how can I change my distro? from ubuntu to debian or vice versa.
0
 
LVL 22

Assisted Solution

by:Matt V
Matt V earned 91 total points
ID: 33488448
That is a whole different question my friend.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 35

Assisted Solution

by:torimar
torimar earned 136 total points
ID: 33488456
A timeout of 1 or even 0 (which is possible) is only advisable when you actually don't need the menu, i.e. you don't run different distros. In your case, that would make no sense.
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 228 total points
ID: 33488794
Maybe you just want a better looking start menu? Then you can try Burg, a graphical bootloader.

Start a terminal and install it like this:

sudo add-apt-repository ppa:bean123ch/burg && sudo apt-get update && sudo apt-get install burg-pc burg burg-themes burg-emu

Ref: http://www.ubuntugeek.com/how-to-change-your-grub-loader-view-using-burg.html

Regards, Tobias
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 228 total points
ID: 33488800
Example of a Burg start screen.
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 228 total points
ID: 33488807
and the image... ;)
burg.png
0
 
LVL 6

Author Comment

by:loopfinity
ID: 33489634
my grub version is written at the top.

1.97 beta4
0
 
LVL 35

Assisted Solution

by:torimar
torimar earned 136 total points
ID: 33489650
That is Grub2.
Which means the Ubuntu controls your main Grub menu and you have to modify things from inside Ubuntu following either the hints given by TobiasHolm above or this documentation: https://wiki.ubuntu.com/Grub2
0
 
LVL 6

Author Comment

by:loopfinity
ID: 33489653
thanks. I will try and turn to you.
0
 
LVL 6

Author Closing Comment

by:loopfinity
ID: 34244865
t
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux : taking backup different mount points under the same directory 8 48
Java / Linux and Regular Expressions 11 69
linux ssh 4 57
wipe a usb using python 5 26
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now