Autor Tópico: Personalizar Boot - [Resolvido]  (Lida 3741 vezes)

Offline Andrey Felipe

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Personalizar Boot - [Resolvido]
« Online: 25 de Junho de 2007, 16:25 »
ftp://
PERSONALIZAR BOOT

Galera sou usuario novo do Ubuntu. Estou testando o Ubuntu a 3 semanas e me impressionou muito a facilidade de utilização dele.
No entanto estou com uma dificuldade para mudar a ordem de boot no GRUB. Uso Windows XP na Primeira Partição e o Ubuntu em outra no mesmo HD. Eu queria mudar a ordem de boot para que o Windows XP seja o Primeiro na lista de boot, seguido do Ubuntu (aqui em casa sou o Unico que usa linux). No caso quero Traduzir o Boot e colocar nesse jeito:
Ubuntu, kernel 2.6.20-15-generic  =>  MICROSOFT WINDOWS XP PROFISSIONAL

Ubuntu, kernel 2.6.20-15-generic (recovery mode) => UBUNTU FEISTY FAWN 7.04

Ubuntu, memtest86+ => UBUNTU FEISTY FAWN 7.04 (Modo Recuperação)

Other operating systems: => Tirar

Microsoft Windows XP Professional => MenTest86+ (no lugar do separador)

O arquivo "menu.lst" está assim:

## ## End Default Options ##
# 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  => Duvida Aqui !!!!!

----------------------------------------------------------------------------------------------------------

title      Ubuntu, kernel 2.6.20-15-generic
root      (hd0,3)
kernel      /boot/vmlinuz-2.6.20-15-generic root=UUID=e586670d-12df-40fe-896e-7d696797c160 ro quiet splash locale=pt_BR
initrd      /boot/initrd.img-2.6.20-15-generic
quiet
savedefault   => Duvida Aqui !!!!!!! ??? ???


title      Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root      (hd0,3)
kernel      /boot/vmlinuz-2.6.20-15-generic root=UUID=e586670d-12df-40fe-896e-7d696797c160 ro single
initrd      /boot/initrd.img-2.6.20-15-generic


title      Ubuntu, memtest86+
root      (hd0,3)
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/hda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault   => Duvida Aqui !!!!!!! ??? ???
makeactive
chainloader   +1
[/size][/size]
No caso trocar os nomes que aparece no boot é facil, a ordem foi que eu não entendi como fazer. Sei que a ordem de boot começa de 0 e vai(0,1,2,3,4,...), então:

1 - Devo trocar "save default" por "defaut   0" em Windows XP?
 
2 - Adicionar a linha e trocar a numeração dos outros tambem para 1,2 e 3 respectivamente, pra que fique na ordem, como no exemplo do boot acima?

3 - Posso simplesmente apagar a linha que faz o divisor do meu menu de boot?

Desculpa pelo texto grande mas era pra melhor informar a situação pra vcs.
Desde já agradeço a atenção....
 ;D
« Última modificação: 26 de Junho de 2007, 14:23 por Andrey Felipe »

Offline jomafras

  • Usuário Ubuntu
  • *
  • Mensagens: 2.009
  • 17.04 Zesty Zapus
    • Ver perfil
Re: Personalizar Boot
« Resposta #1 Online: 25 de Junho de 2007, 17:13 »
Basta vc trocar o default 0 por 4 que o Windows será o SO que vai iniciar.
O Ubuntu sem dúvida é a melhor Distro.
Pesquise primeiro... só depois abra um tópico.
Canal do YouTube - Blog

Offline gabriel0085

  • Usuário Ubuntu
  • *
  • Mensagens: 577
    • Ver perfil
Re: Personalizar Boot
« Resposta #2 Online: 26 de Junho de 2007, 08:36 »
Pra escolher a ordem em que aparece a lista é só mudar a ordem em que aparecem no menu.list


Assim, por exemplo:


Citar

title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault   => Duvida Aqui !!!!!!! Hein? Hein?
makeactive
chainloader   +1

title      Ubuntu, kernel 2.6.20-15-generic
root      (hd0,3)
kernel      /boot/vmlinuz-2.6.20-15-generic root=UUID=e586670d-12df-40fe-896e-7d696797c160 ro quiet splash locale=pt_BR
initrd      /boot/initrd.img-2.6.20-15-generic
quiet
savedefault   => Duvida Aqui !!!!!!! Hein? Hein?

title      Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root      (hd0,3)
kernel      /boot/vmlinuz-2.6.20-15-generic root=UUID=e586670d-12df-40fe-896e-7d696797c160 ro single
initrd      /boot/initrd.img-2.6.20-15-generic

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



Desse jeito que eu coloquei aí em cima, o boot seria dado pelo windows, e o menu do grub ficaria assim:

1 - Windows
2 - ubuntu
3 - ubuntu (recovery mode)
4 - memtest86
« Última modificação: 26 de Junho de 2007, 08:37 por gabriel0085 »

Offline Andrey Felipe

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Re: Personalizar Boot
« Resposta #3 Online: 26 de Junho de 2007, 14:15 »
Valeu !!! Deu certinho como eu queria !!! :D Andei fazendo umas pesquisas e achei essas paginas sobre o grub:
http://www.infowester.com/lingrub.php
http://www.devin.com.br/eitch/tlm4/s1-configurando-grub.html
http://www.vivaolinux.com.br/artigos/verArtigo.php?codigo=3928&pagina=1

Ainda fiz algumas modificações no tempo, na cor e na opção de esconder o menu, ficou assim meu "menu.lst", sem as linhas comentadas (com # ):
Citar

default        0

timeout       5

color cyan/blue white/blue

hiddenmenu

title      Microsoft Windows XP Professional
root      (hd0,0)
makeactive
chainloader   +1

title      Ubuntu Feisty Fawn 7.04
root      (hd0,3)
kernel      /boot/vmlinuz-2.6.20-15-generic root=UUID=e586670d-12df-40fe-896e-7d696797c160 ro quiet splash locale=pt_BR
initrd      /boot/initrd.img-2.6.20-15-generic
quiet


title      Ubuntu Feisty Fawn 7.04 (Modo Recuperacao)
root      (hd0,3)
kernel      /boot/vmlinuz-2.6.20-15-generic root=UUID=e586670d-12df-40fe-896e-7d696797c160 ro single
initrd      /boot/initrd.img-2.6.20-15-generic

title      Memtest86+
root      (hd0,3)
kernel      /boot/memtest86+.bin
quiet


Eu removi o parametro "savedefault" porque não sei muito bem o que ele realmente faz. Mas agora tá só uma beleza !!!! :D :D

Se der eu ponho um scren da tela de boot ( so não se como tirar, hehehe !!!!) ;D ;D

Offline Versuri

  • Usuário Ubuntu
  • *
  • Mensagens: 912
  • Linux#436528 ● Ubuntu#9933 MacBook Pro SL 10.6.7
    • Ver perfil
Re: Personalizar Boot - [Resolvido]
« Resposta #4 Online: 26 de Junho de 2007, 18:03 »
SE vc quiser personalizar ainda mais, dê uma lida no meu Blog http://reiversuri.blogspot.com/2007/06/personalizando-o-grub.html

Abraços
Versuri