(Gelöst) GRUB Boot Menu, Standardeintrag ändern (Ubuntu 6.06)

Status
Für weitere Antworten geschlossen.

helloworld

New Member
Hi all :)
hab eben auf dem laptop von meinen eltern ubunto installiert und da die nicht viel ahnung haben und ich es denen nicht so schwer machen will windows xp zu booten :) hab ich windows als standart OS einstelle.
Danke euch schon mal für eure hilfe :)

Habe GNU GRUB version 0.97 vor mir.

mfg Helloworld

PS.: sollte dies im falschen unter forum geschrieben sein bitte ich um entschuldigung
 

Rain_Maker

Administrator
Teammitglied
AW: Boot Menu, windows XP als std booten

Hallo,

Poste mal die Ausgabe von:

Code:
sudo cat /boot/grub/menu.lst
Greetz,

RM
 

helloworld

New Member
AW: Boot Menu, windows XP als std booten

hab die mal upgeloadet ... hab das zeugs mit dem pw rausgenommen weil ich nicht so der nutzer bin der da durchblickt und weiß nicht was ihr da raus lesen könnt :)

danke schon mal

Code:
# 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 change this entry to 'saved' 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		10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue


#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda6 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title		Ubuntu, kernel 2.6.15-23-386
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.15-23-386 root=/dev/sda6 ro quiet splash
initrd		/boot/initrd.img-2.6.15-23-386
savedefault
boot

title		Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.15-23-386 root=/dev/sda6 ro single
initrd		/boot/initrd.img-2.6.15-23-386
boot

title		Ubuntu, memtest86+
root		(hd0,5)
kernel		/boot/memtest86+.bin 
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Home Edition
root		(hd0,0)
savedefault
makeactive
chainloader	+1
 

Rain_Maker

Administrator
Teammitglied
AW: Boot Menu, windows XP als std booten

*Ähm*

Sowas kann man auch als Anhang an das Posting drankleben, ich erledige das mal.

(Gekürzt)

Code:
## 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 change this entry to 'saved' or your
# array will desync and will not let you boot your system.
[B][COLOR='Red']default		0[/COLOR][/B]

## ## End Default Options ##

title		Ubuntu, kernel 2.6.15-23-386
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.15-23-386 root=/dev/sda6 ro quiet splash
initrd		/boot/initrd.img-2.6.15-23-386
savedefault
boot 

[COLOR='red']=> Das ist "Eintrag 0" ..siehe oben .. dieser wird als Standard gebootet.[/COLOR]

title		Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.15-23-386 root=/dev/sda6 ro single
initrd		/boot/initrd.img-2.6.15-23-386
boot

[COLOR='red']Eintrag 1[/COLOR]

title		Ubuntu, memtest86+
root		(hd0,5)
kernel		/boot/memtest86+.bin 
boot

[COLOR='red']Eintrag 2[/COLOR]

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Home Edition
root		(hd0,0)
savedefault
makeactive
chainloader	+1

[COLOR='red']Eintrag 3[/COLOR]
Also öffnest Du mit einem Texteditor als root die Datei (z.B. Kate oder Gedit)

Code:
cd /boot/grub

sudo cp menu.lst menu.lst.backup #sicher ist sicher

sudo kate menu.lst

ODER

sudo gedit menu.lst
Und editierst folgende Zeile.

Vorher:
Code:
## 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 change this entry to 'saved' or your
# array will desync and will not let you boot your system.
[COLOR='red']default		0[/COLOR]
Nachher:
Code:
## 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 change this entry to 'saved' or your
# array will desync and will not let you boot your system.
[COLOR='red']default		3[/COLOR]
Das müsste es schon gewesen sein.

Greetz,

RM
 

helloworld

New Member
AW: Boot Menu, windows XP als std booten

hey cool danke RM :)
werd es später mal ausprobieren, bin jetzt gerade beim freund.
schreib später rein ob es mir geholfen hat.

------EDIT-----
DANKE Rain Maker:) hat prima geklappt, aber bei der erstklassigen hilfe :)
du bzw auch ich wir haben uns verzählt, es war nicht default 3 sondern 4.
Bei
default 0 bootet er: Ubuntu, kernel 2.6.15-23-386
default 1 bootet er: Ubuntu, kernel 2.6.15-23-386 (recovery mode)
default 2 bootet er: Ubuntu, memtest86+
default 3 bootet er: Other operating systems: #leider nur ein title ohne verweis auf eine partition
default 4 bootet er: Microsoft Windows XP Home Edition

Aber trotzdem ein RIESIGES DANKE RM!!! :)
gruß HelloWorld
 

Rain_Maker

Administrator
Teammitglied
AW: Boot Menu, windows XP als std booten

helloworld schrieb:
default 3 bootet er: Other operating systems: #leider nur ein title ohne verweis auf eine partition
0ha, gut zu wissen, daß dieser Eintrag auch "zählt", das konnte ich nicht ahnen.
Eine wichtige Information für andere (K)Ubuntu-User.

Ich nutze zwar Ubuntu, aber der Bootloader ist der von SuSE, in welchen ich dann einfach einen Eintrag für Ubuntu von Hand eingebunden habe.

Da das Prinzip aber recht einfach ist, war die Lösung leicht für Euch selbst zu finden.

Well Done.

==> Closed.

Greetz,

RM
 
Status
Für weitere Antworten geschlossen.
Oben