Autor Tópico: Linux Ubuntu, problema ao Iniciar!  (Lida 5809 vezes)

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Linux Ubuntu, problema ao Iniciar!
« Online: 29 de Dezembro de 2007, 00:44 »
Pessoal, eu peguei o Live CD do Ubuntu Gutsy Gibbon (7.10) e instalei ele, foi tudo normal...
Eu já tinha ele antes, mas tive que formatar o PC e troquei placa mãe e a placa de vídeo...
Até ai tudo bem, mas depois de instalar o Ubuntu 7.10 e reiniciar o PC ele não iniciava, aparecia aquela tela preta com barra laranja (tela de boot) e não saia dali...

O que eu faço?
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #1 Online: 29 de Dezembro de 2007, 00:53 »
LordAngels qual a configuração do seu PC?

Assim que escolhe o Ubuntu no boot tem como clicar Ctrl + Alt + F1 e ver se acha alguma mensagem de erro, ou em que parte ele para?

[]'s

Cristiano
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #2 Online: 29 de Dezembro de 2007, 01:01 »
Opa kra, eu vou tentar o que você falou...
As configurações do meu PC são as seguintes:
Placa Mãe Gigabyte I945
Placa de Vídeo XFX GeForce 8600GTS 512MB
HD Samsung IDE 80GB
HD Samsung IDE 300GB (onde eu quero instalar o Linux)
Processador Intel Pentiun 4 3.00GHz
1GB de Memória Ram
Placa Raid (nem sei se é placa)...

Abraços
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #3 Online: 29 de Dezembro de 2007, 01:31 »
Bom, eu fiz o que você falou...Mas apareceu apenas:
Loading Check (acho que é isso)
Please Wait

Abraços
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #4 Online: 29 de Dezembro de 2007, 01:38 »
Bom, eu fiz o que você falou...Mas apareceu apenas:
Loading Check (acho que é isso)
Please Wait

Abraços

Rapaz se não me engano isso acontece comigo quando o GRUB é montado de forma errada, normalmente porque o HD IDE foi reconhecido como SATA, mas o GRUB fica errado. Tem como entrar com o LiveCD ai e colocar aqui o conteúdo do arquivo /boot/grub/menu.lst (mas o gravado no HD, e não o do LiveCD), e também o resultado do comando:

Código: [Selecionar]
sudo fdisk -l
[]'s

Cristiano
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #5 Online: 29 de Dezembro de 2007, 03:18 »
Opa kra, eu não entendi muito bem  :-[ ...
Eu entro no Live CD, entro no meu HD e vejo o que ta escrito no "menu.lst" e posto aqui o que ta escrito? Seria isso?

Abraços
Vlw
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #6 Online: 29 de Dezembro de 2007, 19:13 »
Opa kra, eu não entendi muito bem  :-[ ...
Eu entro no Live CD, entro no meu HD e vejo o que ta escrito no "menu.lst" e posto aqui o que ta escrito? Seria isso?

Abraços
Vlw

Rapaz eu te esperei o que pude, mas acabei indo dormir.

Bem você vai entrar com o LiveCD, vai abrir um terminal (Aplicações > Acessórios > Terminal), vai executar o comando:

Código: [Selecionar]
sudo fdisk -l
Vai identificar qual é a partição de instalação do Ubuntu (digamos por exemplo /dev/sda2). Ai vai pegar esta informação e vai montar a partição:

Código: [Selecionar]
mount   /dev/sda2    /mnt
Com o comando a instalação do ubuntu esta disponível a partir do diretório /mnt. Assim você pode abrir com o Editor de Textos (Aplicações > Acessórios > Editor de Textos) o arquivo que estará disponível em /mnt/boot/grub/menu.lst.

Coloque aqui o conteúdo do arquivo, coloque também a resposta para os comandos abaixo:

Código: [Selecionar]
blkid
e

Código: [Selecionar]
sudo fdisk -l
Com estas informações vamos editar o referido arquivo e tirar as informações de UUID dele. Aproveitando apresente também o conteúdo do arquivo fstab (que estará em /mnt/etc/fstab).

Estou no aguardo.

[]'s

Cristiano
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #7 Online: 29 de Dezembro de 2007, 19:51 »
Opa kra, desculpe por nao ter respondido ontem, mas aqui esta o que fala no fdisk.
Citar
Disk /dev/sda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e0499

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9733    78180291    7  HPFS/NTFS

Disk /dev/sdb: 300.0 GB, 300067970560 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00048fd6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       36072   289748308+  83  Linux
/dev/sdb2           36073       36481     3285292+  82  Linux swap / Solaris

E o que esta escrito no meu menu.lst e isso aqui
Citar
# 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=e8be2805-5316-4ab0-89f4-54932f5d7605 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

## 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 7.10, kernel 2.6.22-14-generic
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=e8be2805-5316-4ab0-89f4-54932f5d7605 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
quiet

title      Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=e8be2805-5316-4ab0-89f4-54932f5d7605 ro single
initrd      /boot/initrd.img-2.6.22-14-generic

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

(estou com o teclado em ingles)
Abracos 
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #8 Online: 30 de Dezembro de 2007, 01:32 »
Antes de fazer qualquer alteração leia até o fim, ok?



Perfeito LordAngels!

Pelo que falou seus HD's são IDE mas o sistema reconheceu eles como sata. Veja abaixo:

Citar
Disk /dev/sda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e0499

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9733    78180291    7  HPFS/NTFS

Disk /dev/sdb: 300.0 GB, 300067970560 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00048fd6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       36072   289748308+  83  Linux
/dev/sdb2           36073       36481     3285292+  82  Linux swap / Solaris

Então vamos mesmo ter que fazer umas correções no seu menu.lst. Antes de fazer as alterações entenda que vai ter que fazer todo o processo anterior, usando o LiveCD, mas na hora de editar o arquivo vai precisar ser conforme o comando abaixo (executado pelo terminal), pois o arquivo tem restrições de acesso para alteração.

Código: [Selecionar]
sudo   gedit    /mnt/boot/grub/menu.lst
Uma vez que o arquivo foi editado troque todo o conteúdo pelo do arquivo abaixo e salve.

Citar
# menu.lst - See: grub(Legal, info grub, update-grub(Legal
#            grub-install(Legal, grub-floppy(Legal,
#            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=e8be2805-5316-4ab0-89f4-54932f5d7605 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

## 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 7.10, kernel 2.6.22-14-generic
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/sdb1 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
quiet

title      Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/sdb1 ro single
initrd      /boot/initrd.img-2.6.22-14-generic

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

Uma coisa: Antes de editar o arquivo faça um backup, por segurança:

Código: [Selecionar]
sudo   cp    /mnt/boot/grub/menu.lst     /mnt/boot/grub/menu.lst.bkp.20071230
E uma última má notícia. Toda vez que atualizar o kernel do Ubuntu vai ter que fazer estas alterações, infelizmente. Sei porque tenho este problema também.

Dá um retorno se funcionou, ok? Tô no aguardo.

[]'s

Cristiano
« Última modificação: 30 de Dezembro de 2007, 01:37 por clcampos »
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #9 Online: 30 de Dezembro de 2007, 02:15 »
Opa kra, desculpa por não ter respondido antes, eu vou la ver se funcionou...
Pera ai..

Vlw

Abraços
________
Ainda nao funcionou, eu tentei de novo aqui e agora vo reiniciar o computador.
Mas em principio a barra ainda nao esta carregando..
« Última modificação: 30 de Dezembro de 2007, 02:36 por LordAngels »
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #10 Online: 30 de Dezembro de 2007, 02:42 »
Não consegui kra, tentei duas vezes... Salvei o arquivo e tudo o mais..
Mas não entro de nenhum modo, ficou como se tivesse carregando..

Abraços
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #11 Online: 30 de Dezembro de 2007, 20:25 »
Não consegui kra, tentei duas vezes... Salvei o arquivo e tudo o mais..
Mas não entro de nenhum modo, ficou como se tivesse carregando..

Abraços

Ainda para no mesmo lugar?
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #12 Online: 30 de Dezembro de 2007, 23:04 »
Infelizmente está ainda parando no mesmo lugar...
Ele para logo no inicio, quando o laranja ainda começa a aparecer, mais ou menos dois milimetros de laranja na barra...

Abraços
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #13 Online: 30 de Dezembro de 2007, 23:19 »
Infelizmente está ainda parando no mesmo lugar...
Ele para logo no inicio, quando o laranja ainda começa a aparecer, mais ou menos dois milimetros de laranja na barra...

Abraços

Você esta copiando o arquivo que indiquei no local correto mesmo?

Tem como montar a partição /dev/sdb2 no diretório mnt (usando o comando mount conforme já passado) e copiar também o arquivo:

/mnt/boot/grub/decive.map

Cara a situação é igual demais a um PC meu para não ser isto, e resolvo aqui em  1 minuto, e to me enrolando todo com você... hehehe...

No aguardo.

Cristiano
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline LordAngels

  • Usuário Ubuntu
  • *
  • Mensagens: 33
  • Linux Ubuntu 7.04
    • Ver perfil
Re: Linux Ubuntu, problema ao Iniciar!
« Resposta #14 Online: 30 de Dezembro de 2007, 23:49 »
Opa kra, eu vou tentar daqui a pouco.. Eu estou fazendo um download aqui e não posso reiniciar o PC.. Daqui a mais ou menos 40 minutos eu posto aqui o que está no decive.map..

Abraços
<_PcFórum User_LordAngels> WwW.PcForum.cOm.Br <_PcFórum User_LordAngels>