Autor Tópico: Dual boot com OS XP primeiro.  (Lida 5212 vezes)

Offline i juca pirama

  • Usuário Ubuntu
  • *
  • Mensagens: 12
    • Ver perfil
Dual boot com OS XP primeiro.
« Online: 17 de Fevereiro de 2008, 21:03 »
Srs, já pesquisei no fórum de como fazer com que o xp carregue primeiro que o Ubuntu.
Entretanto, não consegui alterar/editar a sequencia de boot, como ensinado em alguns tópicos desse fórum:

"Alterando a ordem de boot dos Sistemas Operacionais
Pergunta muito comum, você instala o Ubuntu em dualboot com o Windows e você quer que o Windows seja o SO padrão para o boot.
Antes de prosseguir, faça uma copia de segurança.
Então edite o arquivo:
sudo gedit /boot/grub/menu.lst
Procure pela linha:
default 0
E altere o 0 pelo número referente a ordem do SO que você deseja deixar para iniciar por padrão. Onde 0 é o primeiro, 1 é o segundo, 2 o terceito, e assim por diante."

Nâo entendi a última frase: E altere o 0........ Lá no default já está 0. Como faço para descobrir em qual ordem está o Windows XP?
Desculpem a confusão, mas ainda estou aprendendo.....
O ubuntu é ótimo, mas devido aos usuários e programas que tenho no windows, fica mais fácil, colocá-lo como 1º boot.
Obrigado pela ajuda.

Offline fabiovalinhos

  • Usuário Ubuntu
  • *
  • Mensagens: 439
  • Vire a direita..para Valinhos-SP! Arch user
    • Ver perfil
Re: Dual boot com OS XP primeiro.
« Resposta #1 Online: 17 de Fevereiro de 2008, 21:15 »
Coloque aqui no tópico o resultado do seu menu.list (sudo gedit /boot/grub/menu.lst) para o pessoal ver.

Isso é "2 palitos" para se resolver.

Vi que vc pesquisou , mas lembro você que essa dúvida está bem batida de se responder aqui no fórum.

7355

sudo dpkg no seu quadrado ...sudo dpkg no seu quadrado ...
http://www.youtube.com/watch?v=tHmrq0FtczM

Offline tiagosvm

  • Usuário Ubuntu
  • *
  • Mensagens: 1
    • Ver perfil
Re: Dual boot com OS XP primeiro.
« Resposta #2 Online: 18 de Fevereiro de 2008, 15:09 »
Olá,

Instalei ontem o ubuntu pela 1ª vez e também tenho essa dúvida.
Vê se este link ajuda: http://ubuntuforum-pt.org/index.php/topic,31545.0.html

Eu vou testar logo à noite.

Boa sorte :)

Offline ins3rt c0in

  • Usuário Ubuntu
  • *
  • Mensagens: 698
    • Ver perfil
Re: Dual boot com OS XP primeiro.
« Resposta #3 Online: 18 de Fevereiro de 2008, 15:28 »
Já viu esse tópico?

http://ubuntuforum-pt.org/index.php/topic,4055.0.html


1 – "Como mudar a ordem de boot dos Sistemas Operacionais?"
Pergunta muito comum, você instala o Ubuntu em Dualboot com o Windows e você quer que o Windows seja o SO padrão para o boot. “Só para pessoal de casa não fica no meu pé”.


Primeiro faça o Backup do arquivo. No Terminal

Citar
$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup


Vamos editar o arquivo de configuração do Grub


Código: [Selecionar]
$ sudo gedit /boot/grub/menu.lst



Como o Grub usa a primeira distro listada como default basta usarmos uma técnica bem simples .
Recorte a opção do Windows que geralmente é a última e cole-a no início. Você pode fazer isso com qualquer outro SO, usamos o Windows como exemplo por ser o SO que na maioria dos casos o pessoal tem em Dualboot.

Primeiro encontre a entrada do Ubuntu no menu.lst. Você deve achar algo assim:

Código: [Selecionar]
title Ubuntu, kernel 2.6.12-10-386
root (hd0,5)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda6 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot

E daí por diante.


Depois encontre a entrada do Windows:

Como vemos:
Código: [Selecionar]
-----------------------------------------------------------
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
chainloader +1

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

Estas linhas foram colocadas antes do Ubuntu e o resultado é o que se vê abaixo:

http://img128.imageshack.us/img128/4027/dualboot3bi.jpg

A seguir a listagem do menu.lst como ele ficou.



Código: [Selecionar]
------------------------------------------------------------
# menu.lst - See: grub(Cool, info grub, update-grub(Cool
# grub-install(Cool, grub-floppy(Cool,
# 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'.
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 specifiv 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=root=/dev/hda6 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

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

## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash

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

## ## End Default Options ##

**** Olha o Windows aqui gente! Essa linha não existe no GRUB, coloquei isso aqui pra chamar sua atenção! :) ****

# Essas linhas, devem permanecer nesta posição para que o windows seja o default
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
chainloader +1

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

**** Olha o Ubuntu aqui gente! Essa linha não existe no GRUB, coloquei isso aqui pra chamar sua atenção! :) ****
title Ubuntu, kernel 2.6.12-10-386
root (hd0,5)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda6 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot

title Ubuntu, kernel 2.6.12-10-386 (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda6 ro single
initrd /boot/initrd.img-2.6.12-10-386
boot

title Ubuntu, kernel 2.6.12-9-386
root (hd0,5)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda6 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot

title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda6 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot

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

### END DEBIAN AUTOMAGIC KERNELS LIST


Você também pode usar uma ferramenta chamada StartUp Manager

Código: [Selecionar]
sudo apt-get install startupmanager
Ela fica em: Sistema / Administração / StartUp - Manager

Offline marcelo rigo

  • Usuário Ubuntu
  • *
  • Mensagens: 6
  • Se seu carro pifar, tente sair e entrar de novo.
    • Ver perfil
Re: Dual boot com OS XP primeiro.
« Resposta #4 Online: 18 de Fevereiro de 2008, 18:23 »
 ::).....se aguem quiser instala o Linux...XP e o Vista....é na ordem......XP...Vista e por ultimo o Linux..o winVista tambem tem um gerenciador de boot que instala automatico se voce tive otra versao o windows...entao quando instalar o Linux...vai aparecer no boot ex:Ubuntu e Vista/Longhorn...ai vc entra no Vista..e abre otra tela de boot onde voce vai escolher entre o xp e o vista.