Para inicializar a imagem Win10 do seu HDD :
- Adicione o código abaixo a
/etc/grub.d/40_custom - Fazer backup de
/boot/grub/grub.cfgcomsudo cp /boot/grub/grub.cfg.bak. (Ou adicione um número, se já houver umgrub.cfg.) - Em seguida, execute
sudo grub-mkconfig /boot/grub/grub.cfg.
Grub2 -configuration:
menuentry "Windows 10" --class windows --class os {
# Insert modules needed in order to access the iso-file
insmod part_gpt
#insmod part_msdos
insmod ntfs
#insmod ext2
# Insert module needed in order to find partition
insmod search_fs_uuid
# Set UUID of partition with the iso-image
# and let grub2 find the partition
# (save it's identifier to the variable $root)
set uuid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
search --no-floppy --set=root --fs-uuid $uuid
# Mount the iso image by addressing it with (partition)/path
set iso=/images/Win10_English_x64.iso
loopback loop ($root)$iso
# boot (chain-load) the image using the cdboot.efi file located
# on the win10-image
chainloader (loop)/efi/microsoft/boot/cdboot.efi
}
Instruções:
Substitua XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX pelo UUID da partição que contém a imagem do Windows 10.
insmod part_gpt : Este módulo é necessário, se a imagem ISO do Win10 estiver em uma unidade com uma partição do GPT.
insmod part_msdos : Escolha este sobre insmod part_gpt , se a imagem estiver em uma unidade com partição do DOS.
insmod ntfs : Este módulo é necessário, se a imagem ISO do Win10 for uma NTFS -partition.
insmod ext2 : substitua insmod ntfs por insmod ext2 , quando a imagem estiver em uma partição ext2 / ext3 ou ext4.