Solved

how can i 'unmount' a drive in win2k ?

Posted on 2004-08-29
7
947 Views
Last Modified: 2008-01-09
i have 2 win2k's installed on my system which has 2 logical drives c: and d:
each drive is a root for a different OS (c:\winnt and d:\winnt)
when i run the first OS i don't want to see the drive d: and vice versa for the second OS (running it i don't want to see drive d:)
what i am trying to do is unmount a drive ... how can i do that - win2k always seems to "See" other NTFS drives
0
Comment
Question by:thedrs
  • 5
7 Comments
 
LVL 40

Accepted Solution

by:
Fatal_Exception earned 125 total points
ID: 11925612
I am not sure how you would do this with a script, but you can certainly hide the hard drive (letter) with a registry hack:

Follow these steps:
 
1. Launch the Registry Editor (Regedit.exe).
 
2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Policies\Explorer.
 
3. Right-click the Servers key, and select New | DWORD value.
 
4. Name the value NoDrives.
 
5. Press [Enter] twice to open the Edit DWORD Value dialog box.
 
6. Using the list below, type a number that corresponds to the drive you want to hide in the Value Data text box, and click OK.
A: 1
B: 2
C: 4
D: 8
E: 16
F: 32
 
7. Close the Registry Editor.
 
You must restart the system or log out of Windows XP in order for the change to take effect.
 
To hide other drive letters that we didn't list, follow the pattern of doubling the number for each successive drive. For example, drive G:
would have a value of 64.
 
To hide multiple drives, add the values together. For example, to hide drives A: and B:, use a value of 3. If you want to hide all drive letters, use a value of 67108864.
 
NOTE: Editing the registry is risky, so be sure you have a verified backup before making any changes.
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11925616
BTW:  I meant scripting a dismount of the drive..  you could certainly hide the drive with a script..  :)
0
 

Author Comment

by:thedrs
ID: 11932543
the reason i am asking this is  that the computer holds sensitive work data on one of the drives and the other OS/drive is used for the kids and i don't want them or their, possibly trojan horse/virus, programs to have any normal/api access to the work drive.
the questions is - will this reg hack also help here ?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11933831
Correct..  this hack should work in your circumstance.  I suppose another work around may be to use the Device Manager to disable the drive, but if you children have a good understanding of computers (as most I have met) they will be able to circumvent this by turning it back on.  

There are other ways to lock this drive down too.  You could set the ACL's on the drive so only you can access it.  ACL = Access Control List...  meaning using the Security Tab to allow access to those users you choose.  

But if you want to hide it totally, I think that hack would work nicely..

FE
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 12325615
Think this one was resolved..
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 12358423
Thanks
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now