Autor Tópico: Win Seven não inicia.  (Lida 1735 vezes)

Offline Robles

  • Usuário Ubuntu
  • *
  • Mensagens: 11
  • Iniciante Linux
    • Ver perfil
Win Seven não inicia.
« Online: 16 de Junho de 2009, 22:07 »
Instalei o ubuntu 9.04 e correu tudo certo mas o Win não entrou mais...no boot eu escolho a opção windows e ele entra na tela de inicialização e após algusn segundos ele dá boot e entra no grub novamente.
o HD está particionado e consta a partição do win instalada e mais outra partição ntfs ...
« Última modificação: 20 de Agosto de 2009, 09:25 por Robles »

Offline Robles

  • Usuário Ubuntu
  • *
  • Mensagens: 11
  • Iniciante Linux
    • Ver perfil
Re: Win Seven não inicia
« Resposta #1 Online: 17 de Junho de 2009, 09:47 »
Pior...coloquei o cd do win pra recuperar e ele não consegue porque simplesmente não acha o HD...nadinha...não dá nem pra reinstalar o Win ...ele não acha nada....mas no ubuntu está lá a partição do win com os arquivos....uai?! ???

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Win Seven não inicia
« Resposta #2 Online: 17 de Junho de 2009, 09:58 »
Abra o terminal (Aplicações > Acessórios > Terminal), digite os comandos abaixo e coloque aqui as respostas:

Citar
sudo  fdisk  -l

Citar
sudo  blkid

Citar
gedit  /boot/grub/menu.lst

Este último arquivo vai abrir o editor com o conteúdo do arquivo. Cole aqui o conteúdo deste arquivo também.
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline Robles

  • Usuário Ubuntu
  • *
  • Mensagens: 11
  • Iniciante Linux
    • Ver perfil
Re: Win Seven não inicia
« Resposta #3 Online: 17 de Junho de 2009, 11:00 »
woodpecker@woodpecker:~$ sudo fdisk -l

Disco /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x70092676

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1           28444       30401    15727635   83  Linux
/dev/sda2   *           1          13      102400   42  SFS
A partição 2 não termina no limite do cilindro.
/dev/sda3              13       11474    92057600   42  SFS
/dev/sda4           11475       28443   136303492+   5  Estendida
/dev/sda5           11475       11543      554179+  82  Linux swap / Solaris
/dev/sda6           11544       28443   135749218+  83  Linux

Partições lógicas fora da ordem do disco
woodpecker@woodpecker:~$ sudo blkid
/dev/sda1: UUID="b3cfa7e8-9f3f-4084-863f-4474f2ed23f1" TYPE="ext4"
/dev/sda2: UUID="B6220B04220AC8F7" LABEL="System Reserved" TYPE="ntfs"
/dev/sda3: UUID="8ABE52B6BE529B11" TYPE="ntfs"
/dev/sda5: TYPE="swap" UUID="b73ecc62-5862-48d4-a9ec-6ebdcc26ed4c"
/dev/sda6: UUID="ef80dc29-c534-4dc2-9cd3-729bc00ef26d" TYPE="reiserfs"
woodpecker@woodpecker:~$ gedit /boot/grub/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=b3cfa7e8-9f3f-4084-863f-4474f2ed23f1 ro locale=pt_BR

## default grub root device
## e.g. groot=(hd0,0)
# groot=b3cfa7e8-9f3f-4084-863f-4474f2ed23f1

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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## 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 9.04, kernel 2.6.28-11-generic
uuid      b3cfa7e8-9f3f-4084-863f-4474f2ed23f1
kernel      /boot/vmlinuz-2.6.28-11-generic root=UUID=b3cfa7e8-9f3f-4084-863f-4474f2ed23f1 ro locale=pt_BR quiet splash
initrd      /boot/initrd.img-2.6.28-11-generic
quiet

title      Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid      b3cfa7e8-9f3f-4084-863f-4474f2ed23f1
kernel      /boot/vmlinuz-2.6.28-11-generic root=UUID=b3cfa7e8-9f3f-4084-863f-4474f2ed23f1 ro locale=pt_BR  single
initrd      /boot/initrd.img-2.6.28-11-generic

title      Ubuntu 9.04, memtest86+
uuid      b3cfa7e8-9f3f-4084-863f-4474f2ed23f1
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/sda2
title      Windows Vista (loader)
rootnoverify   (hd0,1)
savedefault
makeactive
chainloader   +1


Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Win Seven não inicia
« Resposta #4 Online: 17 de Junho de 2009, 11:34 »
Observando o resultado do comando sudo fdisk -l (abaixo) eu fiquei em uma dúvida: Em qual partição esta o windows realmente? /dev/sda2 ou /dev/sda3?

Citar
Disco /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x70092676

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1           28444       30401    15727635   83  Linux
/dev/sda2   *           1          13      102400   42  SFS   <--------------- Esta aqui?
A partição 2 não termina no limite do cilindro.
/dev/sda3              13       11474    92057600   42  SFS <--------------- Ou esta aqui?
/dev/sda4           11475       28443   136303492+   5  Estendida
/dev/sda5           11475       11543      554179+  82  Linux swap / Solaris
/dev/sda6           11544       28443   135749218+  83  Linux

Para não correr grandes riscos antes vamos fazer uma cópia de segurança do arquivo /boot/grub/menu.lst. Usando o terminal (Aplicações > Acessórios > Terminal) digite o comando abaixo:

Citar
sudo   cp    /boot/grub/menu.lst    /boot/grub/menu.lst.bkp.20090617

Caso sua reposta seja que o windows esta na partição /dev/sda3 podemos tentar uma alteração. Para isso edite o arquivo:

Citar
sudo   gedit   /boot/grub/menu.lst

Agora edite a parte do arquivo que se refere ao windows (as últimas linhas) deixando igual abaixo:

Citação de: Alterei apenas a parte em NEGRITO
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title      Windows Vista (loader)
root   (hd0,2)
savedefault
makeactive
chainloader   +1

Caso não funcione pode ser porque a partição do windows não esta como bootável (hoje esta a partição /dev/sda2), assim no terminal você deverá chamar o gparted (conforme abaixo) e mudar o flag da partição /dev/sda3 para bootável, e retirando este flag da /dev/sda2.

Citar
sudo  gparted

Espero que resolva, mas fico no aguardo de um retorno caso necessário.

[]'s e boa sorte

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

Offline Robles

  • Usuário Ubuntu
  • *
  • Mensagens: 11
  • Iniciante Linux
    • Ver perfil
Re: Win Seven não inicia
« Resposta #5 Online: 17 de Junho de 2009, 12:41 »
Mudei o root para hd0,2 e reiniciei a máq e entrei na opção win e agora nem aparece a tela de inicialização do win vai direto para tela preta com a inscrição "starting up...falta boot MGR...prima Crtl+alt+del para reiniciar...
E olha eu aqui denovo...
Em tempo, não entendi a última parte...não consegui fazer o ítem abaixo pq no terminal ao escrever sudo gparted ele dá "comand not found"
"Caso não funcione pode ser porque a partição do windows não esta como bootável (hoje esta a partição /dev/sda2), assim no terminal você deverá chamar o gparted (conforme abaixo) e mudar o flag da partição /dev/sda3 para bootável, e retirando este flag da /dev/sda2."
« Última modificação: 18 de Junho de 2009, 10:49 por Robles »