how to get command prompt?

Asked by WASI Weerathunga

i need to change my boot priorotiy

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
WASI Weerathunga
Solved:
Last query:
Last reply:
Revision history for this message
Beau Bechdol (bbechdol) said :
#1

Hello!,

Why is it you need to change your boot priority? Can you give us a bit more detail so we can assist you better ?

Thanks

Revision history for this message
WASI Weerathunga (dewani1967) said :
#2

Hi, when switch on my pc, I need to boot with vista also need to hide other recvery boot partisions fromm grub loader.
 Kind Regards
WASI Weerathunga

Revision history for this message
Wim (launchpad-xs4all) said :
#3

WASI Weerathunga,

i assume that your grub-menu at boot time (while pressing <Esc>) says something like:

Ubuntu-08.04.1, kernel_2.6...
Ubuntu-08.04.1, kernel....(recovery mode)
Ubuntu-08.04.1, memtest86+
Other Operating Systems:
M$ Windows Vista xx Edition

From your question i conclude 2 things:
1. default you want to boot to Vista, but still be able to get to Ubuntu (X-Windows) too
2. you do not want to let the users choose to the second and third possibility

So you want to have your menu to be something like:

Ubuntu-08.04.1, kernel_2.6...
Other Operating Systems:
M$ Windows Vista xx Edition (*default)

You can arrange this by editing the grub-menu
(i will describe here using editor VI, but you can choose another if you want)

open a terminal-window, this gives someting like: wasi@YourPC:$
now enter these commands (everything between brackets is my comment for you, so do not type that... :)

   cd /boot/grub

   sudo cp -p menu.lst menu.lst.bak

   ls -l menu.*

(gives 3 items: menu.lst, menu.lst~ and menu.lst.bak; our copy-for-in-case...)

   more menu.lst

(scroll around and read carefully !;)
some items you want to read are:
+ default
set it to vista, eg. default 2 is default the third item in the list, they start with 0
+ timeout
how many seconds will grub wait before booting the default thing; you can press <Esc> in this time to let grub wait longer
+ hiddenmenu
the users do not see the menu at all, but only 1 line stating that pressing <Esc> goes to grub-menu
+ howmany=
this number gives howmany kernels must be listed in the grubmenu, if you update your Ubuntu, normally the older kernel is listed too
howmany=2 sets it to the last 2 kernels

Now before you continue, first consider en describe the situation you want to have in the end... Pleas let us know and we will help you.

Revision history for this message
WASI Weerathunga (dewani1967) said :
#4

Hi I am using a Ubuntu 7.10 & managed to get default boot operating (Vista) but could not hide the others from boot loader.
WASI

Revision history for this message
Wim (launchpad-xs4all) said :
#5

Wasi Weerathunga,

while editing the file
/boot/grub/menu.lst
you can "comment out" the items you do not want in the boot-up-menu;
you can do that by placing a hash-sign # at the start of all the line that belong at the item you want to "remove" from the menu.

But BEWARE!
If you remove the item on the "second" line, stating

Ubuntu08.04.1, kernel.. (recovery mode)

you can not start directly to that mode again!
After removing that item, you can only go to that level by entering this command in an terminal-window:

   sudo init 1

(last being the digit ONE)
But if your PC is not booting correct anymore, then you cannot go to recovery mode anymore.
Then you must use the recovery utilities by booting from the original (k)Ubuntu-CD.

It is up to you!

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
WASI Weerathunga (dewani1967) said :
#7

problem solve THx

Revision history for this message
WASI Weerathunga (dewani1967) said :
#8

Thx Problem Solved