Dismounting volume

Hi !

I have very simple question(I hope)
How can I dismount mounted file system prefferably
from user mode?
If I have FAT mounted on disk F: (not-system volume)
what IO controls I need to send and to what device to dismount FAT.
I know format does this some way to format disk.

Regards, Dennis


Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Hi dennis,

Well , to dismount a volume through UserMode you need to follow this :

CreateFile to your Volume you like to dismount ("\\.\C: "
for example) and sent to the handle deviceiocontrol with the code
FSCTL_DISMOUNT_VOLUME

that should work. but just if you have administrator priviliages.

you better do it from kernel if you need it for every user. its not the same
way to
do it from kernel.

if you need help on how to do it from kernel you are welcome to ask me
directly.

hope i helped :wink:

See’ya
Elad Zucker

-----Original Message-----
From: Dennis
To: File Systems Developers
Date: Sunday, April 16, 2000 9:07 PM
Subject: [ntfsd] Dismounting volume

>Hi !
>
>I have very simple question(I hope)
>How can I dismount mounted file system prefferably
>from user mode?
>If I have FAT mounted on disk F: (not-system volume)
>what IO controls I need to send and to what device to dismount FAT.
>I know format does this some way to format disk.
>
>Regards, Dennis
>
>
>
> __________________________________________________
>
>Do You Yahoo!?
>
>Talk to your friends online with Yahoo! Messenger.
>
>http://im.yahoo.com
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@netvision.net.il
>To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>