From: Koen on
On 7 mei, 21:47, Michael <Mich...(a)discussions.microsoft.com> wrote:
> Is it possible to access files on a FAT32 parition during boot time from a
> PnP driver?  ZwCreateFile() is returning STATUS_UNRECOGNIZED_VOLUME.  I tried
> playing around with dependencies and load order, but that didn't seem to do
> anything.  If I re-start the driver after the system has fully booted, I am
> able to open the file.

Michael,

Have you tried setting HKEY_LOCAL_MACHINE\System\CurrentControlSet
\Services\FastFat\Start to 0 ?
This did the trick for my driver...

Success,

Koen
From: Michael on
Thanks everyone for all of the suggestions. What is the correct way to
postpone accessing the filesystem? If I just poll on the ZwCreateFile()
call, this seems to block the system from ever fully booting. Is there a way
to be notified through a callback when the filesystem is accessible?

"Pavel A." wrote:

> "Michael" <Michael(a)discussions.microsoft.com> wrote in message
> news:81D38A2D-ADD7-4820-8C85-0AC76C3D06A4(a)microsoft.com...
> > Is it possible to access files on a FAT32 parition during boot time from a
> > PnP driver? ZwCreateFile() is returning STATUS_UNRECOGNIZED_VOLUME. I
> > tried
> > playing around with dependencies and load order, but that didn't seem to
> > do
> > anything. If I re-start the driver after the system has fully booted, I
> > am
> > able to open the file.
>
> During boot, only the system disk is available immediately,
> other disks come later.
> Due to boot optimization, your driver may start early
> and the load order does not control this completely.
> Try to be more flexible. If your driver can wait, delay
> whatever it does, until that disk becomes available.
>
> Regards,
> --PA
>
>
>
From: Michael on
Setting FastFat\Start to 0 seems to have done the trick! Are there any
potential side effects from doing this? Thanks!


"Koen" wrote:

> On 7 mei, 21:47, Michael <Mich...(a)discussions.microsoft.com> wrote:
> > Is it possible to access files on a FAT32 parition during boot time from a
> > PnP driver? ZwCreateFile() is returning STATUS_UNRECOGNIZED_VOLUME. I tried
> > playing around with dependencies and load order, but that didn't seem to do
> > anything. If I re-start the driver after the system has fully booted, I am
> > able to open the file.
>
> Michael,
>
> Have you tried setting HKEY_LOCAL_MACHINE\System\CurrentControlSet
> \Services\FastFat\Start to 0 ?
> This did the trick for my driver...
>
> Success,
>
> Koen
>
From: Koen on
On 8 mei, 16:40, Michael <Mich...(a)discussions.microsoft.com> wrote:
> Setting FastFat\Start to 0 seems to have done the trick!  Are there any
> potential side effects from doing this?  Thanks!
>
>
>
> "Koen" wrote:
> > On 7 mei, 21:47, Michael <Mich...(a)discussions.microsoft.com> wrote:
> > > Is it possible to access files on a FAT32 parition during boot time from a
> > > PnP driver?  ZwCreateFile() is returning STATUS_UNRECOGNIZED_VOLUME.  I tried
> > > playing around with dependencies and load order, but that didn't seem to do
> > > anything.  If I re-start the driver after the system has fully booted, I am
> > > able to open the file.
>
> > Michael,
>
> > Have you tried setting HKEY_LOCAL_MACHINE\System\CurrentControlSet
> > \Services\FastFat\Start to 0 ?
> > This did the trick for my driver...
>
> > Success,
>
> > Koen- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

No idea about possible side effects. However, we've been running our
systems (2000, XP and 2003 Server) with this setting for years and
never encountered any problems.

Koen
From: Maxim S. Shatskih on
Look at IoRegisterDriverReinitialization

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim(a)storagecraft.com
http://www.storagecraft.com

"Michael" <Michael(a)discussions.microsoft.com> wrote in message
news:C5E4B7C7-B4E3-4A8D-84DA-C0087D233CD0(a)microsoft.com...
> Thanks everyone for all of the suggestions. What is the correct way to
> postpone accessing the filesystem? If I just poll on the ZwCreateFile()
> call, this seems to block the system from ever fully booting. Is there a way
> to be notified through a callback when the filesystem is accessible?
>
> "Pavel A." wrote:
>
> > "Michael" <Michael(a)discussions.microsoft.com> wrote in message
> > news:81D38A2D-ADD7-4820-8C85-0AC76C3D06A4(a)microsoft.com...
> > > Is it possible to access files on a FAT32 parition during boot time from
a
> > > PnP driver? ZwCreateFile() is returning STATUS_UNRECOGNIZED_VOLUME. I
> > > tried
> > > playing around with dependencies and load order, but that didn't seem to
> > > do
> > > anything. If I re-start the driver after the system has fully booted, I
> > > am
> > > able to open the file.
> >
> > During boot, only the system disk is available immediately,
> > other disks come later.
> > Due to boot optimization, your driver may start early
> > and the load order does not control this completely.
> > Try to be more flexible. If your driver can wait, delay
> > whatever it does, until that disk becomes available.
> >
> > Regards,
> > --PA
> >
> >
> >