|
谢谢C大,希望C大在新版中可以考虑一并家人对map /win2003.iso (0xff) 或 map --mem 两种方式同时支持!
title Setup Windows from ISO to IMG Step 1 : Boot from ISO, with virtual CD+Floppy
find --set-root /hddimg.img
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
# Unpartitioned disk image needs geometry
map --heads=255 --sectors-per-track=63 /hddimg.img (hd0)
map /winsetup.iso (222)
map /firadisk.img (fd1)
map /firadisk.img (fd0)
map --hook
# Hide other disks, so partition in virtual disk will get C letter.
map --harddrives=1
# 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
rootnoverify (222)
chainloader
title Setup Windows from ISO to IMG Step 2 : Boot from IMG, with virtual CD
find --set-root /hddimg.img
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
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
rootnoverify (hd0)
chainloader +1
title Setup Windows from ISO to IMG Step 3 : Boot from IMG
find --set-root /hddimg.img
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
map /hddimg.img (hd0)
map --hook
write (99) [FiraDisk]\nStartOptions=disk,vmem=find:/hddimg.img,boot;\n\0
rootnoverify (hd0)
chainloader +1
[ 本帖最后由 thttht 于 2011-6-28 06:47 编辑 ] |
|