Autor Tópico: Instalação do Ubuntu  (Lida 8089 vezes)

Offline serfran

  • Usuário Ubuntu
  • *
  • Mensagens: 76
    • Ver perfil
Instalação do Ubuntu
« Online: 12 de Novembro de 2007, 17:11 »
Boa tarde,

Tenho um Notebook Toshiba com Windows XP.
Meu HD tem tres partições C/ D/ e E/ e 10GB que deixei livre para o Ubuntu.
Baixei a imagem ISO do Ubuntu e criei o CD.
Testei o CD e o LiveCD estava funcionando perfeitamente.
A partir do Live CD optei pela instalação do Ubuntu no HD.
Parece que instalou tudo bem, mas quando reinicializo o Notebook ele informa:
"GRUB Hard Disk Error" e para aí e não entra nem no Windows.
Dei boot pelo CD do Ubuntu ele funciona normalmente e vejo as minhas partições e a nova com o Ubuntu.
Como faço para corrigir o Grub?

At
Sergio

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #1 Online: 12 de Novembro de 2007, 17:14 »
Com o LiveCD abra um terminal (Aplicações > Acessórios > Terminal), e execute os comandos abaixo:

Código: [Selecionar]
blkid
Código: [Selecionar]
sudo fdisk -l
E cole o resultado aqui para tentarmos ajudar. Após isto ainda precisaremos do seu arquivo menu.lst que esta gravado na partição Ubuntu, mas para ajuda-lo a abrir antes precisamos destas informações.

[]'s

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

Offline serfran

  • Usuário Ubuntu
  • *
  • Mensagens: 76
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #2 Online: 13 de Novembro de 2007, 14:18 »
Valeu mesmo. Aí vai:

Resultadado do comando blkid:

/dev/mmcblkop1: LABEL="WORKCARTAO" UUID="449C-4A5B" TYPE="vfat"

Resultadado do comando sudo fdisk -l:

Disco /dev/sda: 59.7 GB, 59740208640 bytes
255 heads, 63 sectors/track, 7263 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7ecd7ecd

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1               1        2423    19462716    7  HPFS ou NTFS
/dev/sda2            2424        4845    19454715    7  HPFS ou NTFS
/dev/sda3            4846        6056     9727357+   7  HPFS ou NTFS
/dev/sda4            6057        7263     9695227+   5  Estendida
/dev/sda5   *        6057        7205     9229311   83  Linux
/dev/sda6            7206        7263      465853+  82  Linux swap / Solaris

Disco /dev/mmcblk0: 4236 MB, 4236247040 bytes
5 heads, 4 sectors/track, 413696 cylinders
Units = cilindros of 20 * 512 = 10240 bytes
Disk identifier: 0xf16c26b1

   Dispositivo Boot Início Fim Blocos Id Sistema
/dev/mmcblk0p1               4      413696     4136928+   b  W95 FAT32

Arquivo menu.lst

# 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=819cded4-26fa-4647-ba7c-6ae218671736 ro

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

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

## 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 locale=pt_BR

## 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      (hd0,4)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=819cded4-26fa-4647-ba7c-6ae218671736 ro quiet splash locale=pt_BR
initrd      /boot/initrd.img-2.6.22-14-generic
quiet

title      Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=819cded4-26fa-4647-ba7c-6ae218671736 ro single
initrd      /boot/initrd.img-2.6.22-14-generic

title      Ubuntu 7.10, memtest86+
root      (hd0,4)
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


Obrigado,

Sergio




Offline serfran

  • Usuário Ubuntu
  • *
  • Mensagens: 76
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #3 Online: 14 de Novembro de 2007, 17:29 »
Será que vc poderia me dar uma ajuda pois estou com a máquina parada?
Grato
Sergio

Offline FaBMak

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 722
    • Ver perfil
    • fabmak://website
Re: Instalação do Ubuntu
« Resposta #4 Online: 14 de Novembro de 2007, 22:22 »
Três perguntas:

1 - Vc tem uma leitora de cartões plugada no seu notebook ?
2 - Essa leitora estava conectada quando vc instalou o Ubuntu ?
3 - Vc se importaria de reinstalar o Ubuntu ?

Tem alguma coisa errada em seu sistema, o comando blkid deveria retornar todas as sua partições e isso não está acontecendo.

Outra coisa, quando vc instalou o Ubuntu vc selecionou gravar o Grub onde, na MBR ou na partição raiz ?

FaBMak
"Não creias impossível o que apenas improvável parece". (Shakespeare)
fabmak://website | http://twitter.com/fabmak

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #5 Online: 15 de Novembro de 2007, 00:03 »
Antes de seguir as dicas do FaBMak, que é o que deve mesmo dar certo, podemos fazer ao menos um teste, por desencargo de consciência?

É que odeio ter a necessidade de reinstalar o Linux por causa de um problema.

Bem, se aceitar vamos lá. Com o LiveCD acesse o terminal (Acessórios > Aplicações > Terminal) e execute os comandos:

Monte a partição raiz em um diretório e reinstale o GRUB, por desencargo de confiança:

Código: [Selecionar]
sudo  mount  -t  ext3  /dev/sda5   /mnt
sudo mount  -o  bind  /dev  /mnt/dev
sudo mount  -o  bind  /proc  /mnt/proc
sudo chroot  /mnt
sudo grub-install  /dev/sda

Podemos tirar também as informações de UUID do seu arquivo menu.lst, mais uma vez por desencargo de conciência. Se quiser as alterações estão em negrito abaixo:

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=819cded4-26fa-4647-ba7c-6ae218671736 ro

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

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

## 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 locale=pt_BR

## 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      (hd0,4)
kernel      /boot/vmlinuz-2.6.22-14-generic  /dev/sda5  ro quiet splash locale=pt_BR
initrd      /boot/initrd.img-2.6.22-14-generic
quiet

title      Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,4)
kernel      /boot/vmlinuz-2.6.22-14-generic  /dev/sda5  ro single
initrd      /boot/initrd.img-2.6.22-14-generic

title      Ubuntu 7.10, memtest86+
root      (hd0,4)
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

Se quiser testar estamos ai.

[]'s

Cristiano.

obs.: Vou listar bons tópicos sobre o GRUB:

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

Offline serfran

  • Usuário Ubuntu
  • *
  • Mensagens: 76
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #6 Online: 15 de Novembro de 2007, 09:09 »
Olá,

Vocês estão sendo muito bacanas, mas como a resposta estava demorando um pouco e eu preciso muito desta máquina, tomei a iniciativa de reinstalar o Ubuntu em novas condições:
a) Realmente quando instalei da primeira vez deixei um Cartão SD de 4GB na leitora de cartões e que que agora o removi.
b) Fiz um BackUp dos meus dados contidos nas partições D e E e as desabilitei.
c) Portanto nesta nova instalação, minha máquina estava apenas com o Windows XP ocupando 20 GB do meu HD na primeira partição.
d) Desinstalei o grub com o comando fdisk /mbr, de um CD "bootavel" do Windows 98 SE.
e) Reiniciei o Notebook com o CD do Ubuntu e reinstalei todo o Ubuntu criando as partições manualmente de forma que criei a SWAP e a / .
f) Instalei e tudo correu normalmente.
g) Depois da instalação criei, a partir do Windows XP minha partição de dados. Ele ficou assim:
Windows XP - Swap - Ubuntu - Dados
h) Reiniceiei a máquina e lá estava: GRUB Hard Disk Error

Bem aí vão agora os resultados dos comandos:

root@viking:/boot/grub# blkid
/dev/sda1: UUID="5424147D241463F0" LABEL="WorkSys" TYPE="ntfs"
/dev/sda2: TYPE="swap" UUID="805b4e20-1377-4dfc-a7a1-e5a697a61380"
/dev/sda3: UUID="65879dc5-0d15-4cd4-b87d-98b0914d897f" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda4: UUID="A54A59E54A58CCF" LABEL="WorkDados" TYPE="ntfs"

Segue abaixo meu arquivo agora menu.lst


# 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=65879dc5-0d15-4cd4-b87d-98b0914d897f ro

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

## 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 locale=pt_BR

## 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      (hd0,2)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=65879dc5-0d15-4cd4-b87d-98b0914d897f ro quiet splash locale=pt_BR
initrd      /boot/initrd.img-2.6.22-14-generic
quiet

title      Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,2)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=65879dc5-0d15-4cd4-b87d-98b0914d897f ro single
initrd      /boot/initrd.img-2.6.22-14-generic

title      Ubuntu 7.10, memtest86+
root      (hd0,2)
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

----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Como houve estas mudanças não sei agora se devo seguir as orientações enviadas anteriormente pelo FaBMak, pelo Cristiano ou o que fazer!!!

Só consigo emtra em minha máquina dando boot com o CD do Windows 98 e mandando iniciar do HD e aó aparecem as opções do Ubuntu e do Windows XP.

Desculpem-me pela ousadia, mesmo sabendo que é feriado, se puderem me dar uma dica agradeço bastante.
Sergio

Offline serfran

  • Usuário Ubuntu
  • *
  • Mensagens: 76
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #7 Online: 15 de Novembro de 2007, 09:43 »
Complementando:

Fiz as alteraçoes no menu.lst tirando o UUID e substituindo por /dev/sda3 e reinstalei o grub conforme os comandos enviados, reinicializei a máquina e lá estava:
GRUB Hard Disk Error

Volto e ter que acessar a máquina pelo CD do Windows 98 SE.

Na isntalação do Ubuntu e na criação da partições deixei marcada a opção "inicio".

Outra: já tive instalado o FEDORA neste Notebook com o Grub e não teve nenhum problema. Só que não o usava e desinstalei. Como agora estou precisando do Linux optei pelo Ubuntu.
Sergio

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #8 Online: 15 de Novembro de 2007, 12:52 »
Vou ler com algum cuidado o tópico para ver o que é possível, mas de qualquer forma uma boa tentativa é seguir o tópico:

Usando o boot-loader do Windows XP em vez de lilo ou grub - 10/11/2007

Entenda que ainda estou lendo seu tópico para ver se ajudo a descobrir qual é o problema com o GRUB.

[]'s

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

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #9 Online: 15 de Novembro de 2007, 15:13 »
Uma pergunta. Lendo sua mensagem ficou com a seguinte dúvida. Primeiro vou postar a parte da sua mensagem que trouxe a dúvida:

....
c) Portanto nesta nova instalação, minha máquina estava apenas com o Windows XP ocupando 20 GB do meu HD na primeira partição.
d) Desinstalei o grub com o comando fdisk /mbr, de um CD "bootavel" do Windows 98 SE.
e) Reiniciei o Notebook com o CD do Ubuntu e reinstalei todo o Ubuntu criando as partições manualmente de forma que criei a SWAP e a / .
f) Instalei e tudo correu normalmente.
g) Depois da instalação criei, a partir do Windows XP minha partição de dados. Ele ficou assim:
Windows XP - Swap - Ubuntu - Dados
....


Até a tarefa f) (marcada em negrito acima) você estava tendo acesso aos sistemas pelo GRUB? Windows e Ubuntu?

Apenas após a criação da partição dados o problema apareceu?

Como criou esta partição de dados? Na instalação do Ubuntu já deixou o espaço dela reservado, ou entrou no windows e tirou parte da partição do Ubuntu?

Dependendo a situação será fácil de resolver, dependendo não.

Aguardo sua resposta.

[]'s

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

Offline Glauco Hass

  • Usuário Ubuntu
  • *
  • Mensagens: 416
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #10 Online: 15 de Novembro de 2007, 18:50 »
Citar
Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1               1        2423    19462716    7  HPFS ou NTFS
/dev/sda2            2424        4845    19454715    7  HPFS ou NTFS
/dev/sda3            4846        6056     9727357+   7  HPFS ou NTFS
/dev/sda4            6057        7263     9695227+   5  Estendida
/dev/sda5   *        6057        7205     9229311   83  Linux
/dev/sda6            7206        7263      465853+  82  Linux swap / Solaris
Uma coisa que pode parecer banal, mas pode confundir o grub é a marcação de boot no sda5, ao invés do sda1. Já li sobre pessoas que resolveram seus problemas com o grub deixando o boot na primeira partição, mesmo que seja windows. O importante é ser na primeira partição.

Offline serfran

  • Usuário Ubuntu
  • *
  • Mensagens: 76
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #11 Online: 15 de Novembro de 2007, 20:42 »
Olá Cristiano,

Respondendo a sua pergunta:

1) Até a tarefa f) (marcada em negrito acima) você estava tendo acesso aos sistemas pelo GRUB? Windows e Ubuntu?
Resposta: Não. Estava tendo acesso a tabela de inicialização pelo CD do Windows 98 SE "bootável" (Iniciar do Disco Rígido) e aí memostrava todas as possibilidades de acesso. Entrei no XP e pelo administrador de discos do XP deletei as partições do Ubuntu e as minhas de dados antigas exceto a do XP. Com fdisk /mbr deletei o grub.

2) Apenas após a criação da partição dados o problema apareceu?
Resposta: Não. Logo que instalei o Ubuntu e que tirei seu CD para reiniciar, já deu o erro. Criei as partições de dados depois de instalar o Ubuntu, a partir do administrador de discos do XP.

3) Como criou esta partição de dados? Na instalação do Ubuntu já deixou o espaço dela reservado, ou entrou no windows e tirou parte da partição do Ubuntu?
Resposta: Conforme dito acima, a partir do Administrador de Discos do XP. Na instalação do Ubuntu deixei o espaço dela reservado.

Obrigado,
Sergio

Offline serfran

  • Usuário Ubuntu
  • *
  • Mensagens: 76
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #12 Online: 16 de Novembro de 2007, 07:42 »
Respondendo ao Glauco,

Inicialamente obrigado, mas creio não ser este o problema pois o boot já está apontando para o primeira partição. Veja:

serfran@viking:~$ sudo fdisk -l
[sudo] password for serfran:

Disco /dev/sda: 59.7 GB, 59740208640 bytes
255 heads, 63 sectors/track, 7263 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90d390d3

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1   *           1        2423    19462716    7  HPFS ou NTFS
/dev/sda2            2424        2545      979965   82  Linux swap / Solaris
/dev/sda3            2546        3761     9767520   83  Linux
/dev/sda4            3762        7262    28121782+   7  HPFS ou NTFS

Estou certo?

Abs,

Offline FaBMak

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 722
    • Ver perfil
    • fabmak://website
Re: Instalação do Ubuntu
« Resposta #13 Online: 16 de Novembro de 2007, 12:08 »
Realmente intrigante esse problema. Mas parece que agora a coisa melhorou, pelo menos os resultados dos comandos fazem sentido, no entanto volto a perguntar:

Outra coisa, quando vc instalou o Ubuntu onde vc selecionou para gravar o Grub ? Na MBR ou na partição raiz ?

FaBMak
"Não creias impossível o que apenas improvável parece". (Shakespeare)
fabmak://website | http://twitter.com/fabmak

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Instalação do Ubuntu
« Resposta #14 Online: 16 de Novembro de 2007, 12:17 »
Realmente intrigante esse problema. Mas parece que agora a coisa melhorou, pelo menos os resultados dos comandos fazem sentido, no entanto volto a perguntar:

Outra coisa, quando vc instalou o Ubuntu onde vc selecionou para gravar o Grub ? Na MBR ou na partição raiz ?

FaBMak


FaBMak salvo me engano você pode perder os dados da partição caso selecione ela, não?

Para tirar a dúvida o serfran poderia dar boot no pc com o LiveCD, abrir o terminal (Aplicações > Acessórios > Terminal)
montar a partição e listar ela para nós.

Montando partição:
Código: [Selecionar]
sudo mount -t ext3 /dev/sda3  /mnt
Lendo as informações da partição:
Código: [Selecionar]
ls -l /mnt
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!