Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Windows PE (MS) Ramdisk

Featured Replies

Hi all, does anybody have a tutorial or know how to put a ramdisk into windowspe?

Thanks alot! :)

Chris.

I imagine you could modify the ramdisk plugin from BartPe to work.

It's a .sys file with some registry entries.

I've never tried it though.

Just use my ramdisk or use bart's ramdisk. When SP2 is released a new version of winpe will be released that already has a ramdisk built into it.

-gosh

When SP2 is released a new version of winpe will be released that already has a ramdisk built into it.

Well not quite. Here's the time table from the OEM QTB video:

Windows PE Timetable:

XP SP2 Features 1HCY04

  • WMI Support
  • Driver injection and PnP boot support
  • Formal documentation

Server 2003 SP1 Features 2HCY04

  • Ramdisk support

  • Author
Just use my ramdisk or use bart's ramdisk.  When SP2 is released a new version of winpe will be released that already has a ramdisk built into it.

-gosh

Where can i get it?

Thanks,

Chris.

Add a RAM Drive

This has to done before you run MKIMG.CMD. Download the Microsoft Ramdisk.sys Sample Driver for Windows 2000 (Q257405) and install it per the Q article instructions in a Windows XP VM or on your machine. Set the drive letter to B:. The maximum size is 30.9MB.

NEW If you'd like a better alternative (and no error) try the AR RAM Disk or Christiaan Ghijselinck's RAMDisk (also based on the MS code). The basic instructions provided below should work with little modification for these products as well.

Note: If you do not have at least 192MB RAM the RAMDisk will probably not be created at runtime.

Copy RAMDRIVE.SYS to C:\WinPE\DRIVERS

Copy RAMDISK.INF to C:\WinPE\INF

Open Regedit and Export HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ramdisk to C:\WinPE\SFW\SCRIPTS\RAMDISK.REG

Using Load Hive in RegEdit load the C:\WinPE\SetupReg.hiv as HKEY_USERS\SetupRegHiv

Edit C:\WinPE\SFW\SCRIPTS\RAMDISK.REG search and replace HKEY_LOCAL_MACHINE\SYSTEM for HKEY_USERS\SetupRegHiv and save the file.

Run REGEDIT /S C:\WinPE\SFW\SCRIPTS\RAMDISK.REG (You can delete RAMDISK.REG or keep it)

Using Unload Hive in RegEdit unload HKEY_USERS\SetupRegHiv

The RAMDISK settings should now be in C:\WinPE\SetupReg.hiv

Unfortunately there seems to be an issue (for me anyway). I get Incorrect Function when I try to use the RAMDisk. In order to get around the problem do the following:

Create a text file at C:\WinPE\SFW\SCRIPTS\N.TXT containing N and a Carriage Return/Line Feed

Add the following line to the beginning of the STARTNET.CMD

FORMAT B: /FS:NTFS /V:RAMDisk < \SFW\N.TXT >NUL

Run C:\WinPE\BUILDIMG.CMD

taken from:

http://tjb.xgameservers.com/WindowsPE.html

  • Author

I Tryed that allredy - didnt seem to work.

Im going to bed now, but ill try it again tomorow.

Thanks,

Chris.

  • Author

:).. It wouldnt work

Anybody know a working way, because i followed the instructions to the word.

Thanks,

Chris.

Have you try to use the RAMDISK.SYS included in Windows 2003 Server.

From the 2003 server source :

expand i386\ramdisk.sy_ %systemroot%\system32\drivers ramdisk.sys

expand i386\ramdisk.in_ %systemroot%\inf\ramdisk.inf

to install the driver to your working Windows use M$ DevCon Command Line Utility Alternative to Device Manager (Google search Q311272+DEVCON) :

devcon -r install ramdisk.inf RAMDISK

After rebooting (if necessary) you should probably export registry entries related to the ramdisk :

Look at

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ramdisk]"Type"=dword:00000001

"Start"=dword:00000003

"ErrorControl"=dword:00000001

"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\

  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,72,00,61,00,6d,00,64,00,69,00,73,\

  00,6b,00,2e,00,73,00,79,00,73,00,00,00

"DisplayName"="Pilote de disque virtuel Windows"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ramdisk\Debug]

"DebugComponents"=dword:7fffffff

"DebugLevel"=dword:00000005

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ramdisk\Security]

"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\

  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\

  00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\

  05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\

  20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\

  00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\

  00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ramdisk\Enum]

"0"="Root\\RAMDISK\\0000"

"Count"=dword:00000001

"NextInstance"=dword:00000001

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{9D6D66A6-0B0C-4563-9077-A0E9A7955AE4}]"Class"="Ramdisk"

@="Ramdisk"

"Icon"="-5"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{9D6D66A6-0B0C-4563-9077-A0E9A7955AE4}\0000]

"InfPath"="ramdisk.inf"

"InfSection"="BusInstall"

"InfSectionExt"=".NT"

"ProviderName"="Microsoft"

"DriverDateData"=hex:00,40,2a,7c,dd,68,c2,01

"DriverDate"="10-1-2002"

"DriverVersion"="5.2.3790.0"

"MatchingDeviceId"="ramdisk"

"DriverDesc"="Contrôleur de disque virtuel Windows"

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\RAMDISK][HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\RAMDISK\0000]

"ClassGUID"="{9D6D66A6-0B0C-4563-9077-A0E9A7955AE4}"

"HardwareID"=hex(7):52,00,41,00,4d,00,44,00,49,00,53,00,4b,00,00,00,00,00

"Driver"="{9D6D66A6-0B0C-4563-9077-A0E9A7955AE4}\\0000"

"Class"="Ramdisk"

"Mfg"="Microsoft"

"Service"="Ramdisk"

"DeviceDesc"="Contrôleur de disque virtuel Windows"

"ConfigFlags"=dword:00000000

"Capabilities"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\RAMDISK\0000\LogConf]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\RAMDISK\0000\Control]

"ActiveService"="Ramdisk"

I haven't found at this time where to define in the registry

DiskSize

DriveLetter

Maybe the settings are the same as M$ Q257405 Ramdisk.sys sample driver for Windows 2000 ?

  • Author

Sweet! thanks for the info, ill try it later on tonight - ill let ya know how it goes :)

Chris.

  • 2 weeks later...

im testing my winpe stuff in vmware. is there a reason why i cant get ramdrive OR ramdisk to load and function correctly? I've copied the files, added the registry code to setupreg.hiv

nada ... :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.