yiyu2012 发表于 2021-8-10 14:32 你贴的这些代码,一键4.0里面都有,如果没有这些驱动顺序调整,primo驱动根本不可能启动。这些代码应该和“声卡破音”没有什么关系。 |
本帖最后由 liuzhaoyzz 于 2021-8-11 09:00 编辑 yiyu2012 发表于 2021-8-10 12:21 运行脚本立即删除所有内存盘的bug 这个不是bug,就应该是这样子,因为primo会占用0号盘,当有其他盘的时候会出问题,为了稳定这样做没问题。其实我一直不理解你为什么要建立那么多内存盘,一个很大的C盘不好吗?C盘既可以当作磁盘,也可以当做内存来使用,内存和硬盘空间可以动态回收,互为转换,可以充分利用内存,而且C盘可用空间很大。你的方法做不到这些。 修复了snapshot导致的注册损坏潜在风险 这一点能否具体说明下你改进了哪些地方,贴出具体的代码,改进的原因是什么?原来的代码具体哪里存在注册表损坏的潜在风险?谢谢! 我看了你的代码里面,用了/reg:64这样子的参数,对于32位的cmd,这个参数是否会出错?比如32位的xp和WIN7。 Reg save HKLM\system %Addisk%\Windows\System32\config\system /reg:64 /y |
yiyu2012 发表于 2021-8-10 15:03 好,谢谢指教! |
MPFENG 发表于 2021-8-10 14:45 直接复制set "srv=HKLM\SYSTEM\ControlSet001\Services\"和win7或win8或win10的修改到管理员运行的cmd中执行就行了,比如是win10,则set "srv=HKLM\SYSTEM\ControlSet001\Services\" :win10 reg add "%srv%disk" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%volsnap" /f /v "Group" /t REG_SZ /d "SCSI Class" reg delete "%srv%FancyRd" /f /v "Tag" reg add "%srv%FancyRd" /f /v "Group" /t REG_SZ /d "Network" reg add "%srv%fvevol" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%rdyboost" /f /v "Group" /t REG_SZ /d "SCSI Class" reg query "%srv%volume" 1>nul 2>nul&® add "%srv%volume" /f /v "Group" /t REG_SZ /d "File System" reg query "%srv%iorate" 1>nul 2>nul&® add "%srv%iorate" /f /v "Group" /t REG_SZ /d "File System" reg query "%srv%uwfvol" 1>nul 2>nul&® add "%srv%uwfvol" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "HKLM\SYSTEM\ControlSet001\Control\PnP" /f /v "PollBootPartitionTimeout" /t REG_DWORD /d 60000 |
本帖最后由 yiyu2012 于 2021-8-10 14:35 编辑 MPFENG 发表于 2021-8-10 12:37 制作过程导入的注册表及安装的软件并不会导致声卡问题,你可以导入注册表到目标系统再重启试试。这可能是snapshot备份还原过程导致的注册表损坏,4.0批处理未对这一潜在问题进行修复。 set "srv=HKLM\SYSTEM\ControlSet001\Services\" :win7 reg add "%srv%disk" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%FancyRd" /f /v "Group" /t REG_SZ /d "Boot Bus Extender" reg add "%srv%FltMgr" /f /v "Group" /t REG_SZ /d "FSFilter Infrastructure" reg add "%srv%fvevol" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%rdyboost" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%volsnap" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%WofAdk" /f /v "Group" /t REG_SZ /d "FSFilter Compression" reg add "%srv%iaStor" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "HKLM\SYSTEM\ControlSet001\Control\PnP" /f /v "PollBootPartitionTimeout" /t REG_DWORD /d 60000 :win8 reg add "%srv%disk" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%volsnap" /f /v "Group" /t REG_SZ /d "SCSI Class" reg delete "%srv%FancyRd" /f /v "Group" reg delete "%srv%FancyRd" /f /v "Tag" reg add "%srv%fvevol" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%rdyboost" /f /v "Group" /t REG_SZ /d "SCSI Class" reg query "%srv%uwfvol" 1>nul 2>nul&® add "%srv%uwfvol" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "HKLM\SYSTEM\ControlSet001\Control\PnP" /f /v "PollBootPartitionTimeout" /t REG_DWORD /d 60000 :win10 reg add "%srv%disk" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%volsnap" /f /v "Group" /t REG_SZ /d "SCSI Class" reg delete "%srv%FancyRd" /f /v "Tag" reg add "%srv%FancyRd" /f /v "Group" /t REG_SZ /d "Network" reg add "%srv%fvevol" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "%srv%rdyboost" /f /v "Group" /t REG_SZ /d "SCSI Class" reg query "%srv%volume" 1>nul 2>nul&® add "%srv%volume" /f /v "Group" /t REG_SZ /d "File System" reg query "%srv%iorate" 1>nul 2>nul&® add "%srv%iorate" /f /v "Group" /t REG_SZ /d "File System" reg query "%srv%uwfvol" 1>nul 2>nul&® add "%srv%uwfvol" /f /v "Group" /t REG_SZ /d "SCSI Class" reg add "HKLM\SYSTEM\ControlSet001\Control\PnP" /f /v "PollBootPartitionTimeout" /t REG_DWORD /d 60000 |
本帖最后由 yiyu2012 于 2021-8-10 14:42 编辑 4.0运行后破音也许是注册表出问题?试试这个,http://bbs.wuyou.net/forum.php?mod=viewthread&tid=425797&extra=,修复了运行脚本立即删除所有内存盘的bug,可对修改后的ramos系统执行制作,添加了开关机脚本,修复了snapshot导致的注册损坏潜在风险,优化了制作流程,加入了拆分模式适配大体积系统,4.0运行后引导还在的话可以直接替换引导小镜像。不过需要一定的阅读理解能力(需手动修改vdf镜像保存位置,镜像大小及开关机脚本中的启动镜像位置)。 |
MPFENG 发表于 2021-8-10 09:08 破音是什么意思?grub2/g4e不需要每次都用键盘选择,在BIOS设置中,可以把grub2或者g4e设置为默认引导项,就可以引导RAMOS了,当然也可以用grub2/g4e引导windows。 |
liuzhaoyzz 发表于 2021-8-10 08:23 4.0刚出来那会试过,会有破音,后又换3.8.6和3.8.7都是如此。现在4.0更新了有空我再试,但g2/gu要有键盘选择启动项对我来说真心不方便,谢谢自主提醒! |
你好象是UEFI启动,用的2、R驱 + P驱SCSI模式【WIMBOOT,WIM放内存】支持WIN7、8、10? UEFI启动的话,完全不需要微软ramdisk驱动参与,一键4.0可以直接用primo单驱动。 http://bbs.wuyou.net/forum.php?m ... &fromuid=298214 2、V4.0.0版本是UEFI-primo-RAMOS的一次重大更新,从该版本开始,基于微软ramdisk.sys驱动的所有方案,将作为遗弃的方案不再更新。 |
liuzhaoyzz 发表于 2021-8-9 17:33 个人理解应该是缺少文件支持Imdisk。请问版主这软件需要哪些文件支持? |
liuzhaoyzz 发表于 2021-8-9 17:33 试过好几个版本了。如果继续输入img文件大小会提示找不到指定路径(事实已生成img文件,只有3m大小),再继续制作下去两次压缩都没出错,直到后面导入注册表就出错了。重启后就提示找不到路径。 |
识别结果: shared Instructs driver to open image file in shared write mode even when image is opened for writing. This can be useful to mount each partition of a multi-partition image as separate virtual disks with different image file offsets and sizes. It could potentially corrupt filesystems if used with incorrect offset and size parameters so use with caution! par Parallel I/. Valid for file-type virtual disks. With this flag set, driver sends read and write requests for the virtual disk directly down to the filesystem driver that handles the image file, within the same thread context as the original request was made. In some scenarios this flag can increase performance, particularly when you use several layers of virtual disks backed by image files stored on other virtual disks, network file shares or similar storage. This flag is not supported in all scenarios depending on other drivers that need to complete requests to the image file. It could also degrade performance or cause reads and writes to fail if underlying drivers cannot handle/0 requests simultaneously. -u unit Along with -a, request a specific unit number for the ImDisk device instead of automatic allocation Along with -d or -1 specifies the unit number of the virtual disk to remove or query. -m mountpoint Specifies a drive letter or mount point for the new virtual disk, the virtual disk to query or the virtual disk to remove. When creating a new virtual disk you can specify#: as mountpoint in which case the first unused drive letter is automatically used. Persistent. Along with -a, saves registry settings for re-creating the same virtual disk automatically when driver is loaded, which usually occurs during system startup. Along with -d or -D, existing such settings for the removed virtual disk are also removed from registry. There are some limitations to what settings could be saved in this way. Only features directly implemented in the kernel level driver are saved, so for example the -p switch to format a virtual disk will not be saved. |
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.