Jump to content

RAMDrive Challenge!


ShrimpBoy

Recommended Posts

Hi!

I need to use one of those drivers to install a RAMDrive in my WinPE 1.6 based on Win2K3...

-RAMDISK Sample provided by Microsoft site ( http://support.microsoft.com/kb/q257405/ )

-RAMDISK driver from Win2K3 installation files ( I386\RAMDISK.IN_ and RAMDISK.SY_ )

I would like to install it without applying registry directly into setupreg.hiv before booting WinPE...

Is it possible?

Can you provide a clear method to do that?

Thanks!

ShrimpyOne

P.S.: I'm really cheap and I don't want to pay for a RAMDISK Driver to be legit, so use the free drivers that I've handy...

Link to comment
Share on other sites


Yes it is.

You need to mount the registry and apply a the ramdriv.reg file to the setupreg.hiv prior to compiling the image. It's called a reg slam.

here is how...

:LoadRegistry

reg.exe load HKLM\NewSys %1\system32\setupreg.hiv

:RegistrySlam

RegEdit.exe /s "%~dp0\ramdrv.reg"

:UNLoadRegistry

reg.exe unload HKLM\NewSys

Chris

Link to comment
Share on other sites

Hi!

It almost work...

I took the Ramdriv.sys provided with BartPE and did the following...

copy ramdriv.sys to system32\drivers folder

write ramdriv.reg to System32

When I boot

I do the following...

Regedit /s RAMDriv.reg

regsvr32 /s %SystemRoot%\System32\netcfgx.dll

factory -minint

netcfg -v -winpe

net start dhcp

net start nla

I have the RAMDrive, but got this message while trying to connect to network...:(

"Your system is low on virtual memory. To ensure that Windows runs properly, increase the size of your virtual memory paging file. For more information, see Help."

How can I fix this??

ShrimpyOne

RAMDriv.reg

____________________________________________

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment]

"Temp"="Y:"

"Tmp"="Y:"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}]

"Class"="RamDisk"

@="RAM Disk"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001]

"ProviderName"="QSoft"

"MatchingDeviceId"="ramdriv"

"DriverDesc"="Ramdisk [ QSoft ]"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\UNKNOWN\9999]

"ClassGUID"="{FFA1C341-4539-11D3-B88D-00C04FAD5172}"

"Class"="RamDisk"

"ConfigFlags"=dword:00000004

"Mfg"="QSoft"

"HardwareID"=hex(7):72,00,61,00,6d,00,64,00,72,00,69,00,76,00,00,00,00,00

"Service"="Ramdriv"

"DeviceDesc"="Ramdisk [ QSoft ]"

"Capabilities"=dword:00000000

"Driver"="{FFA1C341-4539-11D3-B88D-00C04FAD5172}\\0001"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\UNKNOWN\9999\Control]

"DisableCount"=dword:00000000

"ActiveService"="Ramdriv"

"FilteredConfigVector& quot;,0x00010000,00,00,00,00,00,00,00,00,00,00,00,00"=""

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ramdriv]

"Type"=dword:00000001

"Start"=dword:00000003

"ErrorControl"=dword:00000001

"DisplayName"="Ramdisk [ QSoft ]"

"ImagePath"="system32\\drivers\\ramdriv.sys"

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

"0"="Root\\UNKNOWN\\9999"

"Count"=dword:00000001

"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ramdriv\Parameters]

"BreakOnEntry"=dword:00000000

"DebugLevel"=dword:00000005

"DebugComp"=dword:ffffffff

"DiskSize"=dword:00200000

"DriveLetter"="Y:"

"RootDirEntries"=dword:00000200

"SectorsPerCluster"=dword:00000002

____________________________________________

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...