无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 15034|回复: 16

!!!FBWF 控制台(FBWFMGR)实用指南!!!

[复制链接]
发表于 2008-9-11 15:07:59 | 显示全部楼层 |阅读模式
昨天和http://bbs.wuyou.net/forum.php?mod=viewthread&tid=129447的作者聊了一下。
FBWFFBWF 控制台(FBWFMGR)实用指南实际上在Embedded 区发过,在这里发有点罐水的嫌疑。不过偶认为还是有必要在这里发一下。
FBWF可以看做是一个能动态分配内存的内存盘,并且能控制到文件(以文件为单位)。最大1GB动态分配。

PE可以使用FBWF的REG模式(FBWF的配置,保存在注册表中)。
最新的FBWF正式版是FP07(非CTP版本),大家可以从
http://win.lp9999.com/read-htm-tid-27529.html
ttp://bbs.wuyou.net/forum.php?mod=viewthread&tid=126780
中的Mobile XP Full beta2bu1490 系统文件中提取FBWF的文件。

FBWF 控制台实用指南

通过本文您可以了解到FbwfMgr(FBWF控制台)全部命令。
先介绍一下EWF(增强的写入过滤器)和FBWF (基于文件的写过滤器)。
两者都是能起到保护系统的作用,不同的是EWF基于磁盘扇区而FBWF 基于文件。所以在写保护状态下EWF只能以分区为单位进行写保护,而FBWF能以文件为单位进行写保护。并且可已将覆盖缓存以文件单位写入磁盘。
本文以FP2007的FBWF为基础

下面介绍一下FbwfMgr的使用。
Mobile XP(MXP)BETA2 都是使用的FBWF,系统自带有FBWF控制台(FbwfMgr)

http://win.lp9999.com/read-htm-tid-27529.html
ttp://bbs.wuyou.net/forum.php?mod=viewthread&tid=126780


开始菜单—〉运行输入CMD,打开命令提示符。之后需要的输入命令


1.查看FBWF的状态
Fbwfmgr
//查看FBWF的状态。
也可以使用
Fbwfmgr /displayconfig
//查看FBWF的状态。
成功返回:
File-based write filter configuration for the current session:
//当前FBWF状态。
filter state: enabled.
// FBWF现在处在开状态。
overlay cache data compression state: enabled.
//压缩覆盖缓存:开启。
解释一下FBWF拦截的数据放在缓冲区中即覆盖缓存
overlay cache threshold: 1024 MB.
// 覆盖缓存区大小:1024MB。
overlay cache pre-allocation: disabled.
// 覆盖缓存预分配:关闭。开启后会预先分配FBWF的覆盖缓存。
size display: virtual mode.
// 覆盖缓存:虚拟模式。FBWF具有两种模式实际模式和虚拟模式,在虚拟模式下覆盖缓存的可用容量=被写保护驱动器显示的可用容量。
例如C驱动器被写保护,当前(虚拟模式,系统运行)C驱动器还有128MB的可用空间即表示覆盖缓存还有128MB可用。


protected volume list:


\Device\HarddiskVolume1

//当前受写保护的驱动器,这里用驱动器号表示
HarddiskVolume1=C
HarddiskVolume2=D
……
注意:有时候不是按顺序排的。例如:HarddiskVolume3=D:

例如


write through list of each protected volume:


\Device\HarddiskVolume1:


\Documents and Settings\Administrator\Local Settings\Temp


\Documents and Settings\Administrator\Local Settings\Temporary InternetFiles


\Documents and Settings\Administrator\My Documents


\Documents and Settings\Administrator\
桌面


\Documents and Settings\All Users\My Documents


\Documents and Settings\All Users\
桌面


\RegfData


\WINDOWS\TEMP


\userdata

//FBWF的豁免写保护列表。在列表中的文件或文件夹不受写保护。\Device\HarddiskVolume3: (none)表示整个驱动器(HarddiskVolume3)又受到写保护。
注意:\RegfData文件如果存在在C:下不要将其从豁免写保护列表中手动删除和添加。同样不要尝试添加和删除\fbwf.cfg
File-based write filter configuration for the next session:
//下次启动系统(系统重起后)FBWF状态。
filter state: disabled.
// FBWF在下次启动被关闭。


2. FBWF的开启和关闭。
开启:
FbwfMgr /enable
成功返回:
File-based write filter will be enabled on the next reboot.
关闭:
FbwfMgr /disable
成功返回:
File-based write filter will be disabled on the next reboot.
注意:两条命令都重起后生效


3. FBWF豁免写保护列表添加删除驱动器(添加删除受FBWF控制的驱动器)
添加:
FbwfMgr /addvolume \Device\HarddiskVolume3
//添加\Device\HarddiskVolume3 添加驱动器到FBWF豁免写保护列表,默认列表为空(该驱动器将受到FBWF保护)
也可以这样写
FbwfMgr /addvolume D:
//添加D:驱动器到FBWF豁免写保护列表

正常返回:
Volume \Device\HarddiskVolume3 will be protected after the next reboot.
或者
Volume d: will be protected after the next reboot.

错误返回:
Volume cannot be added. Filter is not enabled for the next session.
//下次FBWF为关闭状态,开启才能使用。

删除:
FbwfMgr /removevolume \Device\HarddiskVolume3 1
//从FBWF豁免写保护列表删除HarddiskVolume3 驱动器 (该驱动器将不再受到FBWF保护)
也可以这样写
FbwfMgr /removevolume d: 1
//从FBWF豁免写保护列表删除d: 驱动器

注意本命令有一个开关
1代表:重起后删除该驱动器豁免写保护列表。
0代表:重起后不删除该驱动器豁免写保护列表。
正常返回:
Volume \Device\HarddiskVolume3 will not be protected after the next reboot.
或者
Volume d: will not be protected after the next reboot.
错误返回:
Volume cannot be added. Filter is not enabled for the next session.
//下次FBWF为关闭状态,开启才能使用。
注意:两条命令都是重起后生效,并且下次重起FBWF为开启状态才能执行。


4. 向FBWF豁免写保护列表(不受FBWF写保护)添加文件夹。
添加文件夹:
FbwfMgr /addexclusion \Device\HarddiskVolume1 \Temp

//将Device\HarddiskVolume1\Temp 文件夹添加进FBWF豁免写保护列表。
也可以这样写:
FbwfMgr /addexclusion c: \Temp

//将c:\Temp文件夹添加到FBWF豁免写保护列表。

成功返回:
Path \Temp on volume \Device\HarddiskVolume1 will be in the exclusion list after the next reboot.
或者
Path \Temp on volume c: will be in the exclusion list after the next reboot.

错误返回:
Path cannot be added. Filter is not enabled for the next session.
// 下次FBWF为关闭状态,开启才能使用。

注意:命令中磁盘号和文件夹路径有一个空格。
命令中盘符和文件夹路径有一个空格
例如:正确的表示:Device\HarddiskVolume1 \Temp 或者c: \Temp

错误的表示:Device\HarddiskVolume1\Temp 或者:c:\Temp

注意:命令重起后生效,并且下次重起FBWF为开启状态才能执行。

即使路径不存在也可以添加,但是必须先用FbwfMgr /addvolume命令添加驱动器否则会出现错误:FbwfMgr failed: 系统找不到指定的驱动器。


5.向FBWF豁免写保护列表(不受FBWF写保护)添加文件。
FbwfMgr /addexclusion \Device\Harddisklume1 \1.txt
//将Device\HarddiskVolume1\1.txt 文件添加进FBWF豁免写保护列表。
也可以这样写
FbwfMgr /addexclusion c: \1.txt
//将c:\1.txt 文件添加进FBWF豁免写保护列表。
成功返回:
Path \1.txt on volume \Device\HarddiskVolume1 will be in the exclusion list after the next reboot.
或者
Path \1.txt on volume c: will be in the exclusion list after the next reboot.
错误返回:
Path cannot be added. Filter is not enabled for the next session.
// 下次FBWF为关闭状态,开启才能使用。
注意:命令中磁盘号和文件路径有一个空格。
命令中盘符和文件路径有一个空格
例如:正确的表示:Device\HarddiskVolume1 \1.txt 或者c: \1.txt

错误的表示:Device\HarddiskVolume1\1.txt 或者:c:\1.txt

注意:
命令重起后生效,并且下次重起FBWF为开启状态才能执行。

即使路径不存在也可以添加,但是必须先用FbwfMgr /addvolume命令添加驱动器否则会出现错误:FbwfMgr failed: 系统找不到指定的驱动器。


6.删除FBWF豁免写保护列表(不受FBWF写保护)的文件夹
FbwfMgr /Removeexclusion \Device\HarddiskVolume1 \Temp

//将Device\HarddiskVolume1\Temp 从FBWF豁免写保护列表中删除。
也可以这样写:
FbwfMgr /Removeexclusion c: \Temp

//将c:\Temp文件夹从FBWF豁免写保护列表中删除。
注意:命令中磁盘号和文件夹路径有一个空格。
命令中盘符和文件夹路径有一个空格
例如:正确的表示:Device\HarddiskVolume1 \Temp 或者c: \Temp

错误的表示:Device\HarddiskVolume1\Temp 或者:c:\Temp

注意:命令重起后生效,并且下次重起FBWF为开启状态才能执行。


7.删除FBWF豁免写保护列表(不受FBWF写保护)的文件
FbwfMgr /Removeexclusion \Device\Harddisklume1 \1.txt
//将Device\HarddiskVolume1\1.txt 文件添加进FBWF豁免写保护列表。
也可以这样写
FbwfMgr /Removeexclusion c: \1.txt
//将c:\1.txt 文件从BWF豁免写保护列表中删除。
注意:命令中磁盘号和文件路径有一个空格。
命令中盘符和文件路径有一个空格
例如:正确的表示:Device\HarddiskVolume1 \1.txt 或者c: \1.txt

错误的表示:Device\HarddiskVolume1\1.txt 或者:c:\1.txt

注意:
命令重起后生效,并且下次重起FBWF为开启状态才能执行。


8.将FBWF覆盖缓冲区的文件写入磁盘(将改变的文件写入磁盘保存)
FbwfMgr /commit \Device\Harddisklume1 \1.txt
//将Device\HarddiskVolume1\1.txt 从FBWF覆盖缓冲区写入磁盘(重起后1.txt不会复位)
也可以这样写
FbwfMgr /commit c: \1.txt
//将Device\HarddiskVolume1\1.txt从FBWF覆盖缓冲区写入磁盘(重起后1.txt不会复位)
成功返回:
Changes made to file \1.txt on volume C: are committed.
注意:不支持文件夹和通配符(*.*)。
(使用通配符发现返回下列错误:测试的时候发现FbwfMgr failed: Windows 无法找到网络路径。请确认网络路径正确并且目标计算机不忙或已关闭。 如果 Windows 仍然无法找到网络路径,请与网络管理员联系。)
      不支持在FBWF开启后新建的文件。根目录除外。

不支持在FBWF豁免列表的文件,


9.放弃FBWF覆盖缓冲区的文件缓冲。
FbwfMgr /restore \Device\Harddisklume1 \1.txt
//放弃Device\HarddiskVolume1\1.txt 文件在FBWF覆盖缓冲区的内容(1.txt文件会立即复位)
也可以这样写
FbwfMgr /restore c: \1.txt
//放弃Device\HarddiskVolume1\1.txt文件在FBWF覆盖缓冲区的内容(1.txt文件会立即复位)
成功返回:
Changes made to file \1.txt on volume C: are committed.
注意:不支持文件夹和通配符(*.*)。
      (使用通配符发现返回下列错误:测试的时候发现FbwfMgr failed: Windows 无法找到网络路径。请确认网络路径正确并且目标计算机不忙或已关闭。 如果 Windows 仍然无法找到网络路径,请与网络管理员联系。)
      不支持在FBWF开启后新建的文件。根目录除外。
不支持在FBWF豁免列表的文件,


10.察看详细的FBWF覆盖缓冲使用情况
FbwfMgr / overlaydetail
成功返回:
Overlay detail for each protected volume:
\Device\HarddiskVolume1:
//驱动器号:\Device\HarddiskVolume1:


file
1: name \Documents and Settings\Administrator\Application Data\Microsoft\Windows\Themes\Custom.theme


cache size 2544, open handle 0

             //文件号码、完整路径
//占用缓存大小、是否被打开。

file
2: name \Documents and Settings\Administrator\Application Data\Microsoft\CryptnetUrlCache\MetaData\60E31627FDA0A46932B0E5948949F2A5


cache size 418, open handle 0


file
3: name \Documents and Settings\Administrator\Application Data\Microsoft\CryptnetUrlCache\MetaData\A8FABA189DB7D25FBA7CAC806625FD30


cache size 427, open handle 0


file
4: name \Documents and Settings\Administrator\Application Data\Microsoft\CryptnetUrlCache\Content\60E31627FDA0A46932B0E5948949F2A5


cache size 1133, open handle 0


file
5: name \Documents and Settings\Administrator\Application Data\Microsoft\CryptnetUrlCache\Content\A8FABA189DB7D25FBA7CAC806625FD30


cache size 63014, open handle 0


file
6: name \Documents and Settings\Administrator\Cookies\index.dat


cache size 364, open handle 1


……


file 194: name \WINDOWS\SchedLgU.Txt


cache size 454, open handle 1


file 195: name \WINDOWS\setupapi.log


cache size 48648, open handle 0


file 196: name \WINDOWS\setupact.log


cache size 1264, open handle 0


file 197: name \WINDOWS\Installer\89f0c.msi


cache size 2342814, open handle 0


file 198: name \WINDOWS\Installer\{3B410500-1802-488E-9EF1-4B11992E0440}\ARPPRODUCTICON.exe


cache size 16053, open handle 0


file 199: name \WINDOWS\Installer\{3B410500-1802-488E-9EF1-4B11992E0440}\1033.MST


cache size 7471, open handle 0


file 200: name \1.txt


cache size 428, open handle 1

Memory consumed by directory structure: 1864 KB
Memory consumed by file data: 17897 KB
//目录占用缓存大小。
//文件占用缓存大小。


10.改变FBWF覆盖缓冲容量。
fbwfmgr
/setthreshold 128

//设置FBWF覆盖缓冲容量为128MB16MB-1024MB)。
成功返回:
Overlay cache threshold will be 128 MB after the next reboot.
注意:命令重起后生效



11.设置是否压缩覆盖缓存
FbwfMgr /setcompression 1
//开启压缩覆盖缓存
成功返回:
Overlay cache will be compressed after the next reboot.
FbwfMgr /setcompression |0
//关闭压缩覆盖缓存
成功返回:
Overlay cache will not be compressed after the next reboot.
注意:开启压缩覆盖缓存后预分配覆盖缓存自动关闭,命令重起后生效


12.设置是否预分配压缩覆盖缓存
FbwfMgr /setpreallocation 1
//开启预分配覆盖缓存
成功返回:
Overlay cache will be pre-allocated after the next reboot.
FbwfMgr /setpreallocation 0
//关闭预分配覆盖缓存
成功返回:
Overlay cache will not be pre-allocated after the next reboot.
注意:开启预分配覆盖缓存后压缩覆盖缓存自动关闭,命令重起后生效。


13.设置FBWF覆盖缓存容量显示是虚拟模式还是实际模式。
FbwfMgr /setsizedisplay 1
//开启虚拟模式,在虚拟模式下覆盖缓存的可用容量=被写保护驱动器显示的可用容量。
例如C驱动器被写保护, C驱动器还有128MB的可用空间即表示覆盖缓存还有128MB可用。
成功返回:
Size Display set to virtual mode.
//开启虚拟模式
FbwfMgr /setsizedisplay 0
//开启实际模式
成功返回:
Size Display set to actual mode.
注意:改变模式需要重起后才能生效。


14显示磁盘有效容量。
fbwfmgr /getvirtualsize c:
//显示C驱动器有效容量。
成功返回:
Volume size in bytes: 2,034,651,136
//总容量大小
Volume free size in bytes: 1,055,412,224
//可用容量大小


15.显示磁盘实际可用容量盘。
fbwfmgr /getactualsize c:
//显示C驱动器实际可用容量大小盘。
成功返回:
Volume size in bytes: 8,587,159,552
//总容量大小
Volume free size in bytes: 7,623,450,624
//可用容量大小


16.获得FBWF控制台帮助
FbwfMgr /?
也可以这样写
FbwfMgr /help
成功返回:
FbwfMgr /? | /help [command] |

/displayconfig | /overlaydetail | /enable | /disable |


/addvolume volumename | /removevolume volumename 1|0 |


/addexclusion volumename file_or_dir_path |


/removeexclusion volumename file_or_dir_path |


/commit volumename file_path | /restore volumename file_path |


/setthreshold threshold | /setcompression 1|0


/setpreallocation 1|0


/setsizedisplay 1|0


/getvirtualsize volumename


/getactualsize volumename

// FBWF控制台的各种命令
To get help for each individual command, for example, "/addvolume",
enter the following command:
FbwfMgr /help /addvolume
// 使用FbwfMgr /help / FBWF控制台命令获得改名的的详细帮助。

补充一下:
如果路径有空格要加""
Device\HarddiskVolume1\ "1 2\1.txt"
表示:
(Device\HarddiskVolume1\1 2\1.txt)
(C:\1 2\1.txt)
1 2这个文件夹有一个空格,不是12。

个人水平有限难免出错。欢迎给位指点。
转贴请著名出处。
happymy
6-16
7-9第一次修订


我花了一天的时间写的,大家支持一下。

[ 本帖最后由 happymy 于 2008-9-11 15:40 编辑 ]
发表于 2008-9-11 15:11:12 | 显示全部楼层
这么快,,我还在偷着看,,你都发上来了,,谢谢。。。
回复

使用道具 举报

 楼主| 发表于 2008-9-11 15:15:10 | 显示全部楼层
楼上你速度也不慢。
这里发一个方便大家。

[ 本帖最后由 happymy 于 2008-9-11 15:19 编辑 ]
回复

使用道具 举报

发表于 2008-9-11 16:37:14 | 显示全部楼层
不错,呵呵,温习一下

突然想到,恶意软件也用到这个怎么办?

改好名藏起来,还能用吗?
回复

使用道具 举报

 楼主| 发表于 2008-9-11 18:10:23 | 显示全部楼层
原帖由 zts59 于 2008-9-11 16:37 发表
不错,呵呵,温习一下

突然想到,恶意软件也用到这个怎么办?

改好名藏起来,还能用吗?



你就是删除了FBWFMGR,也有办法.h和API微软都提供了。
回复

使用道具 举报

发表于 2008-9-11 18:17:25 | 显示全部楼层
看了还是不知道怎么弄,怎么把PE的X盘的缓存从200提升到1G呢?
回复

使用道具 举报

 楼主| 发表于 2008-9-11 19:02:36 | 显示全部楼层
10.改变FBWF覆盖缓冲容量。
fbwfmgr
/setthreshold 128
//设置FBWF覆盖缓冲容量为128MB(16MB-1024MB)。
成功返回:
Overlay cache threshold will be 128 MB after the next reboot.
注意:命令重起后生效

PE下还要考虑设置保存的问题。
回复

使用道具 举报

发表于 2008-9-14 04:21:41 | 显示全部楼层
好东西,谢谢提供,先收藏起来慢慢研究。。
回复

使用道具 举报

发表于 2009-1-31 19:42:49 | 显示全部楼层
挖个坑,保留这样的好文章!
回复

使用道具 举报

发表于 2009-2-1 11:34:51 | 显示全部楼层
winpe教育论坛占位学习!
回复

使用道具 举报

发表于 2009-2-1 16:24:34 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2009-2-1 19:36:40 | 显示全部楼层
强烈支持。向楼主好好学习!

问一下:
PE使用FBWF后,是只开了缓存,使用时才占用内存,还是开启了立即占用内存?
如 FBWF L64 表示强制设置 64M 的 FBWF 缓存,设置后立即占用 64M 内存,还是进行文件读写操作时再一点点占用内存,直到占用 64M 内存为止。
回复

使用道具 举报

发表于 2011-10-6 20:35:29 | 显示全部楼层

回复 #1 happymy 的帖子

很hign啊,顶起,楼主不错vu
回复

使用道具 举报

发表于 2011-10-6 20:36:31 | 显示全部楼层

回复 #12 czswuyou 的帖子

可以设置,有参数。你想马上分配可以,不分配也可以
回复

使用道具 举报

发表于 2011-10-7 11:20:16 | 显示全部楼层
以前装了个win7内存系统
就是每个盘都保存..但是每个盘都不能保存更改...包括u盘...
不是我本意的...以前发过帖子求助的.不知道怎么回事..在这里再求一下..
回复

使用道具 举报

发表于 2011-10-7 11:22:19 | 显示全部楼层
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=198658
这个是我发的帖子哈
上面一副图是内存系统的.他不保存所有东西,包括往u盘放的东西
下面一副是再pe系统下面的盘.也三真实的盘..
回复

使用道具 举报

发表于 2011-11-20 21:49:31 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-3-29 20:25

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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