[Ubuntu-BR] Problema grub com 3 SO

Gustavo{Ozzy} linux em paradoxo.inf.br
Quarta Junho 17 19:32:37 UTC 2009


Eu sempre, sempre resolvi assim : (umas 4 x já, sempre funcionou, não só 
no meu pc, mas em meus clientes tb!)

1 - Rode o Live CD do Ubuntu.
2 - Abra o terminal (Aplicacoes -> Acessorios -> Terminal)
3 - Execute:

sudo su
mkdir root
mount -t reiserfs -o rw /dev/sda5 /
mount -t reiserfs -o rw /dev/sda5 /home/ubuntu/root

*Nao esqueca de trocar ext3 pelo tipo de particao e sda6 pela particao 
onde voce instalou o Ubuntu!

cp -R /home/ubuntu/root/boot/grub /boot

/home/ubuntu/root/sbin/grub-install /dev/sda

=================================================
eu tb tenho 3 S.O. (em certas maquias de teste, até 4) . Como no seu 
caso, porém , eu gostaria que o grub já mostrasse os 2 windows q tenho, 
mas ele mostra a opção do Vista e depois eu escolho ou o vista ou o xp. 
gostaria q os 3 ficassem lá no grub já, logo de cara! Mas isso ainda 
naum consegui!
:-D
==================================================


Marcos Dionísio Ribeiro do Nascimento escreveu:
> Caros amigos
> 
> Tenho um hd com 3 partições:
> 
> 
>    - Ubuntu
>    - Windows XP
>    - Windons server 2003
> 
> Instalei o XP e pedir o grub.
> Mesmos seguindo o procedimento descrito na lista do ubuntu e outras ajudas
> na internet não conseguir resolver.
> Abaixo como tentei resolver:
> 
> 
> ubuntu em ubuntu:~$ sudo fdisk -l
> 
> Disco /dev/sda: 160.0 GB, 160041885696 bytes
> 255 heads, 63 sectors/track, 19457 cylinders
> Units = cilindros of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x783d783d
> 
> Dispositivo Boot Início Fim Blocos Id Sistema
> /dev/sda1   *           1        7649    61440561    7  HPFS ou NTFS
> /dev/sda2            7650       14230    52861882+   7  HPFS ou NTFS
> /dev/sda3           14231       19457    41985877+   5  Estendida
> /dev/sda5           14231       19237    40218696   83  Linux
> /dev/sda6           19238       19457     1767118+  82  Linux swap / Solaris
> ubuntu em ubuntu:~$ sudo mount /dev/sda5 /mnt
> ubuntu em ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sda5
> Due to a bug in xfs_freeze, the following command might produce a
> segmentation
> fault when /mnt/boot/grub is not in an XFS filesystem. This error is
> harmless and
> can be ignored.
> xfs_freeze: specified file ["/mnt/boot/grub"] is not on an XFS filesystem
> Installing GRUB to /dev/sda5 as (hd0,4)...
> Installation finished. No error reported.
> This is the contents of the device map /mnt/boot/grub/device.map.
> Check if this is correct or not. If any of the lines is incorrect,
> fix it and re-run the script `grub-install'.
> 
> (hd0)    /dev/sda
> ubuntu em ubuntu:~$ sudo chroot /mnt
> root em ubuntu:/# grub-install /dev/sda5
> /dev/sda5: Not found or not a block device.
> root em ubuntu:/# grub-install /dev/hd0
> /dev/hd0: Not found or not a block device.




More information about the ubuntu-br mailing list