40_custom
, que está em /etc/grub.d
. ao abrir esse arquivo vamos ter o conteúdo abaixo:- Código: Selecionar todos
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
e devemos adicionar isto
- Código: Selecionar todos
menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}
que vai ficar assim
- Código: Selecionar todos
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}
depois temos que rodar o comando abaixo para reordenar o grub
- Código: Selecionar todos
sudo update-grub
pronto e agora vamos ter a opção para escolher o Windows 7!
vlw fwi, Holmes