6
Mounting the RAMDISK in WINCE 6.0
3 Comments | Posted by Prabu Kumar - Microsoft Certified Technology Specialist in Windows CE
In order to mount RAMDISK in your device. There are two methods for mounting the RAMDisk.
I. First Method:
In the below dialog box of your workspace,
Project->Properties->configuration properties->Environment
Add the following sysgen variable.
SYSGEN_RAMDISK=1
After setting this environment variable “Sysgen” your workspace. Now the created NK.bin will mount the 1MB of your RAM as Mounted volume.

Now you can increase the size of the RAMDisk by changing the RD_SIZE definition in the ramdisk.h file and regenerating the binary.
II.Second Method:
This method will mount the RAMDISK dynamically by running the LOADER application.
- First generate ramdisk.dll and ceramdrv.exe from the source available on the PUBLIC\COMMON\OAK\DRIVERS\BLOCK\RAMDISK folder.
- Open the command build window from VS2005 menu (Build->Open Release Directory Build Window) .
- Type >SET WINCEREL=1
- Then generate the ceramdrv.exe by giving “sysgen -p common ceramdrv” command.
- Then ramdisk.dll by giving “sysgen -p common ramdisk.dll” command.
- After generating the binaries, then transfer both ramdisk.dll and ceramdrv.exe from release directory of your workspace to the device.
- Then run the ceramdrv.exe with command line option as “ceramdrv.exe 3″.This will mount your ramdisk of size 3MB.
- For unloading the ramdisk run the command “ceramdrv.exe /u”.
3 Comments for Mounting the RAMDISK in WINCE 6.0
Lince | April 9, 2009 at 8:46 am
Vlad Vukicevic | October 19, 2009 at 2:02 pm
Instead of “sysgen -p common ramdisk.dll”, I had to use “sysgen -p common ramdisk” — ramdisk.dll wasn’t a valid target.
Leave a comment!
<< Workaround to reload the Power Manager activity timeout upon every booting in Hive based Registry


When Windows CE boots I have a temp folder. And the size of this is temp folder is where the RAM based file system sits and I can control it in the config.bib.
So, why do we require a disk?