Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: GRUB menu.lst aanpassen zodat WinXP eerst boot  (gelezen 10983 keer)

Foechoer

  • Gast
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Gepost op: 2006/09/19, 19:26:06 »
Hallo iedereen,
zoals velen ben ik een nieuw ubuntu gebruiker, ik heb nu twee OS'en op mijn pc staan,
Ubuntu en Windows XP,  standaard lijkt ubuntu nu op te starten, en dat is voorlopig nog niet de bedoeling.
Na zelf wat opzoekingswerk gedaan te hebben heb ik ontdekt dat mijn GRUB een menu.lst bestand heeft, en dat dat aangepast moet worden.
Dit is natuurlijk wel gevoelig als ik niet juist weet wat ik doe,  daarom mijn vraag:
Wat moet ik aanpassen in mijn menu.lst zodat windows XP eerst boot?

bij deze mijn menu.lst:
# 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

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# 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/sda3 ro

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

## 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-27-amd64-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-27-amd64-generic root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-amd64-generic
savedefault
boot

title Ubuntu, kernel 2.6.15-27-amd64-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-27-amd64-generic root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-27-amd64-generic
boot

title Ubuntu, kernel 2.6.15-26-amd64-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-amd64-generic root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-amd64-generic
savedefault
boot

title Ubuntu, kernel 2.6.15-26-amd64-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-amd64-generic root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-26-amd64-generic
boot

title Ubuntu, memtest86+
root (hd0,2)
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
Wat me vreemd genoeg is opgevallen is dat ubuntu er 2 keer opstaat, heb ik die dan toevallig ook 2 keer ge

GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #1 Gepost op: 2006/09/19, 19:36:37 »
Volgens mij kan je gewoon "default 0" veranderen in "default 5" (de zesde optie in het menu). Je kan ook de timeout wat lager zetten zodat je sneller opstart.

Foechoer

  • Gast
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #2 Gepost op: 2006/09/19, 19:45:49 »
ja dat is net hetzelfde dat ik dacht, maar omdat ik niet echt zeker was kon hulp vragen toch geen kwaad he..
ok dan zal i kdat eens proberen en hopen dat het lukt he

Thnx

Offline mcgyver

  • Lid
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #3 Gepost op: 2006/09/19, 20:42:05 »
Nee is niet twee keer geinstalleerd. De ene is een recovery mode en de andere de gewone opstart. Je kan ook een # zetten aan het begin van de regel

timeout         10

dan wordt het dus


#timeout       10

Dan blijft ie beleefd wachten tot jij een keuze maakt waarmee je wil opstarten.

Offline profoX

  • Lid
    • wesley
    • Lionslink
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #4 Gepost op: 2006/09/19, 21:11:36 »
Het probleem met default 5 is dat er nog extra kernels bij kunnen worden ge
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

daktarie

  • Gast
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #5 Gepost op: 2006/09/19, 21:20:03 »
klopt inderdaad van die 2 keer  kernel 2.6.15-27 is de actuele kernel als ie zonder problemen bij je draait kun je de ander verwijderen met synaptic.( kernel 2.6.15-26)

# 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        4

zal dan XP als eerste starten met timeout van 10

jpjacobs

  • Gast
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #6 Gepost op: 2006/09/20, 20:10:16 »
of gewoon heel de windows nest boven de lijn "### BEGIN AUTOMAGIC KERNELS LIST" zetten, en dan default 0 gebruiken.
JP

Offline profoX

  • Lid
    • wesley
    • Lionslink
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #7 Gepost op: 2006/09/20, 21:07:38 »
Citaat van: jpjacobs
of gewoon heel de windows nest boven de lijn "### BEGIN AUTOMAGIC KERNELS LIST" zetten, en dan default 0 gebruiken.
JP
inderdaad -- dat was ook mijn oplossing enkele posts terug :P
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

Offline mcgyver

  • Lid
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #8 Gepost op: 2006/09/20, 21:44:18 »
Blijf er bij dat ik de comment voor de timeout line het gemakkelijkst vind. Ik Herinner me dat ik vroeger vaak meerdere keren moest opstarten omdat ik even niet had opgelet. Ik heb liever dat ie blijft wachten, maar dat is misschien een kwestie van smaak.

jpjacobs

  • Gast
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #9 Gepost op: 2006/09/21, 00:37:58 »
Citaat van: profoX
Citaat van: jpjacobs
of gewoon heel de windows nest boven de lijn "### BEGIN AUTOMAGIC KERNELS LIST" zetten, en dan default 0 gebruiken.
JP
inderdaad -- dat was ook mijn oplossing enkele posts terug :P
Sorry kheb blijkbaar de neiging om over posts met veel gecode heen te lezen :p
JP

Foechoer

  • Gast
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #10 Gepost op: 2006/09/21, 16:56:42 »
Bedankt iedereen voor de hulp,

uiteindelijk heb ik het gewoon opgelost doro de volgorde te veranderen,
de tijd heb ik ook op 3 sec gezet maar dat is een detail.

Voor mensen die dus hetzelfde probleem hebben of gewoon hetzelfde opzoeken:

Als je de volgorde in je GRUB wil aanpassen is het gewoon knip en plakwerk.  mijn windows XP heb ik dus van de latste plaats onder Ubuntu gezet.

Thnx
Foechoer

Offline profoX

  • Lid
    • wesley
    • Lionslink
GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #11 Gepost op: 2006/09/21, 19:00:50 »
Euh, oke, zorg er dan wel voor dat je het hiertussen zet:

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

    HIER ZETTEN :)

### BEGIN AUTOMAGIC KERNELS LIST
Anders krijg je problemen bij een kernel update of bij het uitvoeren van update-grub (dan verdwijnt windows uit de opstartlijst)
Human Knowledge Belongs To The World -- Antitrust (2001)
Nederlandstalige Ubuntu documentatie van Ubuntu-NL (wiki)

Offline homerke

  • Lid
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #12 Gepost op: 2009/03/20, 21:02:11 »
Hoi hoi


Ik heb in dit lijstje het volgende staan:



# 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 10

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

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# 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=UUID=faa177d4-8d6e-4835-accd-9b30391d1dfb ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=faa177d4-8d6e-4835-accd-9b30391d1dfb

## 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

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid faa177d4-8d6e-4835-accd-9b30391d1dfb
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=faa177d4-8d6e-4835-accd-9b30391d1dfb ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid faa177d4-8d6e-4835-accd-9b30391d1dfb
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=faa177d4-8d6e-4835-accd-9b30391d1dfb ro  single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid faa177d4-8d6e-4835-accd-9b30391d1dfb
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=faa177d4-8d6e-4835-accd-9b30391d1dfb ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid faa177d4-8d6e-4835-accd-9b30391d1dfb
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=faa177d4-8d6e-4835-accd-9b30391d1dfb ro  single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid faa177d4-8d6e-4835-accd-9b30391d1dfb
kernel /boot/memtest86+.bin
quiet

### 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 Windows Vista
root (hd0,0)
savedefault
makeactive
chainloader +1




Ik zou dit lijstje als beginnende Linuxer willen wijzigen zodat de pc automatisch start in windows,
vrouwtjelief en m'n zoon gebruiken deze pc ook, vandaar


kan ik gewoon de vier regels

title      Windows Vista
root      (hd0,0)
savedefault
makeactive
chainloader   +1

knippen en bovenaan zetten zonder dat ik in de problemen kom??
Dank bij voorbaat :)

Moderator edit: code weergave toegevoegd :)
« Laatst bewerkt op: 2009/03/21, 08:42:51 door ex »
leer uit de fouten die 'n ander maakt,
het leven is te kort om ze allemaal zelf te maken

Offline track

  • Lid
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #13 Gepost op: 2009/03/21, 00:11:16 »
Hoi Homerke,

het is eigenlijk niet de bedoeling dat je een oud topic weer opgraaft, maar in dit geval is het precies dezelfde vraag.
Goed dus.
Er zijn twee mogelijkheden:

1. Win mag gerust beneden staan. Maar je wilt het toch standaard laten starten.
Dan hoef je alleen deze regel aan te passsen:
Citaat
default      0 5
En misschien ook nog :
Citaat
timeout      10 3

2. Je wilt Win.. liever bovenaan hebben staan. Dat kan met knippen en plakken.
Maar je moet het in ieder geval boven de volgende lijn inplakken:
Citaat
### BEGIN AUTOMAGIC KERNELS LIST
(dus best op dat plek waar het uitgecommentariëerde "Win.."- blok al staat)
De default   0- regel zal onveranderd blijven, de timeout kun je best aanpassen.

track

Offline mcgyver

  • Lid
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #14 Gepost op: 2009/03/21, 07:52:14 »
Dan moet ie nu wel binnen 3 seconden reageren als ie naar Ubuntu wil.

Offline homerke

  • Lid
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #15 Gepost op: 2009/03/21, 08:41:39 »
Idd,  ik heb 'n oude koe uit de gracht gehaald, maar 2 dezelfde topics?  ;)

Bedankt voor de goede raad,  maar kzit met een probleempje, ik krijg melding dat ik het bestand niet kan bewerken  ???
leer uit de fouten die 'n ander maakt,
het leven is te kort om ze allemaal zelf te maken

Offline #!

  • Lid
    • tuxtopia
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #16 Gepost op: 2009/03/21, 08:43:31 »
Misschien een overbodige tip:
Maar back-up het lijstje altijd even.. voor als het toch mis gaat!

Offline homerke

  • Lid
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #17 Gepost op: 2009/03/21, 09:06:21 »
Dat heb ik al gedaan,  staat gesaved op n usb stickje en een andere partitie :)
leer uit de fouten die 'n ander maakt,
het leven is te kort om ze allemaal zelf te maken

Offline track

  • Lid
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #18 Gepost op: 2009/03/21, 11:36:08 »
En je opent het bestand met  gksu gedit /boot/grub/menu.lst  ook ?
Wat is de foutmelding precies dan ?

track

herman1703

  • Gast
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #19 Gepost op: 2009/03/23, 13:52:00 »
Het beste hiervoor is, dat je het windows deel in de menu.lst onder de regel "# Put static boot stanzas before and/or after AUTOMATIC KERNEL LIST" zet.
Op deze manier blijft uw windows altijd als eerste staan, zelfs nadat er een kernel update geweest is.

Offline track

  • Lid
Re: GRUB menu.lst aanpassen zodat WinXP eerst boot
« Reactie #20 Gepost op: 2009/03/23, 19:33:35 »
Nee Herman, liever niet onder, maar boven deze regel:
# Put static boot stanzas before and/or after AUTOMATIC KERNEL LIST(bij het uitgecommentariërde voorbeeld met "Windows.." enz.)

track
« Laatst bewerkt op: 2009/03/23, 19:37:45 door track »