utility to dismount the volume

Do we have any utility to dismount the volume, we need it for our debugging purpose ?
we can create an app but just wanted to know if there is anything already available.

fsutil volume dismount x: works if the drive is NTFS (not sure why it
doesn’t work for FAT). Other than that I think you’re stuck writing an app
to send the FSCTL.

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

wrote in message news:xxxxx@ntdev…
> Do we have any utility to dismount the volume, we need it for our
> debugging purpose ?
> we can create an app but just wanted to know if there is anything already
> available.
>
>
>
>

I have tried fsutil volume dismount x: for NTFS system, The command prompt I got success message but in explorer I am able to access the volume.

At 08:54 25/02/2009, xxxxx@gmail.com wrote:

I have tried fsutil volume dismount x: for NTFS system, The command
prompt I got success message but in explorer I am able to access the volume.

Of course it does, try doing some real reading about volume
dismounting. A dismounted volume gets automatically remounted when
someone tries to access it. The answer to this was provided by
another poster earlier. Make sure you have exclusive access.

>but in explorer I am able to access the volume.

Correct, it is automatically remounted, this is normal.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

I dont want the volume to be remounted unless I say so.
I thought automount of diskpart utility can be used to disable automatic mounting.
Even this doesnt work.

At 09:47 25/02/2009, xxxxx@gmail.com wrote:

I dont want the volume to be remounted unless I say so.
I thought automount of diskpart utility can be used to disable
automatic mounting.
Even this doesnt work.

The disable auto-mount in Diskpart or VolMount means that it disables
the automatic mounting of newly discovered volumes. It doesn’t apply
to previously recognised volumes.

You’ve already been told the solution and it takes about 50 lines of code.

> You’ve already been told the solution and it takes about 50 lines of
code.
And some more reading :slight_smile:

-----Original Message-----
From: Mark S. Edwards [mailto:xxxxx@muttsnuts.com]
Sent: Wednesday, February 25, 2009 2:05 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] utility to dismount the volume

At 09:47 25/02/2009, xxxxx@gmail.com wrote:

I dont want the volume to be remounted unless I say so.
I thought automount of diskpart utility can be used to disable
automatic mounting.
Even this doesnt work.

The disable auto-mount in Diskpart or VolMount means that it disables
the automatic mounting of newly discovered volumes. It doesn’t apply
to previously recognised volumes.

You’ve already been told the solution and it takes about 50 lines of
code.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

xxxxx@gmail.com wrote:

Do we have any utility to dismount the volume, we need it for our debugging purpose ?
we can create an app but just wanted to know if there is anything already available.

I’ve seen a Microsoft doc recommending ‘mountvol /p’ to
“perform dismount and offline”. I’ve never used it, that’s all I know
about it.

>I dont want the volume to be remounted unless I say so.

The only way is to put the volume offline (IOCTL_OFFLINE_VOLUME IIRC, supported from 2003 up)


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com