• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 958
  • Last Modified:

how can i 'unmount' a drive in win2k ?

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
thedrs
Asked:
thedrs
  • 5
1 Solution
 
Fatal_ExceptionCommented:
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
 
Fatal_ExceptionCommented:
BTW:  I meant scripting a dismount of the drive..  you could certainly hide the drive with a script..  :)
0
 
thedrsAuthor Commented:
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Fatal_ExceptionCommented:
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
 
Fatal_ExceptionCommented:
Think this one was resolved..
0
 
Fatal_ExceptionCommented:
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now