Digg this topic Add to my del.icio.us Submit to SlashDot  
Reply to this topicStart new topic
> ImDisk startup problems, When used in minimized PE
psc
post Jun 13 2007, 10:33 AM
Post #1


Guru
***

Group: .script developer
Posts: 3,868
Joined: 14-July 06
From: Korschenbroich, Germany
Member No.: 3


Germany


I tried to use ImDisk inside the 'Minimum' PE configuration
(Explorer only, no Apps, no drivers ...)

In a 'standard ' configuration ImDisk appears and shows as first line something like:
QUOTE
Driver loaded into the kernel

After formatting the RAM disk, the command window disappears.

In the 'minimum' configuration ImDisk starts and remains with the empty command window for about 3 minutes.
Then it continues like in the 'standard' case.

Questions:

What is happening when loading the driver into the kernel?
Which conditions must be fullfilled?

Peter
Go to the top of the page
 
+Quote Post
Olof Lagerkvist
post Jun 13 2007, 12:25 PM
Post #2


Advanced Member
***

Group: Developer
Posts: 120
Joined: 27-April 07
From: Borås, Sweden
Member No.: 6,234


Sweden


QUOTE (psc @ Jun 13 2007, 12:33 PM) *
In the 'minimum' configuration ImDisk starts and remains with the empty command window for about 3 minutes.
Then it continues like in the 'standard' case.

Questions:

What is happening when loading the driver into the kernel?

The driver ImDisk kernel level driver is started by the Service Control Manager, which means that the module imdisk.sys is loaded into the kernel. Just ordinary calls to OpenSCManager(), OpenService(), StartService() ...
QUOTE (psc @ Jun 13 2007, 12:33 PM) *
Which conditions must be fullfilled?

Just that the driver is installed properly in the registry and that the caller has administrative privileges...

But anyway, you can try to change the ImDisk driver in the registry to auto-start instead of demand-start so that it is loaded automatically when Windows is starting up. Then the driver will already loaded and ready in the kernel when the imdisk.exe command starts to create the RAM-disk. The registry value Start under HKLM\SYSTEM\CurrentControlSet\Services\ImDisk controls wether the driver is loaded automatically by Windows. Set the value to 2 instead of 3 to have the driver auto-started. This is also configurable from .inf files that installs drivers and services.
Go to the top of the page
 
+Quote Post
psc
post Jun 13 2007, 02:20 PM
Post #3


Guru
***

Group: .script developer
Posts: 3,868
Joined: 14-July 06
From: Korschenbroich, Germany
Member No.: 3


Germany


QUOTE (Olof Lagerkvist @ Jun 13 2007, 02:25 PM) *
The driver ImDisk kernel level driver is started by the Service Control Manager, which means that the module imdisk.sys is loaded into the kernel. Just ordinary calls to OpenSCManager(), OpenService(), StartService() ...

Just that the driver is installed properly in the registry and that the caller has administrative privileges...

But anyway, you can try to change the ImDisk driver in the registry to auto-start instead of demand-start so that it is loaded automatically when Windows is starting up. Then the driver will already loaded and ready in the kernel when the imdisk.exe command starts to create the RAM-disk. The registry value Start under HKLM\SYSTEM\CurrentControlSet\Services\ImDisk controls wether the driver is loaded automatically by Windows. Set the value to 2 instead of 3 to have the driver auto-started. This is also configurable from .inf files that installs drivers and services.


auto-start did not help.

But I found the reason: In the 'minimum' configuration some authentication stuff was missingt. I added that to the script

Peter
Go to the top of the page
 
+Quote Post
Olof Lagerkvist
post Jun 13 2007, 04:45 PM
Post #4


Advanced Member
***

Group: Developer
Posts: 120
Joined: 27-April 07
From: Borås, Sweden
Member No.: 6,234


Sweden


QUOTE (psc @ Jun 13 2007, 04:20 PM) *
But I found the reason: In the 'minimum' configuration some authentication stuff was missingt. I added that to the script

Okay, good (IMG:http://www.boot-land.net/forums/style_emoticons/default/smile.gif)
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic

Members Who Viewed Topic Today ()

 

Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

RSS Lo-Fi Version Time is now: 27th February 2008 - 05:07 PM

MKPortal ©2003-2006 mkportal.it