Ändra bootordning av OS

dhenniz
Inlägg: 6
Blev medlem: 11 okt 2006, 19:03
Ort: Strömsunds Kommun

Ändra bootordning av OS

Inlägg av dhenniz »

Jag har installerat Ubuntu på min laptop, som även har XP, allt har funkat bra, och grub startade och man får välja OS och allt.

Men, Ubuntu står som första OS, och bootar då automatiskt om man inte valt annat, jag vill ändra så att XP är det som bootar automatiskt.

Kan någon hjälpa mig med hur man gör?, jag har läst nån grubmanual men föstod inte ett jota.

Sen så får jag inte igång Wlanet, nätverket verkar fungera med kabel, men inte trådlöst, det går aktivera wlankortet, men så fort jag tryckt ok, så är det inaktiverat igen. dock är detta ett mindre problem och inte det som jag behöver hjälp med just nu. =)


//Dennis
Användarvisningsbild
Gurra72
Inlägg: 273
Blev medlem: 15 jul 2006, 17:35
OS: Ubuntu
Utgåva: 20.04 Focal Fossa LTS
Ort: Färgelanda
Kontakt:

Ändra bootordning av OS

Inlägg av Gurra72 »

Skriva detta i en terminal:

sudo gedit /boot/grub/menu.lst

Några rader ner ser du följande:
# array will desync and will not let you boot your system.
default 0

0 = första av dom operativsystemen du har i listan lite längre ner. Räkna var xp ligger och ändra nollan till detta. även raden:
title Other operating systems måste räknas

I min lista som ser ut så här blir XP alltså nr 6:

Kod: Markera allt

## ## End Default Options ##

title		Ubuntu, kernel 2.6.15-27-386
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.15-27-386 root=/dev/hda3 ro quiet splash
initrd		/boot/initrd.img-2.6.15-27-386
savedefault
boot

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

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

title		Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.15-26-386 root=/dev/hda3 ro single
initrd		/boot/initrd.img-2.6.15-26-386
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/hda1
title		Microsoft Windows XP Home Edition
root		(hd0,0)
savedefault
makeactive
chainloader	+1
Ubuntu.. an ancient african word for - I cant configure Slackware :P
Belsebub
Inlägg: 71
Blev medlem: 05 maj 2006, 05:09
Ort: Luleå
Kontakt:

Ändra bootordning av OS

Inlägg av Belsebub »

hur fungerar detta om man installerar ny kärna i ubuntu? då ökar antalet poster i menu.lst och angiven siffra är ogiltig såvida man inte tar bort gamla kärnor efter reboot eller hur?

jag använder:

default saved

så sparas det senaste valda os:et som default... vilket är bra om man måste boota om win el. linux och vill hamna i samma os medan man fixar en kaffe.
Användarvisningsbild
Gurra72
Inlägg: 273
Blev medlem: 15 jul 2006, 17:35
OS: Ubuntu
Utgåva: 20.04 Focal Fossa LTS
Ort: Färgelanda
Kontakt:

Ändra bootordning av OS

Inlägg av Gurra72 »

Tänkte inte på det :P

saved där nollan var alltså?

Det var ju mycket smartare.
Ubuntu.. an ancient african word for - I cant configure Slackware :P
Belsebub
Inlägg: 71
Blev medlem: 05 maj 2006, 05:09
Ort: Luleå
Kontakt:

Ändra bootordning av OS

Inlägg av Belsebub »

jajjemen.. det fungerar för alla menyposter som har angivits "savedefault"
dhenniz
Inlägg: 6
Blev medlem: 11 okt 2006, 19:03
Ort: Strömsunds Kommun

Ändra bootordning av OS

Inlägg av dhenniz »

tack så mycket för hjälpen!

=)
dhenniz
Inlägg: 6
Blev medlem: 11 okt 2006, 19:03
Ort: Strömsunds Kommun

Ändra bootordning av OS

Inlägg av dhenniz »

nu är det ordnat och funkar helt underbart, tack så mycket för hjälpen!

//Dennis
malw
Inlägg: 7
Blev medlem: 28 okt 2006, 22:36

Ändra bootordning av OS

Inlägg av malw »

hej hej
funkar inte för mig det där spelar ingen roll om jag skriver 1,2,3,4..... starta fortförande ubunutu först
vad kan vara fel på min??

Kod: Markera allt

# 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=UUID=6b6cb4a4-db28-4ce9-9239-4c961b6ae921 ro
# kopt_2_6=root=/dev/hdc3 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

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

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

## ## End Default Options ##

title		Ubuntu, kernel 2.6.17-10-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/hdc3 ro quiet splash
initrd		/boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title		Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/hdc3 ro single
initrd		/boot/initrd.img-2.6.17-10-generic
boot

title		Ubuntu, memtest86+
root		(hd0,2)
kernel		/boot/memtest86+.bin
quiet
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/hdc1
title		Microsoft Windows XP Professional
root		(hd0,2)
savedefault
makeactive
chainloader	+1
(packad i CODE av petri 0)
Okänd
Inlägg: 30172
Blev medlem: 03 mar 2008, 01:30
OS: Ubuntu

Ändra bootordning av OS

Inlägg av Okänd »

Ja, det är ju konstigt att Ubuntu startas. Prova med default 5 i din menu.lst

Annars läs tråden http://ubuntu-se.org/forum/viewtopic.php?id=2480 och följ länkarna ifall den var inte till hjälp.
Skriv svar

Återgå till "Använda X/K/Ubuntu - inaktuell"