无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 4159|回复: 8
打印 上一主题 下一主题

[求助] 如何增加内存虚拟磁盘Y

[复制链接]
跳转到指定楼层
1#
发表于 2020-9-30 15:52:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 2012zhiwen 于 2020-9-30 15:55 编辑

我最近在用“虹云天空”的帖子http://bbs.wuyou.net/forum.php?mod=viewthread&tid=409956的pe

觉得这个Y盘作用很大,就是不知道如何做出来的,在他的pecmd.ini文件中找到了一个配置语句,但是不知道需要添加什么文件才可以。相关语句如下:
IFEX Y:\TEMP,!EXEC *rxprd add -d Y -n 131088 -t scsi -v -dmm=COMPACT -f ntfs -c 4KB -l 内存磁盘 -X -N -T -s -d Y  




虹云天空“的pecmd.in文件 pecmd.rar (1.44 KB, 下载次数: 14)




2#
发表于 2020-9-30 16:37:53 | 只看该作者
这是用的primo驱动生成的内存盘。https://www.romexsoftware.com/zh ... line-interface.html
primo驱动命令行参数CLI
注意参数是大小写敏感的。
命令行合集:
C:\Program Files\Primo Ramdisk Server Edition>rxprd
Primo Ramdisk Server Edition Commander  Version 5.6.0
Copyright (C) Romex Software. All rights reserved.

Usage: rxprd <command> [<option>...]

<command>    Specifies a Primo Ramdisk command (see command list below).
<option>...  One or more options that modify a command.

Command List
------------
ls           Lists all virtual disks.
add          Creates a new virtual disk.
del          Removes a virtual disk.
view         Displays the settings and status of a virtual disk.
edit         Changes the settings of a virtual disk.
rebuild      Recreates the disk with new settings.
init         Reinitializes a virtual disk.
save         Saves the disk contents to an image file.
export       Exports the disk settings as a disk descriptor file.
im           Manages the Invisible Memory.
mem          Displays current system memory information.
ver          Displays version and license information.
?            Displays help messages.
For detailed command and option information, type: rxprd ? <command>

新建镜像:
C:\Program Files\Primo Ramdisk Server Edition>rxprd ? add
Primo Ramdisk Add Command
Creates a new virtual disk.

rxprd add [-n <disksize>] [-t <disktype>] [-d <letter>] [-v]
  [-m[=<mode>]] [-i[=<quota>]] [-p <file>[?<size>]]  
  [-f <filesys>] [-c <clussize>] [-l <label>] [-X] [-N]
  [-Q <permission>] [-T] [-r <folders>] [-z <volsn>]
  [-I <file> [-L] [-D] [-F <format>] [-K <intval>]]
  [-s]  
         
  Basic Options
  -------------
  -n, -size <disksize>        - Specifies the disk size in megabytes (MB).
                                If not specified, 128 is the default.
  -t, -type <disktype>        - Specifies the disk type. <disktype> can be  
                                one of SCSI or DIO.
                                If not specified, SCSI is the default.
  -d, -drive <letter>         - Assigns a drive letter to the new volume.
                                If not specified, the last available drive
                                letter is assigned.
  -v, -volatile               - Sets the new disk as a temporary disk. The
                                disk will disappear at the next computer boot.
   
  Substance Options
  -----------------
  -m, -dmm[=<mode>]           - Enables Dynamic Memory Management (DMM)  
                                feature. <mode> can be one of COMPACT and  
                                NORMAL.  
                                    COMPACT - enables Compact Mode
                                    NORMAL  - disables Compact Mode
                                <mode> is optional, and if not specified,
                                NORMAL is the default.
  -i, -im[=<quota>]           - Uses Invisible Memory to constitute the disk.
                                <quota> specifies the maximum amount of  
                                Invisible Memory, in megabytes (MB), that can
                                be used for this new disk. <quota> is optional,
                                and if not specified all available Invisible  
                                Memory can be used.
  -p, -pd <file>[?<size>]     - Uses physical drive to constitute the disk.  
                                <file> specifies the file name including the  
                                full path. <size> specifies the amount of  
                                physical drive space, in megabytes (MB), used  
                                for this virtual disk. <size> is optional,
                                and if not specified it equals to <disksize>.
  File System Options
  -------------------
  -f, -fs <filesys>           - Specifies the type of file system. <filesys>  
                                can be one of NTFS, FAT32 or FAT.
                                If not specified, FAT32 is the default.  
  -c, -clus <clussize>        - Overrides the default allocation unit (cluster)
                                size. <clussize> can be one of the following:
                                512, 1KB, 2KB, 4KB, 8KB, 16KB, 32KB or 64KB.
  -l, -label <label>          - Specifies the volume label.         
  -X, -nc                     - NTFS only: Enables NTFS compression.
  -N, -nni                    - NTFS only: Disables NTFS indexing service.
  -Q, -np <permission>        - NTFS only: Sets the permissions for "Everyone"
                                account. <permission> can be a combination of
                                the following: F, M, X and/or W.
                                    F (f) - full control
                                    M (m) - modify
                                    X (x) - read & execute
                                    W (w) - write
                                Use '?' to combine two or more permissions.  
                                Example: -Q x?w
  -T, -temp                   - Automatically creates a folder named "TEMP".
  -r, -dir <folders>          - Automatically creates up to 10 custom folders.
                                Use '?' to concatenate multiple folders.  
                                Example: -r aaa?bbb?ccc  
                                creates three folders: aaa, bbb and ccc.
  -z, -vsn <volsn>            - Specifies the volume serial number.
                                If not specified, a random serial will be used.
   
  Image File Options
  ------------------
  -I, -image <file>           - Enables image file for this new disk. <file>  
                                specifies the image file name including the  
                                full path.
  -L, -nosave                 - Sets the associated image file as Load Only.  
                                The disk will automatically loads the contents
                                from the image file, but not save any changes  
                                of contents to the image file.
                                If not specified, disk automatically saves the
                                content changes to the  image file at computer
                                shutdown or restart.
  -D, -delay                  - Enables Delay Load mode.
  -F, -format <format>        - Specifies the file format for saving the image
                                file. <format> can be one of PLAIN, SMART or
                                COMPR. For format COMPR, appends "?<level>" to
                                specify the image file compression level.  
                                <level> can range from 1 to 9. <level> is  
                                optional, and if not specified default is 1.
                                Examples:  
                                    -F plain
                                    -F smart
                                    -F compr
                                    -F compr?2
  -K, -timing <intval>        - Enables Timing Save for the image file.  
                                <intval> specifies the saving intervals in  
                                minutes.
   
  Other Options
  -------------
  -s, -silent                 - Executes this command in silent mode. No  
                                interactive prompts and running information.
                                Errors or warnings are still displayed.  

Remarks:

Option '-p' overrides all image file options.
Option '-I' is required for other image file options.
Option '-L' overrides options '-F' and '-K'.
Option '-p' and image file options are not available in Standard Edition.  

Examples:

The following command creates a 128MB SCSI RAM-disk with all default settings:

    rxprd add
     
The following command creates a 4GB Direct-IO RAM-disk formatted with NTFS file
system which specifies 4KB cluster size, "TEMP" folder, and custom folders  
"folder 1" and "folder 2":

    rxprd add -n 4096 -t dio -f ntfs -c 4KB -T -r "folder 1?folder 2"  

The following command creates a 8GB SCSI hybrid-disk with 5GB physical memory
and 3GB physical drive, enabling Invisible Memory (quota: 1GB) and DMM:

    rxprd add -n 8192 -i=1024 -m -p "c:\hybrid.hbd?3072"
     
The following command creates a 8GB SCSI RAM-disk with an image file, loading
at computer startup and saving at shutdown:

    rxprd add -n 8192 -I "c:\image file.vdf" -F plain
   
保存镜像:
C:\Program Files\Primo Ramdisk Server Edition>rxprd ? save
Primo Ramdisk Save Command
Saves the disk contents to an image file.

rxprd save <index> [-a <file> [-F <format>]] [-s]

  <index>                     - Specifies the index of virtual disk [0-127].
  -a, -saveas <file>          - Saves the disk contents as a new image file.
                                If not specified, saves the disk contents to
                                the associated image file.
  -F, -format <format>        - Specifies the file format for saving the image
                                file. <format> can be one of PLAIN, SMART or
                                COMPR.
  -s, -silent                 - Executes this command in silent mode. No  
                                interactive prompts and running information.
                                Errors or warnings are still displayed.  
                                 
Remarks:

This command is not available in Standard Edition.  

Examples:

The following command saves disk (#0) contents to disk associated image file:

    rxprd save 0
     
The following command saves disk (#0) contents to a new image file:

    rxprd save 0 -a "c:\new image.vdf"   

Primo Ramdisk 功能特性 - 镜像文件特性 http://www.romexsoftware.com/zh- ... ure-image-file.html

由于内存是一种易失性存储设备,其存储的数据在断电时将全部丢失。在某些应用中,您可能希望虚拟硬盘可以像物理硬盘一样,永久存储数据,这样在恢复供电时可以继续原来的工作。Primo Ramdisk 支持镜像文件特性,可以将虚拟硬盘中的数据转储到物理硬盘,并在下次上电时自动从物理硬盘中恢复数据,从而使用户数据得以保持。这些转储的数据在物理硬盘以镜像文件方式存在。
镜像文件格式
Primo Ramdisk 支持3种镜像文件格式:完全镜像、紧凑镜像和压缩镜像。
完全镜像
完全镜像是对虚拟硬盘的一比一复制。此格式为推荐格式,并且也是唯一可以支持定时保存的格式。
Primo Ramdisk 相比较 VSuite Ramdisk,对完全镜像格式进行了优化,因此建议您采用 Primo Ramdisk 新创建的完全镜像文件,而不是直接使用 VSuite Ramdisk 创建的镜像文件,以便获得新特性带来的性能提升。当然 Primo Ramdisk 也完全向下兼容 VSuite Ramdisk 的镜像文件。
紧凑镜像
紧凑镜像,又叫智能镜像,是对虚拟硬盘的紧凑复制。它重新组织数据分布,并且仅保存有效数据。因此它的文件大小通常要比完全镜像小。
压缩镜像
压缩镜像是对虚拟硬盘的压缩复制。虚拟硬盘的数据经过压缩后再保存到镜像文件。Primo Ramdisk 提供了不同的压缩等级,等级越高,镜像文件越小,但压缩时间也越长。
在大多数情况下,不建议使用压缩镜像。这是因为压缩镜像不支持快速保存模式,即意味着每次保存时, Primo Ramdisk 会对虚拟硬盘全部数据重新做保存导致保存过程非常耗时。但是在仅加载镜像的情况下,您可以考虑采用压缩镜像。因为在这种情况下压缩镜像可以避免保存慢的缺点,同时由于压缩后的镜像文件通常比较小,可以减少硬盘的读取时间,从而加速加载速度。
加载和保存功能
当您为虚拟硬盘关联了镜像文件后,Primo Ramdisk 将在虚拟硬盘创建时或每次计算机启动时自动从镜像文件读取数据并加载到虚拟硬盘。除了自动加载功能,Primo Ramdisk 还支持各种保存功能:仅加载、关机时保存、休眠时保存、待机时保存、删除前保存、定时保存和手动保存。
仅加载
这个功能使虚拟硬盘在每次计算机启动时自动从镜像文件加载数据,但不会自动保存虚拟硬盘的数据到镜像文件。因此当下次计算机启动时,虚拟硬盘仍将恢复原始的镜像文件的内容。在这个功能模式下,您仍然可以进行手动保存功能。
关机时保存
这个功能使虚拟硬盘在每次计算机关机或重启时自动将硬盘内容保存至关联的镜像文件。
休眠时保存
这个功能使虚拟硬盘在每次计算机休眠时自动将硬盘内容保存至关联的镜像文件。
待机时保存
这个功能使虚拟硬盘在每次计算机待机时自动将硬盘内容保存至关联的镜像文件。
删除前保存
如果虚拟硬盘已经关联了镜像文件,并且不是在“仅加载”功能模式下,当您删除虚拟硬盘时,Primo Ramdisk 会询问您是否需要先保存虚拟硬盘的内容至关联的镜像文件。

定时保存
定时保存功能使虚拟硬盘按照设定的时间间隔自动保存硬盘内容至关联的镜像文件。
手动保存
手动保存功能允许您在任何需要的时间将虚拟硬盘的内容保存到关联的镜像文件或一个新的镜像文件。请参见篇章:手动保存虚拟硬盘内容。
高级模式
快速保存模式
快速保存模式使虚拟硬盘仅仅保存自上次保存后新增或更新的数据,跳过未改动的数据,从而避免每次写入所有数据,减少了大量的文件写入时间,加快保存速度。
延迟加载模式
在默认状态下,虚拟硬盘在计算机启动时从镜像文件加载全部数据,这会导致系统启动时间变长,特别是当镜像文件非常大的时候,加载时间可能需要十几分钟。延迟加载模式,即 VSuite Ramdisk 的快速加载模式,使虚拟硬盘仅在系统或应用程序需要数据时才从镜像文件读取相应的数据块,这样最大程度上降低镜像文件加载对系统启动时间的影响。此外,它也减少了对物理硬盘的读访问次数,因为通常情况下不需要读取全部的镜像文件数据。
延迟加载模式会影响虚拟硬盘的数据访问速度,引起性能略微下降。此外当第一次从虚拟硬盘运行应用程序或请求数据时,由于需要从镜像文件加载所需的数据块,您可能会感到一些延迟或卡顿。因此如果您对计算机启动时间没有要求或计算机启动时间影响不大的情况下,建议不必启用此模式,以便获取最佳的虚拟硬盘性能。

Primo Ramdisk 已知问题列表 - Romex Software 中文论坛 http://www.romexsoftware.com/bbs2/zh-cn/viewtopic.php?f=35&t=1020
#001 Direct-IO 虚拟硬盘与 VHD (Microsoft Virtual Hard Disk) 相关任务不兼容并引起蓝屏。
详细描述: 鼠标右击"磁盘管理" (控制面板 -> 管理工具 -> 计算机管理), 并点击 "创建 VHD" 或 "附加 VHD"。如果选择位置位于 Direct-IO 虚拟硬盘,则创建/附加VHD任务会失败并引起蓝屏。
临时方案: 使用SCSI 虚拟硬盘。

#002 如果Windows 页面文件 (pagefile.sys) 被设置到使用系统未识别内存的虚拟硬盘,系统从休眠状态回复时可能出错或蓝屏。[此问题无法修正]
临时方案: 不要在使用系统未识别内存的虚拟硬盘上设置页面文件。或者禁止系统休眠功能。

#003 (Vista/7) Windows 文件管理器对 Direct-IO 虚拟硬盘上的文件显示错误的"占用空间" 数值。
详细描述: 无论Direct-IO虚拟硬盘使用哪个簇大小,Windows 文件管理器总是错误地按照512字节簇大小计算文件的"占用空间",导致与实际的结果不符。此问题仅影响属性对话框中的数值显示,并不影响实际功能。Direct-IO 虚拟硬盘仍是正确地按照选定的簇大小工作。

#004 如果镜像/实体文件位于外置硬盘(如USB硬盘)或动态硬盘,或者所在分区的文件系统与Windows系统分区的文件系统不一致,在计算机重启后Windows可能无法及时为该SCSI虚拟硬盘分配盘符。
详细描述: 这是因为计算机启动过程中上述硬盘/分区准备完成时间要晚于正常的硬盘/分区。在 Windows vista/7/2008,此问题仅可能发生在外置硬盘。

#005 Primo Ramdisk 专业版/旗舰版中"延时加载"选项灰色不可选。
详细描述: 很抱歉,该功能尚未开启。
解决方案: 5.4.0版本已启用此选项。

#006 Primo Ramdisk 专业版/旗舰版中"实时保存"选项灰色不可选。
Description: 很抱歉,该功能尚未开启。

#007 当修改Direct-IO虚拟硬盘为SCSI虚拟硬盘后,计算机重启后原先设置的盘符发生改变。
临时方案: 属性修改并重启计算机后,重新为这个SCSI虚拟硬盘设置盘符。
解决方案: 5.6.0版本已修正。

#008 Windows 8 系统中如果IE临时文件夹设置在DirectIO虚拟硬盘,则可能引起部分Metro-UI应用程序异常。
临时方案: 使用SCSI 虚拟硬盘。

%rxprd% add -n %Asize% -im -t SCSI -d %Addisk% -dmm=compact -fs NTFS -N -X -L -F plain -I "%VDFfile%" -s 1>nul 2>nul
新建个虚拟硬盘,n虚拟内存大小,im可识别内存,t SCSI=SCSI模式,d指定驱动器,-dmm=compact动态内存、紧凑模式,NTFS格式,N不索引,X=NTFS压缩,L=仅加载,F plain完整模式镜像,I关联镜像文件,s静默模式。


点评

想问下,具体需要哪些文件呢,我在他的pe里面看下,并没有安装Primo Ramdisk  详情 回复 发表于 2020-9-30 17:05
哇 ,,看起来很复杂,,谢谢了,先看看  详情 回复 发表于 2020-9-30 17:00
回复

使用道具 举报

3#
 楼主| 发表于 2020-9-30 17:00:11 | 只看该作者
liuzhaoyzz 发表于 2020-9-30 16:37
这是用的primo驱动生成的内存盘。https://www.romexsoftware.com/zh-cn/primo-ramdisk/feature-command-lin ...

哇 ,,看起来很复杂,,谢谢了,先看看
回复

使用道具 举报

4#
 楼主| 发表于 2020-9-30 17:05:01 | 只看该作者
liuzhaoyzz 发表于 2020-9-30 16:37
这是用的primo驱动生成的内存盘。https://www.romexsoftware.com/zh-cn/primo-ramdisk/feature-command-lin ...

想问下,具体需要哪些文件呢,我在他的pe里面看下,并没有安装Primo Ramdisk
回复

使用道具 举报

5#
发表于 2020-9-30 17:17:02 | 只看该作者
if exist "%windir%\System32\drivers\fancyrd.sys" goto :EEO
echo 正在安装Primo Ramdisk,请稍侯...
regedit -s "Primo\Primo.reg" 1>nul 2>nul
"Primo\Primo.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOICONS /NORESTART /SP-
@ping 127.0.0.1 -n 3 >nul

这是正常的系统里面静默安装primo的办法,我不知道PE里面是怎么安装的。
相关文件我发上来,你可以研究下。大概就是fancyrd.sys+注册表吧。你说的那个PE里面应该有相关东西。论坛里也可以找找相关资料。

Primo.rar

2.59 MB, 下载次数: 53, 下载积分: 无忧币 -2

点评

2004系统,p区开机加载vdf镜像正常吗  详情 回复 发表于 2020-9-30 23:32
好的,谢谢。。  详情 回复 发表于 2020-9-30 17:21
回复

使用道具 举报

6#
 楼主| 发表于 2020-9-30 17:21:47 | 只看该作者
liuzhaoyzz 发表于 2020-9-30 17:17
if exist "%windir%\System32\drivers\fancyrd.sys" goto :EEO
echo 正在安装Primo Ramdisk,请稍侯...
r ...

好的,谢谢。。
回复

使用道具 举报

7#
发表于 2020-9-30 17:48:45 | 只看该作者

Y盘我都不要,虽然不真实消耗内存,但是看不习惯,我直接把他的创建Y盘的代码删了,哈~

下载一个官方的Primo Ramdisk 需要的时候自己安装、创建虚拟盘,官方的给免费30天试用。对于PE来说足够了~~~
回复

使用道具 举报

8#
发表于 2020-9-30 23:32:58 | 只看该作者
liuzhaoyzz 发表于 2020-9-30 17:17
if exist "%windir%\System32\drivers\fancyrd.sys" goto :EEO
echo 正在安装Primo Ramdisk,请稍侯...
r ...

2004系统,p区开机加载vdf镜像正常吗

点评

没安装过2004  详情 回复 发表于 2020-10-1 07:27
回复

使用道具 举报

9#
发表于 2020-10-1 07:27:30 | 只看该作者
黑中见白 发表于 2020-9-30 23:32
2004系统,p区开机加载vdf镜像正常吗

没安装过2004
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-24 08:18

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表