PC Review


Reply
Thread Tools Rate Thread

Refresh of volume

 
 
sarma pisapati
Guest
Posts: n/a
 
      30th Sep 2003
If a add a volume to Windows 2000 server and updated the
MFD (Master File Directory)programatically, is there a
utility to refresh the directory information of OS?

 
Reply With Quote
 
 
 
 
Ndi
Guest
Posts: n/a
 
      1st Oct 2003
"sarma pisapati" <(E-Mail Removed)> wrote in message
news:03c301c3877b$179eb4f0$(E-Mail Removed)...
> If a add a volume to Windows 2000 server and updated the
> MFD (Master File Directory)programatically, is there a
> utility to refresh the directory information of OS?


If you did it programmatically, you can call dismount (programmatically)
using DeviceIOControl (FSCTL_DISMOUNT_VOLUME). The device will be dismounted
and "forgotten" by the os. The next time it is mounted and accessed, the
system recaches it.

I know of no tools that can do that, so I wrote one myself and using it.
It only dismounts drive letters, it needs to be bound first. You can do that
with Resource Kit's MountVol or with the Disk management snap-in. If you
want it, say so and it will be sent to you (part of free tools pack).

You need to have no files open by the system on the drive, otherwise
dismount fails (you can't dismount the boot partition). But since you
modified it, you probably don't read from it at the same time.

--
Andrei "Ndi" Dobrin
Brainbench MVP
www.Brainbench.com


 
Reply With Quote
 
sarma pisapati
Guest
Posts: n/a
 
      2nd Oct 2003
Thank you. I just found that this volume is not a system
volume. Is there a command line utility do do "dismount"
and "mount"?
Thanks again,
sarma

>-----Original Message-----
>"sarma pisapati" <(E-Mail Removed)> wrote in message
>news:03c301c3877b$179eb4f0$(E-Mail Removed)...
>> If a add a volume to Windows 2000 server and updated

the
>> MFD (Master File Directory)programatically, is there a
>> utility to refresh the directory information of OS?

>
> If you did it programmatically, you can call dismount

(programmatically)
>using DeviceIOControl (FSCTL_DISMOUNT_VOLUME). The

device will be dismounted
>and "forgotten" by the os. The next time it is mounted

and accessed, the
>system recaches it.
>
> I know of no tools that can do that, so I wrote one

myself and using it.
>It only dismounts drive letters, it needs to be bound

first. You can do that
>with Resource Kit's MountVol or with the Disk management

snap-in. If you
>want it, say so and it will be sent to you (part of free

tools pack).
>
> You need to have no files open by the system on the

drive, otherwise
>dismount fails (you can't dismount the boot partition).

But since you
>modified it, you probably don't read from it at the same

time.
>
>--
>Andrei "Ndi" Dobrin
>Brainbench MVP
>www.Brainbench.com
>
>
>.
>

 
Reply With Quote
 
Ndi
Guest
Posts: n/a
 
      3rd Oct 2003
> BTW, I could locate mountVOL or DismountVOL for disk
> volumes in diskmanagement snap-in. I could see mountvol
> to mount a volume under NTFS folder.


There is one CLI application from MS in the W2k resource kit, but it's
kinda expensive (the RK). Use disk management snap-in unless this is a
corporate issue

There is no dismount as I remember, but it could be. Like I said, I wrote
a dismount, but I am yet to write a MontVol, which I am not about to since I
don't really use it. But it shouldn't be VERY hard.

If you can code, all you do is search MSDN for file system function to
create a reparse point. Also FindVolumeFirst (or was it FindFirstVolume?)
and FindVolumeNext to enumerate volumes. Really not complicated.

--
Andrei "Ndi" Dobrin
Brainbench MVP
www.Brainbench.com


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP not refresh volume of CD Adi Windows XP General 3 22nd Sep 2004 12:05 AM
Volume too quiet - Win98 volume and speakers are at maximum - any software to increase level? km Freeware 15 22nd Jul 2004 07:58 PM
XP home addition - Volume control via Master Volume icon not working =?Utf-8?B?R2F2aW4=?= Windows XP New Users 1 27th Apr 2004 04:07 PM
Volume name does not refresh when new CD or DVD inserted John T Windows XP General 1 14th Dec 2003 11:51 PM
CD & DVD volume labels will not refresh nor display Dane Windows XP General 1 13th Nov 2003 07:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:54 PM.