MSFN Forum: Windows PE (MS) Ramdisk - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Windows PE (MS) Ramdisk Rate Topic: -----

#1 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 22 March 2004 - 01:44 PM

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

Thanks alot! :)
Chris.


#2 User is offline   Joe User 99 

  • Member
  • PipPip
  • Group: Members
  • Posts: 168
  • Joined: 24-September 03

Posted 22 March 2004 - 02:26 PM

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.

#3 User is offline   gosh 

  • gosh 2.0
  • Group: Patrons
  • Posts: 2,347
  • Joined: 03-October 03
  • OS:none specified
  • Country: Country Flag

Posted 22 March 2004 - 03:51 PM

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

#4 User is offline   ZoSTeR 

  • Member
  • PipPip
  • Group: Members
  • Posts: 227
  • Joined: 04-November 03

Posted 22 March 2004 - 04:55 PM

gosh, on Mar 22 2004, 03:51 PM, said:

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


#5 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 22 March 2004 - 05:11 PM

gosh, on Mar 22 2004, 03:51 PM, said:

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.

#6 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 22 March 2004 - 06:13 PM

http://www.msfn.org/board/index.php?showto...t=0&#entry78742

#7 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 22 March 2004 - 07:15 PM

likuidkewl, on Mar 22 2004, 06:13 PM, said:


Just tryed this - But there isnt a dosnet.inf on the pe cd, so i had to skip that partout - anyhow it didnt work :)....

Gosh was this the page you were talking about? Anyone got any ideas?

Thanks Alot all,
Chris.

#8 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 22 March 2004 - 07:34 PM

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.xgameserv.../WindowsPE.html

#9 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 22 March 2004 - 07:52 PM

I Tryed that allredy - didnt seem to work.

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

Thanks,
Chris.

#10 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 22 March 2004 - 08:24 PM

:).. It wouldnt work

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

Thanks,
Chris.

#11 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 24 March 2004 - 05:27 AM

Anybody know?

:)


Chris.

#12 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 25 March 2004 - 09:06 AM

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

Quote

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


Quote

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"


Quote

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 ?

#13 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 25 March 2004 - 03:07 PM

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

Chris.

#14 User is offline   netsendjoe 

  • Group: Members
  • Posts: 2
  • Joined: 08-April 04

Posted 08 April 2004 - 08:56 PM

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

#15 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 09 April 2004 - 04:46 PM

I can't get it to work either =(

Chris.

#16 User is offline   Crowgoth 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 15-April 04

  Posted 03 May 2004 - 02:46 PM

Cubie you are not the only one that can't get ramdisk to work; like you I have tried all of the posts and none have worked. Does any one have another solution?

#17 User is offline   gosh 

  • gosh 2.0
  • Group: Patrons
  • Posts: 2,347
  • Joined: 03-October 03
  • OS:none specified
  • Country: Country Flag

Posted 04 May 2004 - 04:04 AM

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

#18 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 04 May 2004 - 09:35 AM

Thanks gosh :)

Chris.

#19 User is offline   ckarm 

  • Group: Members
  • Posts: 5
  • Joined: 06-May 04

Posted 07 May 2004 - 08:01 AM

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.

#20 User is offline   Spawn 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 07-May 04

Posted 07 May 2004 - 02:41 PM

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!

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy