The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Operating System Optimization > WinNT Based

Reply
 
Thread Tools Display Modes
Old 11-24-2004, 08:30 AM   #1
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,140
My Photos: (0)
Using EWF on regular WinXP

Hey everyone, don't have much time right now, but I'm fairly sure I got the Enhanced Write Filter (EWF) from XP Embedded running on a regular XP install. What this means is that we can make read-only volumes on XP just like in XP Embedded. I tested it out using Virtual PC. I'm not sure if someone has already done this or not. I've been out of the CarPC world for a few months. The reason I did this is because I'd like to install my OS and UI files on a CF disk for physical size issues, and have an external 2.5" drive for all my data files. Anyways, I need to go back tonight and make sure I've got everything right. I did a quick test last night (or this morning actually) and it did indeed work (booted up, ran ewfmgr which confirmed I had ewf running, deleted a few files and created one in the volume, rebooted and the volume reverted back to its original state). Now the only issue is to figure out how much we can slim down XP. EWF may also work on Win2k since it's just a storage filter. Anyways, I'll post again today when I have some time. Thanks!
SFiorito is offline   Reply With Quote
Sponsored Links
Old 11-24-2004, 09:34 AM   #2
Newbie
 
Join Date: Nov 2004
Location: Spfld, MA
Vehicle: 96
Posts: 6
My Photos: (0)
sounds good keep us posted.
__________________
[SIZEundefinedundefined=5]Manny[/size]
mannypc is offline   Reply With Quote
Old 11-24-2004, 09:35 AM   #3
Low Bitrate
 
Join Date: Jul 2004
Location: Business Class
Vehicle: Mercedes-Benz S500
Posts: 60
My Photos: (0)
Very interested in this! Keep us up to date!
ST34LTH is offline   Reply With Quote
Old 11-24-2004, 11:14 AM   #4
9 Fingered Administrator
Lesbian
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
My Photos: (0)
__________________
FrodoPlayer.com
TeaBaggins.com
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Old 11-24-2004, 11:35 AM   #5
Registered User
 
mpattonm's Avatar
 
Join Date: May 2003
Location: Czech rep.
Vehicle: Renault Laguna II
Posts: 655
My Photos: (0)
For good God: HOW?
mpattonm is offline   Reply With Quote
Old 11-24-2004, 09:34 PM   #6
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,140
My Photos: (0)
Okay gents, sorry to keep you waiting so long... I had to finish my half-assed info-sec term paper that I should've been working on last night instead of the EWF thing... Anyways... The EWF does indeed work with WinXP. I'll try to break it down Barney style, but it's not that complicated.

If you hose your system, it's not my fault!!!! I recommend doing this on a secondary drive first to make sure you do it right (or that I didn't forget something).

1) You need 3 files from XPe: ewf.sys, ewfmgr.exe, and ewfntldr. These can be retrieved from the XPe trial available on MSDN. Once you install it just go to the Repositories directory and just look for the most recent versions in the subdirs with all the components.

2) Place ewf.sys in your system32\drivers directory and ewfmgr.exe in system32. Go to your root dir and rename ntldr to ntldr_bak and copy ewfntldr and rename it ntldr.

3) Open up regedit and go to HKLM\SYSTEM\CurrentControlSet\Enum\Root. Right-Click and choose Permissions. Set "Everyone" to full-control.

4) Open up notepad and copy-and-paste the following lines:
-------copy after this line-----------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_EWF]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_EWF\0000]
"Service"="EWF"
"Legacy"=dword:00000001
"ConfigFlags"=dword:00000020
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"DeviceDesc"="EWF"
"Capabilities"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_EWF\0000\Control]
"ActiveService"="EWF"
----------end copy---------------
save the file as ewf1.reg. Double-click and answer yes to both dialogboxes.

5) Go back to regedit and reset the Permissions; Everyone read only.

6) Go to http://msdn.microsoft.com/library/de...sp1_cf_ewf.asp and set the registry entries they detail in that article. Search for "First, verify that the following entries are present on your device". Just add those entries they've got listed there. Notice the "ArcName" value under ewf\Parameters\Protected\Volume0. Be sure to edit it so it matches whichever partition you want to protect.

7) Reboot!! It should boot up normally. Once you reboot go to a command line and run "ewfmgr c:". It should list your settings for that drive (ewfmgr d:, ewfmgr e:, etc., etc.) You can test whether it's working by creating some files (or deleting them) and then rebooting. The volume will not have changed. Now, let's say you want to make some permanent changes on that volume. Run "ewfmgr c: -commitanddisable -live". This will commit any changes and disable ewf right then and there, but you have to remember to run "ewfmgr c: -enable" before you reboot to reenable ewf. That's the prob, you can't enable ewf on the fly, only disable works that way. You can also run "ewfmgr c: -disable" which will disable on reboot without committing. Take a look at the docs for a better idea. There's also an API detailed in the XPe docs for those interested in programmatically configuring EWF (could be useful for touchscreen interface so that a user can disable EWF to run Windows Update or whatever).

That's all I've got for now. Based on what I saw on VirtualPC, writes are indeed being filtered out (the little red light didn't flash at all using VPC, only green for reading). A few things to keep in mind: the more writes you make to your protected volume the more RAM EWF will consume. That's how this thing works! There actually is a setting to send writes to another partition, but I've only worked on RAM types for now. You may want to disable as much as possible: a pagefile doesn't make sense since if you need to use it then you'll run out of memory anyways (remember that all writes go to RAM with EWF). VirusScanners aren't really necessary for a carPC, especially since any virus will get flushed when you reboot. I'm trying to think of what else.... Automatic updates aren't a good idea since it'll just use up RAM by EWF and won't last after a reboot.

I guess that's it for now. If your system gets hosed just try booting up with Last known good configuration. You'll probably need to redo the reg settings. I'll keep testing this. For now, I need to see about how to install a minimal XP SP2 setup on a flash drive.

Have fun!!!

Frito
SFiorito is offline   Reply With Quote
Old 11-24-2004, 10:24 PM   #7
Constant Bitrate
 
Hell-Stopper's Avatar
 
Join Date: Oct 2004
Posts: 201
My Photos: (0)
Quote: Originally Posted by SFiorito
Okay gents, sorry to keep you waiting so long... I had to finish my half-assed info-sec term paper that I should've been working on last night instead of the EWF thing... Anyways... The EWF does indeed work with WinXP. I'll try to break it down Barney style, but it's not that complicated.

If you hose your system, it's not my fault!!!! I recommend doing this on a secondary drive first to make sure you do it right (or that I didn't forget something).

1) You need 3 files from XPe: ewf.sys, ewfmgr.exe, and ewfntldr. These can be retrieved from the XPe trial available on MSDN. Once you install it just go to the Repositories directory and just look for the most recent versions in the subdirs with all the components.

2) Place ewf.sys in your system32\drivers directory and ewfmgr.exe in system32. Go to your root dir and rename ntldr to ntldr_bak and copy ewfntldr and rename it ntldr.

3) Open up regedit and go to HKLM\SYSTEM\CurrentControlSet\Enum\Root. Right-Click and choose Permissions. Set "Everyone" to full-control.

4) Open up notepad and copy-and-paste the following lines:
-------copy after this line-----------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_EWF]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_EWF\0000]
"Service"="EWF"
"Legacy"=dword:00000001
"ConfigFlags"=dword:00000020
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"DeviceDesc"="EWF"
"Capabilities"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_EWF\0000\Control]
"ActiveService"="EWF"
----------end copy---------------
save the file as ewf1.reg. Double-click and answer yes to both dialogboxes.

5) Go back to regedit and reset the Permissions; Everyone read only.

6) Go to http://msdn.microsoft.com/library/de...sp1_cf_ewf.asp and set the registry entries they detail in that article. Search for "First, verify that the following entries are present on your device". Just add those entries they've got listed there. Notice the "ArcName" value under ewf\Parameters\Protected\Volume0. Be sure to edit it so it matches whichever partition you want to protect.

7) Reboot!! It should boot up normally. Once you reboot go to a command line and run "ewfmgr c:". It should list your settings for that drive (ewfmgr d:, ewfmgr e:, etc., etc.) You can test whether it's working by creating some files (or deleting them) and then rebooting. The volume will not have changed. Now, let's say you want to make some permanent changes on that volume. Run "ewfmgr c: -commitanddisable -live". This will commit any changes and disable ewf right then and there, but you have to remember to run "ewfmgr c: -enable" before you reboot to reenable ewf. That's the prob, you can't enable ewf on the fly, only disable works that way. You can also run "ewfmgr c: -disable" which will disable on reboot without committing. Take a look at the docs for a better idea. There's also an API detailed in the XPe docs for those interested in programmatically configuring EWF (could be useful for touchscreen interface so that a user can disable EWF to run Windows Update or whatever).

That's all I've got for now. Based on what I saw on VirtualPC, writes are indeed being filtered out (the little red light didn't flash at all using VPC, only green for reading). A few things to keep in mind: the more writes you make to your protected volume the more RAM EWF will consume. That's how this thing works! There actually is a setting to send writes to another partition, but I've only worked on RAM types for now. You may want to disable as much as possible: a pagefile doesn't make sense since if you need to use it then you'll run out of memory anyways (remember that all writes go to RAM with EWF). VirusScanners aren't really necessary for a carPC, especially since any virus will get flushed when you reboot. I'm trying to think of what else.... Automatic updates aren't a good idea since it'll just use up RAM by EWF and won't last after a reboot.

I guess that's it for now. If your system gets hosed just try booting up with Last known good configuration. You'll probably need to redo the reg settings. I'll keep testing this. For now, I need to see about how to install a minimal XP SP2 setup on a flash drive.

Have fun!!!

Frito

hi frito
i have been working on slimming down xp pro i have managed to get xp pro sp1 down to about 544mbs this method should be useful. cheers (btw i think u can shrink xp down more, keep up the good work, btw can u host those files and send them to me? cuz i cant get xpe to install so i cant get those files, to test out ur method)
Hell-Stopper is offline   Reply With Quote
Old 11-24-2004, 11:38 PM   #8
SWC
Constant Bitrate
 
Join Date: Aug 2004
Location: Baltimore
Vehicle: 96 Chevy Blazer
Posts: 165
My Photos: (0)
if anyone can send me the files I will host them.
SWC is offline   Reply With Quote
Old 11-25-2004, 04:19 AM   #9
Registered User
 
mpattonm's Avatar
 
Join Date: May 2003
Location: Czech rep.
Vehicle: Renault Laguna II
Posts: 655
My Photos: (0)
for stripping down WindowsXP, use nLite from http://nuhi.msfn.org/. My installation of WindowsXP SP2 is now 320 MB only and there is lot more stuff I could yet delete - some left 16 bit junk, Direct3D, Direct Play,... So I will finally be able to put everything on 512 MB CF card. Thanx to you, SFiorito!
mpattonm is offline   Reply With Quote
Old 11-25-2004, 06:56 AM   #10
Constant Bitrate
 
Hell-Stopper's Avatar
 
Join Date: Oct 2004
Posts: 201
My Photos: (0)
Quote: Originally Posted by mpattonm
for stripping down WindowsXP, use nLite from http://nuhi.msfn.org/. My installation of WindowsXP SP2 is now 320 MB only and there is lot more stuff I could yet delete - some left 16 bit junk, Direct3D, Direct Play,... So I will finally be able to put everything on 512 MB CF card. Thanx to you, SFiorito!

what else did u delete besides the regular stuff listed in nlite? cuz i only got mine down to 544mbs installed....
Hell-Stopper is offline   Reply With Quote
Sponsored Links
Old 11-25-2004, 07:58 AM   #11
Maximum Bitrate
knubile's CarPC Specs
 
knubile's Avatar
 
Join Date: Sep 2004
Posts: 505
My Photos: (0)
If anyone can provide some details on their nlite setup, it would be great. I couldn't get mine smaller than 700 after the installation.
knubile is offline   Reply With Quote
Old 11-25-2004, 08:10 AM   #12
Registered User
 
mpattonm's Avatar
 
Join Date: May 2003
Location: Czech rep.
Vehicle: Renault Laguna II
Posts: 655
My Photos: (0)
Well I had to mention I do not use hibernation and virtual memory. If you do the same, you can start with deleting hidden file in your root directory called "hiberfill.sys". Then its only cosmetics. I delete all INF files from your Windows dir (called OS in my case), TXT, LOG files... and OOBE, WEB, HELP, SYSTEM folders... all the junk left by nLite, such as DOS enviroment in System32...
mpattonm is offline   Reply With Quote
Old 11-25-2004, 09:12 AM   #13
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,140
My Photos: (0)
So what's the best way to install to CF? Do you just do a regular install (using an nlite bootable CD) to the CF card in the IDE slot, or do you install first to a regular HDD and then copy the system over to a CF disk?
SFiorito is offline   Reply With Quote
Old 11-25-2004, 09:21 AM   #14
Registered User
 
mpattonm's Avatar
 
Join Date: May 2003
Location: Czech rep.
Vehicle: Renault Laguna II
Posts: 655
My Photos: (0)
I always do all the work on HDD and then transfer image on CF using an utility such as Ghost, thus I keep writes to CF on minimum. I do not want my CF to burn even before I am actually done with my CarPC install
mpattonm is offline   Reply With Quote
Old 11-25-2004, 09:23 AM   #15
Registered User
 
mpattonm's Avatar
 
Join Date: May 2003
Location: Czech rep.
Vehicle: Renault Laguna II
Posts: 655
My Photos: (0)
Quote: Originally Posted by mpattonm
Well I had to mention I do not use hibernation and virtual memory. If you do the same, you can start with deleting hidden file in your root directory called "hiberfill.sys". Then its only cosmetics. I delete all INF files from your Windows dir (called OS in my case), TXT, LOG files... and OOBE, WEB, HELP, SYSTEM folders... all the junk left by nLite, such as DOS enviroment in System32...

..and you can find lot more stuff that can be painlessly deleted here:

http://www.msfn.org/board/index.php?...pic=32463&st=0
mpattonm is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Will OPUS work with regular P4 Motherboard badandy4you Power Supplies 3 06-22-2004 12:55 AM
slim dvd vs. regular dvd cybermob2 Power Supplies 28 03-22-2004 12:47 PM
TM-701L & Geforce 4 also a regular TV!! Mp3Goose_Your King LCD/Display 3 03-25-2003 12:59 AM
Com Ports not working in WinXP on EPIA-M Defiler General Hardware Discussion 25 12-16-2002 02:26 PM
FV24 and WinXP BRINET General Hardware Discussion 3 04-19-2002 01:00 PM


All times are GMT -5. The time now is 07:14 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics