无忧启动论坛

标题: Winnt.sif中的OsLoadOptions的参数/iso=\ISO\Hiren'sBootCD.iso是做什么的? [打印本页]

作者: 1400700226    时间: 2017-2-3 13:52
标题: Winnt.sif中的OsLoadOptions的参数/iso=\ISO\Hiren'sBootCD.iso是做什么的?
这个是在老外的Hiren's BootCD.iso里面发现的,

老外把winnt.sif改名成了X,这是其内容:

[SetupData]
BootDevice="ramdisk(0)"
BootPath="\i386\System32\"
OsLoadOptions="/fastdetect /minint /rdimageoffset=8192 /rdimagelength=3161088 /rdpath=\HBCD\XP\XP.wim /iso=\ISO\Hiren'sBootCD.iso"



我很不解,前面的参数我都能理解,但是最后面那个 /iso=\ISO\Hiren'sBootCD.iso到底是做什么的?

我没有在任何其他PE中发现这个参数。

我也不知道哪里还有这么个路径\ISO\Hiren'sBootCD.iso。


所以请教大家,这个/iso=\ISO\Hiren'sBootCD.iso到底是做什么的?

我尝试删掉这个参数,启动也没有什么异常,启动后盘符什么的也没有任何变化。

求教!谢谢了!
作者: 2012mshs    时间: 2017-2-3 15:33
You can learn it from file Startup.cmd.
This code

  1. for %%I in (C D E F G H I J K L M N O P Q R S T U V W X Y Z A B) DO (dir %%I:\ 1>nul 2>nul && if /i exist %%I:\HBCD\HBCDMenu.exe if /i exist %%I:\HBCD\Programs\7z.exe set HBCD=%%I:&goto k)
  2. if not "%ISO%"=="" goto h
  3. set ISO=none
  4. for /f "tokens=5 delims==" %%X in ('REG QUERY HKLM\SYSTEM\Controlset001\Control /v SystemStartOptions') do set ISO=%%X
  5. for %%I in (C D E F G H I J K L M N O P Q R S T U V W X Y Z A B) DO (dir "%%I:%ISO%" 1>nul 2>nul && imdisk -a -m #: -f "%%I:%ISO%"&nircmd wait 3000&goto a)
复制代码

it means
- HBCDMenu.exe must present
- If you extract file iso, no need /iso=\ISO\Hiren'sBootCD.iso (HBCDMenu.exe in usb device)
- If you boot from iso file (path \ISO\Hiren'sBootCD.iso; file not fragment), it will mount file Hiren'sBootCD.iso with imdisk, find HBCDMenu.exe and start all component from virtual drive.
作者: 1400700226    时间: 2017-2-3 22:15
2012mshs 发表于 2017-2-3 15:33
You can learn it from file Startup.cmd.
This code

Oh, I just made a mistake.

I have understood now.

Very thanks to your help!

===========================

Thanks. But I still have questions:

These is what I do:

1. Copy Hiren'sBootCD.iso to C:\ISO\



作者: 2012mshs    时间: 2017-2-3 22:31
1400700226 发表于 2017-2-3 22:15
Oh, I just made a mistake.

I have understood now.

You should add this code to menu.lst

  1. title Hiren'sBootCD (Full menu)
  2. find  --set-root /ISO/Hiren'sBootCD.iso
  3. map /ISO/Hiren'sBootCD.iso (0xff)
  4. map --hook
  5. chainloader (0xff)
  6. boot

  7. title Mini Windows Xp\nRun Antivirus and other windows programs
  8. find  --set-root /ISO/Hiren'sBootCD.iso
  9. map /ISO/Hiren'sBootCD.iso (0xff)
  10. map --hook
  11. chainloader (0xff)/HBCD/XP/XP.BIN
  12. boot
复制代码

作者: 1400700226    时间: 2017-2-3 22:49
2012mshs 发表于 2017-2-3 22:31
You should add this code to menu.lst


Thanks a lot!

Though I do not use G4D now, but I still studied how to use map and chainloader from your post.

Thanks!




欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) Powered by Discuz! X3.3