Thursday 31 May 2012

Hide Drives in your Computer using Command Prompt

Do you have a computer that has many important files that are personal to you?
And you frequently share you computer with your friends, when they visit you.
So you might want to hide and protect them from others.
Then here's a trick for you to hide your disk drives using command prompt.

How To Hide?
  • Go to Start, Click on Run then type cmd.
    A new Command Prompt screen will appear.
  • Type diskpart
    You will see the Disk Partition Utility
  • Then to see your partition(drives) list, type list volume
    You will get a list of all the volumes(drives) of your computer
  • Then you have to select the volume(drive) that you want to hide from your My Computer or Windows Explorer.
    To do this type select volume volume letter
    For example: select volume 4
  • After your volume(drive) is being selected, you now have to hide the drive from appearing it in your Windows Explorer.
    To do this type remove letter volume_letter_of_drive_to_be_hidden
    For example: remove letter e

  • Note: Alternatively you can also use only remove to remove the drive letter but remove letter volume_letter_of_drive_to_be_hidden is recommended.

    Now Open My Computer and voila there is one drive less, the drive that you used in the above steps is now hidden. Since your drive is hidden, it will now not be available on Windows Explorer or Command Prompt.

    Important Note: Since the drive is hidden, it is also not available to the Antivirus Programs. So if any virus attacks your computer than you antivirus will not be able to detect it
Now that you have seen how to hide the drives, it is also important to know how to unhide the drives.
To Unhide your drive, perform the following steps:
    Open the Disk Partition Utility in Command Prompt and type list volume.
  • The drive which is hidden will have no drive letter.
    So to select the drive type select volume volume_number
    For example: select volume 4
  • After your volume is selected type assign letter drive_letter_to_assign
    Note: You can alternatively also type in assign instead of assign letter drive_letter_to_assign, but it will randomly assign a drive letter to the volume(drive).

  • Now your volume will get unhidden and will be available to use on Windows Explorer.

No comments:

Post a Comment