title Setup Windows from ISO to HDD Step 1 : Boot from ISO, with virtual CD+Floppy
map --mem (md)0x800+4 (99)
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
map /winsetup.iso (222)
map /iastor.img (fd0)
map /iastor.img (fd1)
map --harddrives=1
map --hook
write (99) [FiraDisk]\nStartOptions=cdrom,vmem=find:/winsetup.iso;floppy,vmem=find:/iastor.img;\n\0
rootnoverify (222)
chainloader
map --status
pause Press any key twice . . .
title Setup Windows from ISO to HDD Step 2 : Boot from HDD, with virtual CD
map --mem (md)0x800+4 (99)
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
map --hook
write (99) [FiraDisk]\nStartOptions=cdrom,vmem=find:/winsetup.iso;\n\0
rootnoverify (hd0)
chainloader +1
map --status
pause Press any key . . .
title Setup Windows from ISO to HDD Step 3
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
map --hook
rootnoverify (hd0)
chainloader +1
map --status
pause Press any key . . .
title Setup Windows from ISO to HDD Step 1 : Boot from ISO, with virtual CD+Floppy
map --mem (md)0x800+4 (99)
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
map /winsetup.iso (222)
map /iastor.img (fd0)
map /iastor.img (fd1)
map --harddrives=1
map --hook
write (99) [FiraDisk]\nStartOptions=cdrom,vmem=find:/winsetup.iso;floppy,vmem=find:/iastor.img;\n\0
rootnoverify (222)
chainloader
map --status
pause Press any key twice . . .
title Setup Windows from ISO to HDD Step 2 : Boot from HDD, with virtual CD
map --mem (md)0x800+4 (99)
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
map --hook
write (99) [FiraDisk]\nStartOptions=cdrom,vmem=find:/winsetup.iso;\n\0
rootnoverify (hd0)
chainloader +1
map --status
pause Press any key . . .
title Setup Windows from ISO to HDD Step 3
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
map --hook
rootnoverify (hd0)
chainloader +1
map --status
pause Press any key . . .
原帖由 sratlf 于 2011-3-31 23:09 发表
已经用RUN实现1#的效果了 http://bbs.wuyou.net/forum.php?mod=viewthread&tid=182793
命令只有简单的一行 RUN --fira:/iastor.img iso=/winsetup.iso
欢迎光临 无忧启动论坛 (http://wuyou.net./) | Powered by Discuz! X3.3 |