title Setup Windows from ISO to IMG Step 1 : Boot from ISO, with virtual CD+Floppy
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
# Unpartitioned disk image needs geometry
find --set-root /hddimg.img
map --heads=255 --sectors-per-track=63 /hddimg.img (hd0)
map --mem /winsetup.iso (0xff)
map --mem /firadisk.img (fd0)
map --mem /firadisk.img (fd1)
# Hide other disks, so partition in virtual disk will get C letter.
map --harddrives=1
map --hook
# The "boot" option is required for virtual disk to have system partition with C letter.
write (99) [firadisk]\nStartOptions=disk,vmem=find:/hddimg.img,boot;cdrom,vmem=find:/winsetup.iso;floppy,vmem=find:/firadisk.img;\n\0
chainloader (0xff)
map --status
pause Press any key twice . . .
title Setup Windows from ISO to IMG Step 2 : Boot from IMG, with virtual CD
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
find --set-root /hddimg.img
map /hddimg.img (hd0)
map --hook
# The "boot" option here is required for booting Windows the first time.
write (99) [FiraDisk]\nStartOptions=disk,vmem=find:/hddimg.img,boot;cdrom,vmem=find:/winsetup.iso;\n\0
root (hd0,0)
chainloader /ntldr
pause Press any key . . .
title Setup Windows from ISO to IMG Step 3 : Boot from IMG
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
find --set-root /hddimg.img
map /hddimg.img (hd0)
map --hook
write (99) [[firadisk]]\nStartOptions=disk,vmem=find:/hddimg.img,boot;\n\0
root (hd0,0)
chainloader /ntldr
map --status
pause Press any key . . .作者: 11ydy 时间: 2011-5-27 20:17
我和楼主讨论过
下面贴上我成功的菜单(用的3个镜像必须是连续的)
感兴趣的朋友试试吧
title Setup Windows from ISO to IMG Step 1 : Boot from ISO, with virtual CD+Floppy