Autor Tópico: Grub demora...  (Lida 4857 vezes)

Offline supermax

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Grub demora...
« Online: 17 de Setembro de 2006, 15:39 »
Olá amigos, sou iniciante no linux especificamente no Ubuntu, há um tempo que estou tentando abandonar o windows mas sempre acontece algum problema. Um amigo que participa da tradução da documentação do ubuntu me indicou-o, estive analisando e conclui que finalmente temos uma distribuição que deve deslanchar o uso do linux em desktops. Meu problema é o seguinte:
Instalei o windows em uma partição depois o ubuntu 6.06 com o desktop cd. Quando o grub é inicializado fica esta mensagem durante uns 40s "GRUB Loading stage1.5." depois mais uns 30s essa "Grub Loading, please wait..." e somente depois deste tempo e mostrado o menu do grub.
Já procurei em vários lugares, reinstalei tudo, refiz as partições, instalei em um outro hd, instalei apena o ubuntu no hd e continua a mesma coisa. Pensei até em mudar o gerenciador para o lilo, não sei se resolverá.
As configurações do meu micro são: Asus Tua 266, 512MB DDR Kingston, HD 40GB, HD 20GB, Gforce MX440 64 MB.
Caso seja necessário mas alguma informação eu postarei. Conto com a ajuda do pessoal.
Até mais.

Offline tombs

  • Usuário Ubuntu
  • *
  • Mensagens: 32
    • Ver perfil
Re: Grub demora...
« Resposta #1 Online: 19 de Setembro de 2006, 16:54 »
supermax

Poste aqui seu menu.lst por favor!

$ cat /boot/grub/menu.lst

Offline supermax

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Re: Grub demora...
« Resposta #2 Online: 20 de Setembro de 2006, 00:57 »
# 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/hda2 ro

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

## 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,1)
kernel          /boot/vmlinuz-2.6.15-23-386 root=/dev/hda2 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,1)
kernel          /boot/vmlinuz-2.6.15-23-386 root=/dev/hda2 ro single
initrd          /boot/initrd.img-2.6.15-23-386
boot

title           Ubuntu, memtest86+
root            (hd0,1)
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 Professional
root            (hd0,0)
savedefault
makeactive
chainloader     +1
« Última modificação: 20 de Setembro de 2006, 01:00 por supermax »

Offline tombs

  • Usuário Ubuntu
  • *
  • Mensagens: 32
    • Ver perfil
Re: Grub demora...
« Resposta #3 Online: 20 de Setembro de 2006, 13:57 »
Puxa, vou ficar devendo essa... nao vi nada de anormal ai.
Vc tem os dois OS no mesmo hd certo?
Poste seu : sudo fdisk -l

arlei

  • Visitante
Re: Grub demora...
« Resposta #4 Online: 20 de Setembro de 2006, 14:13 »
Citar
## ## End Default Options ##

title           Ubuntu, kernel 2.6.15-23-386
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.15-23-386 root=/dev/hda2 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,1)
kernel          /boot/vmlinuz-2.6.15-23-386 root=/dev/hda2 ro single
initrd          /boot/initrd.img-2.6.15-23-386
boot

title           Ubuntu, memtest86+
root            (hd0,1)
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 Professional
root            (hd0,0)
savedefault
makeactive
chainloader     +1

Amigos,

não sou nenhum especialista, não estou em meu Linux agora para checar meu menu.lst onde tbém tenho dual-boot e tbém confesso que não sai a procura de maiores informações sobre o parâmetro savedefault do Grub, mais pergunto:

Está correto essa opção estar presente nas duas entradas de boot, ou seja, no caso para o Linux e tbém para o XP conforme demonstrado em negrito na citação acima?

T+
Arlei

Offline supermax

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Re: Grub demora...
« Resposta #5 Online: 20 de Setembro de 2006, 23:16 »
Disco /dev/hda: 40.0 GB, 40060403712 bytes
255 cabeças, 63 setores/trilha, 4870 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/hda1   *           1        2435    19559106    7  HPFS ou NTFS
/dev/hda2            2436        4805    19037025   83  Linux
/dev/hda3            4806        4870      522112+   5  Estendida
/dev/hda5            4806        4870      522081   82  Linux swap / Solaris

Offline tombs

  • Usuário Ubuntu
  • *
  • Mensagens: 32
    • Ver perfil
Re: Grub demora...
« Resposta #6 Online: 21 de Setembro de 2006, 13:55 »
supermax

Hmmm...pode ser isso mesmo que o arlei falou. Realmente isso nao deveria estar assim!
Tente editar(nano,gedit....) isso, e retire o savedefault do Ubuntu.


Offline supermax

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Re: Grub demora...
« Resposta #7 Online: 21 de Setembro de 2006, 18:23 »
Fiz a remoção das linhas "savedefault" e continuou a mesma coisa. a "menu.lst" ficou assim:

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

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

## 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-386
root      (hd0,1)
kernel      /boot/vmlinuz-2.6.15-27-386 root=/dev/hda2 ro quiet splash
initrd      /boot/initrd.img-2.6.15-27-386
boot

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

title      Ubuntu, memtest86+
root      (hd0,1)
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 Professional
root      (hd0,0)
makeactive
chainloader   +1

Vou continuar em busca de uma solução durante mais algum tempo e depois vou tentar instalar o "lilo".
Obrigado ao "tombs" e ao "arlei" pelas dicas.
Qualquer novidade eu volto a postar aqui.

arlei

  • Visitante
Re: Grub demora...
« Resposta #8 Online: 21 de Setembro de 2006, 20:35 »
Bem, espero q consiga resolver seu problema.

Mais com relação a minha colocação anterior sobre as 2 entradas da opção savedefault, pode esquecer, pois meu menu.lst tbém tem esses parâmetros tanto para boot no Ubuntu como no XP.
Segue abaixo como esta no meu menu.lst:

Código: [Selecionar]
## ## End Default Options ##

title Ubuntu, kernel 2.6.15-27-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/sda2 vga=791 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,1)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/sda2 ro single
initrd /boot/initrd.img-2.6.15-27-386
boot

title Ubuntu, memtest86+
root (hd0,1)
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 M$-Windows XP Pirated Edition
root (hd0,0)
savedefault
makeactive
chainloader +1

T+
Arlei

Offline tombs

  • Usuário Ubuntu
  • *
  • Mensagens: 32
    • Ver perfil
Re: Grub demora...
« Resposta #9 Online: 22 de Setembro de 2006, 14:42 »
Eu achei que pudesse ser, pois no meu ubuntu, nao tem aquele savedefault, ele esta apenas na opção do janelão.
Acho meio estranho esse lançe...
Vamos ver se alguem aparece com alguma idéia  ;)

Offline supermax

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Re: Grub demora...
« Resposta #10 Online: 22 de Setembro de 2006, 18:19 »
Acabei instalando o LILO, deu um trabalho danado. Depois vou postar o procedimento, vai que aparece outro  caso como o meu.
Até