Centrafuse Carputer, CarPC & UMPC Forums

Go Back   Centrafuse Carputer, CarPC & UMPC Forums > Centrafuse General > General Centrafuse Questions

General Centrafuse Questions General questions about Centrafuse


Reply
 
LinkBack Thread Tools Display Modes
Old July 21st, 2008, 04:29 PM   #1 (permalink)
Newbie - Zero Capacity
wezoly's CarPC Specs
 
Join Date: Jul 2008
Posts: 1
wezoly is on a distinguished road
CF & Windows XP Embedded + EWF/HORM

I've done my research on a lot of car pc related forums and know XP embedded pretty well and have been tinkering with CF whilst running HORM.
Here's the problem:
When running XPe with EWF the system volume is protected and the hiberfil.sys hibernation file bypasses EWF and is written to the protected volume. The system can then resume from the hibernated state rapidly so that Windows can resume from where it left off. Any changes made that need to be committed to the protected volume are lost whenever it is shutdown (RAM overlay). Thus allowing a fast load up time and no major headaches when it comes down to power issues.
One issue with this is that if you have a second volume mounted (or partition etc) which is unprotected by EWF and it is mounted whenever the initial hibernation is performed then the write cache for this mounted unprotected volume is committed to the protected system volume within the hiberfil.sys. This effectively means that anything written to the unprotected volume is lost and is a recipe for disaster as the system effectively thinks the file system is then corrupt.
What I want to achieve is the following:
An XPe machine that uses EWF & HORM which has CF running during the initial hibernation so it is running automatically on resume AND allows for the user to change settings within CF which are persisted - things like last song playing, updatable music library etc. All without having to re-commit changes to the EWF protected volume.


To achieve this the following has to be done:
One machine with two disks (doesn’t matter what format, regular HDD, SSD,USB, Compact Flash).
First disk is the system one which will include the OS files and the registry which will be fully protected by EWF. Hiberfil.sys is obviously stored here too.


The second disk is the data disk which will host the Centrafuse application itself (maps, settings etc)
I know that CF creates a user profile directory for its music DB (main.dat) etc. under {local settings\application data\centrafuse}. By creating a junction prior to installation & initial hibernation, to the second disk for this folder then it means that all of the files necessary for CF to run correctly will be stored on the data disk.

The issue then becomes if CF is running it always has a file handle on the data disk no matter what is going on. As the unprotected data volume has to be dismounted prior to the initial hibernation in order to prevent corruption then something has to be implemented within CF to release all file handles within the running process prior to hibernation which will then allow for a script to be executed (from the system drive) to dismount the data volume cleanly. Then when the system boots back up from the hibernated state XP will automatically remount the volume cleanly and CF should be able to re-create the handles for its files in order for it to run.

Does this sound feasible or has someone already been able to do this with CF?
I've looked at using SDI disks but again it all relies on having the running application not to have any active handles on the unprotected volume.
I've also looked into suspended the CF process and forcebly closing the handles but it doesnt like it upon resuming the process.
Thanks & Regards,
Wez
wezoly is offline   Reply With Quote
Old November 25th, 2008, 11:55 AM   #2 (permalink)
1 Farad - Avg. Capacity
 
Join Date: Apr 2008
Posts: 18
JotaeRe is on a distinguished road
any solution? I do the same thing happens ...
JotaeRe is offline   Reply With Quote
Old December 1st, 2008, 04:26 PM   #3 (permalink)
Administrator
David's CarPC Specs
 
David's Avatar
 
Join Date: Oct 2004
Location: Atlanta, GA
Posts: 5,012
David has disabled reputation
not a current solution to this problem, closing all the handles would cause some issues in the system...

you might try to completly close Centrafuse, then run your script, and open Centrafuse again on resume after you mount again...

david
David is offline   Reply With Quote
Old March 8th, 2009, 06:45 PM   #4 (permalink)
DVT
Newbie - Zero Capacity
 
Join Date: Aug 2007
Posts: 4
DVT is on a distinguished road
I have also being looking into this for sometime, currently I have a test setup running on a CF Card with 2 partitions. D: partition was unmounted when hibernation was created and remounted on resume. At this stage I am not using Junctions although I have tried them out.

Centrafuse is on the EWF'ed C: it just uses a couple of batch files and a file unlocker. Somethings update happily and some don't. I am in the process of seeing what works and what doesn't. Media side of things seems to be fine, only noticed so far that newly added radio station presets are lost on resume. GPS is working but haven't saved and favourites yet. Obviously a lot skin changes are lost although saved to the configs as I am resuming using HORM.

I am currently only writing 870KB back the card on shutdown, so hardly going to do the card damage in a hurry.

I have had to create a button called Safe Exit which copies all the configs from the EWF layer and then shutdowns down the pc. Sadly the run commands on shutdown run to quick and never run my script. A fully custom option for the shutdown button would be useful.

The configs are held on the EWF layer until shutdown which of course would be lost if power is cut but this is easy to overcome.

I still have a lot of testing and tweaking to do.

DVT
DVT is offline   Reply With Quote
Reply

Bookmarks

Tags
ewf, horm

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Embedded nintwala Software 24 July 19th, 2008 10:47 AM
Centrafuse 2.0 RC4 Scott Release Information 0 June 10th, 2008 08:16 PM
Windows XP Embedded evan General Centrafuse Questions 12 January 9th, 2008 04:41 PM
CentraFuse and Windows Embedded + EWF Protected volume vinzer General CarPC Hardware Questions 2 May 24th, 2007 01:22 AM



All times are GMT -4. The time now is 11:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2009 Flux Media, Inc. All rights reserved.Ad Management plugin by RedTyger