windows grub entry

1
2
3
4
5
6
7
8
9
10
11
12
13
menuentry 'Windows (on /dev/sda5)' --class windows --class os $menuentry_id_option 'osprober-chain-2A18C40818C3D0CD' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  2A18C40818C3D0CD
	else
	  search --no-floppy --fs-uuid --set=root 2A18C40818C3D0CD
	fi
	parttool ${root} hidden-
	drivemap -s (hd0) ${root}
	chainloader +1
}