Meu computador recentemente teve uma atualização de hardware e agora roda no Windows 7. Eu decidi instalar o Ubuntu 11.04 como dual boot usando o ISO que obtive do ubuntu.com baixado no meu pendrive.
Reiniciando com o stick USB, eu consegui instalar o Ubuntu 11.04 escolhendo a opção:
Install Ubuntu 11.04 side by side with Windows 7 (or something like that).
Nenhum erro foi encontrado na instalação. No entanto, ao reiniciar, não havia GRUB; o sistema foi direto para o Windows 7.
Procurando respostas, encontrei estas:
Seguindo as instruções deles, recebi:
Script de informações de inicialização 0,60 de 17 de maio de 2011
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
=> Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sdb.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos7)/boot/grub on this drive.
sda1: __________________________________________________ ________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /grldr /bootmgr /Boot/BCD /grldr
sda2: __________________________________________________ ________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe
sdb1: __________________________________________________ ________________________
File system: vfat
Boot sector type: SYSLINUX 4.02 debian-20101016 ...........>...r>....... ......0...~.k...~...f...M.f.f....f..8~....>2}
Boot sector info: Syslinux looks at sector 1437504 of /dev/sdb1 for its
second stage. SYSLINUX is installed in the directory.
The integrity check of the ADV area failed. According
to the info in the boot sector, sdb1 starts at sector
0. But according to the info from fdisk, sdb1 starts
at sector 62.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux/syslinux.cfg /ldlinux.sys
sdc1: __________________________________________________ ________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sdc2: __________________________________________________ ________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdc5: __________________________________________________ ________________________
File system: swap
Boot sector type: -
Boot sector info:
sdc6: __________________________________________________ ________________________
File system: swap
Boot sector type: -
Boot sector info:
sdc7: __________________________________________________ ________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdc8: __________________________________________________ ________________________
File system: swap
Boot sector type: -
Boot sector info:
Voltando para o Ubuntu e executando sudo fdisk -l
, recebi estes:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002f393
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 19458 156185600 7 HPFS/NTFS
Disk /dev/sdb: 2011 MB, 2011168768 bytes
62 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f2ab9
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1021 1962331 c W95 FAT32 (LBA)
Disk /dev/sdc: 1000.2 GB, 1000202043392 bytes
255 heads, 63 sectors/track, 121600 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00261ddd
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 60657 487222656+ 7 HPFS/NTFS
/dev/sdc2 60657 121600 489527681 5 Extended
/dev/sdc5 120563 121600 8337703+ 82 Linux swap / Solaris
/dev/sdc6 120073 120562 3930112 82 Linux swap / Solaris
/dev/sdc7 60657 119584 473328640 83 Linux
/dev/sdc8 119584 120072 3923968 82 Linux swap / Solaris
Devo continuar e fazer o seguinte?
-
Assumindo que o Ubuntu 11.04 foi instalado no dispositivo sdb1, faça o seguinte:
sudo mount /dev/sdb1 /mnt
-
Então faça isso:
sudo grub-install--root-directory=/mnt /dev/sdb
Observe que há dois traços na frente do diretório raiz e não estou usando o sdb1, mas o sdb.
-
Como o comando na etapa 15 tinha reinstalado o Grub 2, agora precisamos desmontar o / mnt
(ou seja, sdb1) para limpar.
-
Faça isso:
sudo umount /mnt
Reinicialize e remova o CD / DVD do Ubuntu 11.04 da bandeja de disco. Entre no Ubuntu 11.04 (você não tem escolha, mas fará com que você faça o login no Ubuntu 11.04 neste momento).
-
Abra um terminal no Ubuntu 11.04 (usando instalação real, não ao vivo CD / DVD). Execute este comando:
sudo update-grub
-
Reinicie a máquina.