Dual boot no grub2
Dual boot no grub2
Depois de horas procurando na internet encontrei um tutorial de como configurar o grub2 no ubuntu para dualboot.
Verificar a partição que o windows esta instalado:
desktop:~# fdisk -l /dev/sda
255 heads, 63 sectors/track, 60801 cylinders
Unidades = cilindros de 16065 * 512 = 8225280 bytes
Identificador do disco: 0x3f053f04
Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1 * 1 8025 64460781 7 HPFS ou NTFS
/dev/sda2 8026 14886 55110982+ 83 Linux
/dev/sda3 14887 15251 2931862+ 82 Linux swap / Solaris
/dev/sda4 15252 60801 365880375 83 Linux
desktop:~# nano /etc/grub.d/11_Windows
e adidicio a s linhas abaixo
#! /bin/sh -e
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows XP" {
set root=(hd0,1)
chainloader +1
}
EOF
Setar permição de execução ao arquivo
desktop:~# chmod a+x /etc/grub.d/11_Windows
desktop:~# update-grub2
Updating /boot/grub/grub.cfg ...
Found Debian background: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.26-rt1-rt
Found initrd image: /boot/initrd.img-2.6.26-rt1-rt
Found linux image: /boot/vmlinuz-2.6.26-1-686
Found initrd image: /boot/initrd.img-2.6.26-1-686
Found linux image: /boot/vmlinuz-2.6.25-2-686
Found initrd image: /boot/initrd.img-2.6.25-2-686
Adding Windows
done
Reinicie o computador