Jump to content

Windows PE (MS) Ramdisk


CuBie

Recommended Posts


netsendjoe: didnt you serve betas on irc? You had some good stuff.

I'll put this on my todo list and try to get a ramdrive working for the microsoft version of winpe. I'll probably just install winpe locally so i don't have to install any vm software.

-gosh

Link to comment
Share on other sites

Has anyone got the ram drive to work? I'm using WinPE with Explorer and I have tried everything but I can't get it to work. Where can I manualy add in the needed registry files. For some reason they are not getting added into the registry when I add it to the setupreg.hiv file.

Link to comment
Share on other sites

Try the ramdrive from BartPE

copy ramdriv.sys to your iso's System32\Drivers and add the addreg section to winpesys.inf (without the [AddReg])

or copy the whole to a file named ramdrive.inf and edit a line in config.inf to

setupreg.hiv = .\winpesys.inf,AddReg,.\ramdrive.inf,AddReg and place ramdrive.inf in the winpe folder

[Version]
signature = $CHICAGO$
SetupClass=BASE

[AddReg]
; Add tmp and temp environment variable...
; 26-9-2003 14:52 Bart: Removed ending '\'
HKLM,"ControlSet001\Control\Session Manager\Environment","temp",0x00020000,"B:"
HKLM,"ControlSet001\Control\Session Manager\Environment","tmp",0x00020000,"B:"
; Add ramdrv environment variable... (Erwin happy?)
HKLM,"ControlSet001\Control\Session Manager\Environment","ramdrv",0x00020000,"B:"
;
HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}","Class",,"RamDisk"
HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}","class2",,"RAM Disk"
HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","ProviderName",,"QSoft"
HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","MatchingDeviceId",,"ramdriv"
HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","DriverDesc",,"Ramdisk [ QSoft ]"
HKLM,"ControlSet001\Services\Ramdriv","Type",65537,1
HKLM,"ControlSet001\Services\Ramdriv","Start",65537,3
HKLM,"ControlSet001\Services\Ramdriv","ErrorControl",65537,1
HKLM,"ControlSet001\Services\Ramdriv","DisplayName",,"Ramdisk [ QSoft ]"
HKLM,"ControlSet001\Services\Ramdriv","ImagePath",,"system32\drivers\ramdriv.sys"

HKLM,"ControlSet001\Services\Ramdriv\Parameters","BreakOnEntry",65537,0
HKLM,"ControlSet001\Services\Ramdriv\Parameters","DebugLevel",65537,5
HKLM,"ControlSet001\Services\Ramdriv\Parameters","DebugComp",65537,-1

HKLM,"ControlSet001\Services\Ramdriv\Parameters","DiskSize",65537,33554432
HKLM,"ControlSet001\Services\Ramdriv\Parameters","DriveLetter",,"B:"

HKLM,"ControlSet001\Services\Ramdriv\Parameters","RootDirEntries",65537,512
HKLM,"ControlSet001\Services\Ramdriv\Parameters","SectorsPerCluster",65537,2

HKLM,"ControlSet001\Services\Ramdriv\Enum","0",,"Root\UNKNOWN\9999"
HKLM,"ControlSet001\Services\Ramdriv\Enum","Count",65537,1
HKLM,"ControlSet001\Services\Ramdriv\Enum","NextInstance",65537,1

HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","ClassGUID",,"{FFA1C341-4539-11D3-B88D-00C04FAD5172}"
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Class",,"RamDisk"
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","ConfigFlags",65537,4
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Mfg",,"QSoft"
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","HardwareID",0x00010000,"ramdriv"
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Service",,"Ramdriv"
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","DeviceDesc",,"Ramdisk [ QSoft ]"
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Capabilities",65537,0
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Driver","{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001"

HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999\Control","DisableCount",65537,0
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999\Control","ActiveService",,"Ramdriv"
HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999\Control","FilteredConfigVector",0x00010000,""

This is my Very First Post, I hope its useful to you guys. :)

Hope I didn't break any rules!

Link to comment
Share on other sites

I like to keep my pluggins separate sort of like with bartpe. I rebuild the registry on the fly each time I rebuild the cd image.

I think this will help you if you edit hive files directly.

Just save this code as ramdisk.inf or whatever just give it an .inf extension. Now import Setupreg.hiv as PESETUPREG, then right click on ramdisk.inf and choose install.

hope it helps :) !

[Version]
signature = $CHICAGO$
SetupClass=BASE

[DefaultInstall]
AddReg     = exp.AddReg

[exp.AddReg]

HKLM,"PESETUPREG\ControlSet001\Control\Session Manager\Environment","temp",0x00020000,"B:"
HKLM,"PESETUPREG\ControlSet001\Control\Session Manager\Environment","tmp",0x00020000,"B:"

HKLM,"PESETUPREG\ControlSet001\Control\Session Manager\Environment","ramdrv",0x00020000,"B:"

HKLM,"PESETUPREG\ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}","Class",,"RamDisk"
HKLM,"PESETUPREG\ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}","class2",,"RAM Disk"
HKLM,"PESETUPREG\ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","ProviderName",,"QSoft"
HKLM,"PESETUPREG\ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","MatchingDeviceId",,"ramdriv"
HKLM,"PESETUPREG\ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","DriverDesc",,"Ramdisk [ QSoft ]"
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv","Type",65537,1
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv","Start",65537,3
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv","ErrorControl",65537,1
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv","DisplayName",,"Ramdisk [ QSoft ]"
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv","ImagePath",,"system32\drivers\ramdriv.sys"

HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Parameters","BreakOnEntry",65537,0
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Parameters","DebugLevel",65537,5
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Parameters","DebugComp",65537,-1

HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Parameters","DiskSize",65537,33554432
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Parameters","DriveLetter",,"B:"

HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Parameters","RootDirEntries",65537,512
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Parameters","SectorsPerCluster",65537,2

HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Enum","0",,"Root\UNKNOWN\9999"
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Enum","Count",65537,1
HKLM,"PESETUPREG\ControlSet001\Services\Ramdriv\Enum","NextInstance",65537,1
HKLM,"PESETUPREG\ControlSet001\Enum",
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","ClassGUID",,"{FFA1C341-4539-11D3-B88D-00C04FAD5172}"
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","Class",,"RamDisk"
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","ConfigFlags",65537,4
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","Mfg",,"QSoft"
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","HardwareID",0x00010000,"ramdriv"
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","Service",,"Ramdriv"
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","DeviceDesc",,"Ramdisk [ QSoft ]"
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","Capabilities",65537,0
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999","Driver","{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001"

HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999\Control","DisableCount",65537,0
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999\Control","ActiveService",,"Ramdriv"
HKLM,"PESETUPREG\ControlSet001\Enum\Root\UNKNOWN\9999\Control","FilteredConfigVector",0x00010000,""

Link to comment
Share on other sites

It didn't work for me. Anymore ideas? 

which method did you use?

did you remember to copy ramdriv.sys to your iso' s system32/drivers directory?

this is the ramdisk that comes with Bartpe and that's what these registry entries are for.

Did it work for you CuBie??

Link to comment
Share on other sites

I tried both of them and it did not work, however I just tried it again and now it works. I used the method of creating the inf file, opening the registry and installing it into setupreg.hiv. Thanks for your help. Now for adding various NIC's and Microsoft's networking. Thanks again for your help :)

Link to comment
Share on other sites

ive just added the keys to my setupreg.hiv after a bit of trouble.

HKLM,"ControlSet001\Control\Session Manager\Environment","temp",0x00020000,"B:"

HKLM,"ControlSet001\Control\Session Manager\Environment","tmp",0x00020000,"B:"

; Add ramdrv environment variable... (Erwin happy?)

HKLM,"ControlSet001\Control\Session Manager\Environment","ramdrv",0x00020000,"B:"

WILL NOT install to pe. Don't ask me why, but if you covert the inf to a .reg, you will see that you get errors importing them keys. Also if you try to install the inf, them keys arnt installed either.

Im just trying it now. For anybody thats intrested ive attached the .reg file of this ini. Just load setupreg.hiv as PE in HKLM and import it.

Later all,

Chris.

bleh.reg

Link to comment
Share on other sites

WILL NOT install to pe. Don't ask me why

Worked for me! In fact it works for me every time because i rebuild the registry each time I recreate the ISO.

Better luck next time!

Link to comment
Share on other sites

WILL NOT install to pe. Don't ask me why

Worked for me! In fact it works for me every time because i rebuild the registry each time I recreate the ISO.

Better luck next time!

Sorry.. I miss worded what i said.. I ment that the keys i quoted wont go into the pe reg, if you dl the reg file and import it to the pe reg you see it says "error blah"..but the rest of the keys import fine!

I just made the iso and it all worked fine, as i suspected!

Thanks alot for the great info! :) n1!

Later,

Chris.

Link to comment
Share on other sites

@ CuBie

Weird!

I just downloaded the reg file you created and imported it and for me it worked perfectly.

Are you sure you are logged in with admin rights? Don't know what else it could be.

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...