Autor Tópico: Dual boot nao funciona!  (Lida 3670 vezes)

Offline tenaz3

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Dual boot nao funciona!
« Online: 27 de Setembro de 2009, 12:03 »
Bom dia povo!!
Eu sei q tem mt topico de dual boot, mas eu to escrevendo este pq eh necessario e nao  consegui arrumar o dual boot no ubuntu!
Tenho o Windows Vista e o Ubuntu , no meu menu.lst ele num identifico o vista entao eu forçei ele, mas msm assim nao deu , entao troquei o numero da partiçao pq nao sei em qual o vista esta mas também nao deu.
Meu hd eh sata, tem algo haver?


Olhem o menu.lst


Código: [Selecionar]
# 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 5

## 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=aa670079-cab9-4b5e-b92c-ebaaba96d5fd ro locale=pt_BR

## default grub root device
## e.g. groot=(hd0,0)
# groot=aa670079-cab9-4b5e-b92c-ebaaba96d5fd

## 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-15-generic
uuid aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=aa670079-cab9-4b5e-b92c-ebaaba96d5fd ro locale=pt_BR quiet splash
initrd /boot/initrd.img-2.6.28-15-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
uuid aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=aa670079-cab9-4b5e-b92c-ebaaba96d5fd ro locale=pt_BR  single
initrd /boot/initrd.img-2.6.28-15-generic

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=aa670079-cab9-4b5e-b92c-ebaaba96d5fd 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 aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=aa670079-cab9-4b5e-b92c-ebaaba96d5fd ro locale=pt_BR  single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/memtest86+.bin
quiet

#title Other operating systems:
root
title Windows Vista
root (hd0,0)  # Aqui ja tenteni 0,1,2,3 e nenhum funcionou!
savedefault
makeactive
chainloader +1

### END DEBIAN AUTOMAGIC KERNELS LIST



Offline supershow

  • Usuário Ubuntu
  • *
  • Mensagens: 50
  • O Pensamento Governa o Universo
    • Ver perfil
    • 999th Night
Re: Dual boot nao funciona!
« Resposta #1 Online: 28 de Setembro de 2009, 10:16 »
Pra que é esse root que marquei em vermelho? Pode ser isso, então tenta apagar e deixar só o que realmente diz que partição rodar o boot. Lembre que aquivos de configuração devem ser tratados com cuidado (ainda lembro de um spam que manda apagar um do windows pois o icone é um ursinho :P )


#title Other operating systems:
root
title Windows Vista
root (hd0,0)  # Aqui ja tenteni 0,1,2,3 e nenhum funcionou!
savedefault
makeactive
chainloader +1

### END DEBIAN AUTOMAGIC KERNELS LIST

Ubuntu 10.04

Offline tenaz3

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #2 Online: 28 de Setembro de 2009, 11:14 »
Nossa nem vi de onde veio esse root ai! mas eu ja troquei e mesmo assim nao funcionou! E achei a partiçao mas nada tambem

Código: [Selecionar]
# 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 5

## 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=aa670079-cab9-4b5e-b92c-ebaaba96d5fd ro locale=pt_BR

## default grub root device
## e.g. groot=(hd0,0)
# groot=aa670079-cab9-4b5e-b92c-ebaaba96d5fd

## 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-15-generic
uuid aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=aa670079-cab9-4b5e-b92c-ebaaba96d5fd ro locale=pt_BR quiet splash
initrd /boot/initrd.img-2.6.28-15-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
uuid aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=aa670079-cab9-4b5e-b92c-ebaaba96d5fd ro locale=pt_BR  single
initrd /boot/initrd.img-2.6.28-15-generic

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=aa670079-cab9-4b5e-b92c-ebaaba96d5fd 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 aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=aa670079-cab9-4b5e-b92c-ebaaba96d5fd ro locale=pt_BR  single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid aa670079-cab9-4b5e-b92c-ebaaba96d5fd
kernel /boot/memtest86+.bin
quiet

# This entry automatically added by the Debian installer for a non-linux OS

title Microsoft Windows Vista Basic
root (hd0,5)
savedefault
makeactive
chainloader +1

### END DEBIAN AUTOMAGIC KERNELS LIST


Offline Rsrocha

  • Usuário Ubuntu
  • *
  • Mensagens: 124
  • "O conhecimento só é útil se for compartilhado"
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #3 Online: 28 de Setembro de 2009, 12:13 »
Caro amigo tenaz3, eu tentaria o incluir o comando rootnoverify no lugar da root, mas como você não postou a disposição das suas partições(fdisk -l) fica um pouco difícil, em descobrirmos a partição a ser indicada ( rootnoverify (hdX,X)).

Mas, vale uma tentativa, para solucionar este seu problema, embora eu nunca tenha usado com Windows(Uso com os sistemas Linux e funciona corretamente), que seria usar a uuid para reconhecimento das partições pelo grub.

Use o comando blkid para listar suas partições, depois copie ou anote a uuid onde está a partição inicializável(Estará marcada com um asterisco, que você vai ver após o comando fdisk -l) do Windows, e no menu.lst exclua a linha root e substitua pela uuid.


« Última modificação: 28 de Setembro de 2009, 12:15 por Rsrocha »

Offline tenaz3

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #4 Online: 28 de Setembro de 2009, 19:56 »
Rsrocha eu ja tentei o rootnoverify mas também nao deu! e partiçao do windows eh a sda5 mas msm assim num vai

Código: [Selecionar]
:~$ blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="07D9-041D" TYPE="vfat"
/dev/sda2: UUID="aa670079-cab9-4b5e-b92c-ebaaba96d5fd" TYPE="ext3"
/dev/sda5: UUID="BCD620A6D62062BE" TYPE="ntfs"
/dev/sda6: UUID="D8A44EBFA44E9FBC" TYPE="ntfs"
/dev/sda7: UUID="10EC7C93EC7C7536" LABEL="Tenaz3" TYPE="ntfs"
/dev/sda8: UUID="5556b84e-3520-499b-aa36-bda2a63e19dd" TYPE="swap"

Offline Rsrocha

  • Usuário Ubuntu
  • *
  • Mensagens: 124
  • "O conhecimento só é útil se for compartilhado"
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #5 Online: 28 de Setembro de 2009, 20:33 »
Caro amigo tenaz3, agora poste o resultado do comando fdisk -l, para que possamos entender como estão dispostas as suas partições.
Outra pergunta, sobre o dual boot, a instalação foi do Linux primeiro ou do Windows?

Offline tenaz3

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #6 Online: 28 de Setembro de 2009, 23:29 »
Eu tinha o windows e coloquei o ubuntu
o fdisk - l nao aparece nada

Offline Rsrocha

  • Usuário Ubuntu
  • *
  • Mensagens: 124
  • "O conhecimento só é útil se for compartilhado"
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #7 Online: 29 de Setembro de 2009, 01:06 »
Caro amigo tenaz3, para ver o conteúdo do comando fdisk -l, você deve estar logado como root.

sudo su - Daí você digita a senha que não vai aparecer os números e "enter"
fdisk -l

Eu creio que o Windows criou uma partição pequena para os arquivos de boot, e como você instalou o Linux depois do Windows, nós conseguiremos descobrir o problema.

Offline coelhuturbo

  • Usuário Ubuntu
  • *
  • Mensagens: 68
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #8 Online: 29 de Setembro de 2009, 11:07 »

Offline fchevitarese

  • Usuário Ubuntu
  • *
  • Mensagens: 265
    • Ver perfil
    • Fred Chevitarese
Re: Dual boot nao funciona!
« Resposta #9 Online: 29 de Setembro de 2009, 16:51 »
VocÊ já tinha o vista e instalou o Ubuntu?

Se você precisa recuperar o seu grub, segue um tuto maneiro ;)

http://chevitarese.wordpress.com/2009/08/06/linux-recuperando-grub-apos-formatacao-dual-boot/

Abraços!!!
Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com

Offline tenaz3

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #10 Online: 29 de Setembro de 2009, 19:50 »
Código: [Selecionar]
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: 0xe8000000

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1               1          11       79872    6  FAT16
A partição 1 não termina no limite do cilindro.
/dev/sda2              11        1316    10485760   83  Linux
/dev/sda3            1317       30401   233625262+   f  Win95 (LBA) Partição Extendida
/dev/sda5            1317        8965    61440561    7  HPFS ou NTFS
/dev/sda6            8966       16614    61438976    6  FAT16
/dev/sda7           16615       30400   110736013+   7  HPFS ou NTFS
/dev/sda8           30401       30401        8001   82  Linux swap / Solaris



Offline Rsrocha

  • Usuário Ubuntu
  • *
  • Mensagens: 124
  • "O conhecimento só é útil se for compartilhado"
    • Ver perfil
Re: Dual boot nao funciona!
« Resposta #11 Online: 30 de Setembro de 2009, 11:55 »
Caro amigo tenaz3, que enrascada você se meteu hein!!! Como você ainda usa o ultrapassado formato FAT16(Em pendrives tudo bem em disco rígido é ruim hein)??? Com o Vista(Eu achava que nem funcionaria corretamente com o famigerado Vista)???  Uma sugestão é que você reinstale tudo(Primeiro o Vista só que com na pior das hipóteses em FAT32 mas o ideal é em NTFS). Note que você tem até problema com limites de cilindro e isto vai lhe dar um milhão e meio de problemas.
Uma tentativa seria esta, veja se funciona, uma vez que o para Vista inicializar em uma partição extendida seria uma romaria(No no caso da partição 3) então veja se isto pode servir:

title      Microsoft Windows Vista Basic
UUID="10EC7C93EC7C7536"
savedefault
makeactive
chainloader   +1