Command for Mount/Unmout drive

M

Manoj

Is there any command/way to mount/unmount a drive in Windows XPe? For
e.g. If there are two partitions on a disk designated as C: and D:, is
it possible to say unmount D: so that this partition is no longer
known/visible to windows? Similarly, is it possible to mount it back
again so that windows is once again aware of the drive? This
requirement is not met by 'mountvol' command which creates/removes
mount points but does not make complete driveletter/partition
invisible.

Thanks
 
P

Pieter

Using Diskpart ?
REMOVE - Remove a drive letter or mount point assignment.
ASSIGN - Assign a drive letter or mount point to the selected volume.

I did not test it. :) I do not have test hardware available right now.

HTH

Pieter
 
U

Uwe Sieber

Manoj said:
Is there any command/way to mount/unmount a drive in Windows XPe? For
e.g. If there are two partitions on a disk designated as C: and D:, is
it possible to say unmount D: so that this partition is no longer
known/visible to windows? Similarly, is it possible to mount it back
again so that windows is once again aware of the drive? This
requirement is not met by 'mountvol' command which creates/removes
mount points but does not make complete driveletter/partition
invisible.

It's true that an unmonted volume can still be accessed thru its volume
name (like \\?\Volume{04824758-0508-11da-ba18-0004614a4127}\). But who
knows that? I think unmounting a logical drive is 'good enough' as long
as the users have no access to the Disk Management Console (if included
at all).


The next harder step would be to set the 'hidden' flag to the partition
or logical drive by means of an external tool. Maybe Windows doesn't
assign a volume then. Maybe - I've never tried it...


Greetings from Germany

Uwe
 
M

Manoj

Unfortunately your suggestion will not meet my requirements. Let me
explain the situation. I have two partitions with OSs on both. The
problem is that when OS from first partition goes through its FBA it
applies new SIDS to the files of the second OS as well. Now, when the
second OS runs it finds files with SIDs that it does not know about,
this causes problems with file permissions.

My idea was that if somehow the second partition is made invisible to
the first OS and vice-versa, then they won't effect each other.

I would welcome any other approach to this problem.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top