locked
Can't Hide The System Partition ! RRS feed

  • Question

  • Hey there ,

    i recently re-installed windows on my laptop , and i just realized that there is a new Partition called SYSTEM (F:) 

    so i wanted to hide this partition , knowing that it's the manufacturer recovery.

    and i know that i should be able to remove the assigned letter in Diskmanagment for this Partition in order to hide it from the Windows explorer ... BUT:

    when i opened my Diskmanagment , this partition didn't have a letter assigned to it ... anyway i right clicked on it , and the ONLY option i got is "Help" .. so basically i can't rename this partition , nor do anything with it in my DiskManagment ...

    please help ... kind of hopeless here !

    Thursday, May 1, 2014 12:41 PM

Answers

  • Hi,

    Please try to use Diskpart command to remove its drive letter:

    Step1: Hit “Windows Key” + “R” to open the run dialogue box and type “diskpart” and hit “OK” to open a black command prompt window.

    Step2: Type “list disk” to display all the disks of your computer.

    Step3: Type “select disk n”. Here n stands for the disk you want to work well.

    Step4: Type “list partition” to display all the volumes on the hard drive.

    Step5: Type “select partition n”. Here n stands for the volume you want to delete.

    Step6: Type ""remove letter=n". Here n stand for selected drive letter.(F is for your)

    Then you will see "DiskPart successfully remove the drive letter or mount point" message.


    Karen Hu
    TechNet Community Support

    • Marked as answer by Michael_LS Tuesday, May 20, 2014 1:57 AM
    Friday, May 2, 2014 6:19 AM
  • Hi,

    1. Run mmc.exe with administrative privileges
    2. Click File > Add or Remove Snapin
    3. Select "Group Policy Object Editor" and click Add >
    4. A wizard will appear. Click Browse, click the Users tab, and select a user or user group. Individual users are shown, as well as two generic groups; "Administrators" and "Non-Administrators".
    5. Click OK, then click Finish in the wizard.
    6. Click OK in the "Add Snapin" dialog.
    7. Enter User Configuration > Administrative Templates > Windows Components > Windows Explorer.
    8. Find Hide these specified drives in My Computer if you want to just hide the drives but still allow direct access (e.g. from run prompt, etc.) to the drives. Find Prevent access to drives from My Computer to hide the drive and prevent access to it.
    9. In whichever settings dialog, choose the Enabled radio button and choose the drive(s) you want to restrict. As of Windows 7, the only options are:
      • A and B drives only
      • C drive only
      • D drive only
      • A, B and C drives only
      • A, B, C and D drives only
      • Restrict all drives
      • Do not restrict drives
    10. Click OK

    The next time the user(s) log in, they will not be able to see/access the drive This should work as you specifically asked for disabling the D: drive.

    If you want to disable a drive other than A, B, C, or D, or if you have a version of Windows 7 which doesn't support the group policy editor, you will need to make the changes manually in the registry.

    The first step is to load the registry hive of the user you are removing the drives from. The user must be logged out for this to work; in fact, it's better to do a fresh restart before doing this process.

    1. Open the registry editor with administrative privileges
    2. Select HKEY_USERS
    3. Choose Load Hive from the File menu
    4. Navigate to that user's profile folder, usually C:\users\username
    5. Enter NTUSER.DAT in the File name box. This file is a system-hidden file, so it won't show up in the file selection window. You have to type it in. Be sure not to select ntuser.dat.log by accident.
    6. Click ok, then enter a name for the key. We'll call it Foo.
    7. Go to HKEY_USERS\Foo\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    8. Create a new 32-bit DWORD value and name it NoDrives to hide the drives, or NoViewOnDriveto completely disable access.
    9. The value you enter depends on the drive(s) you want to restrict, and is a bit tricky. Each letter, starting with Z and going down to A, is represented by a 1 (disabled) or 0 (enabled). Make this binary number, then convert it to hexidecimal. This is the number you put in the box. For example, D is the fourth drive letter from the right, and everything to the left of it is a 0, so the number will be b1000, which is x08000000, so you would enter 08000000 as the value. To disable C and D, you would use b1100, or x0c000000. If this confused you, post in the comments for help.
    10. Once you've saved this value, navigate back up to HKEY_USERS, select the key you loaded, and then click File > Unload HiveThis step is ABSOLUTELY CRITICAL!! If you don't unload the hive, the user will be unable to login properly.
    11. Close the registry editor, then restart the computer. The new settings should have taken effect.

    • Marked as answer by Michael_LS Tuesday, May 20, 2014 1:58 AM
    Tuesday, May 6, 2014 2:07 PM

All replies

  • Hi,

    Please try to use Diskpart command to remove its drive letter:

    Step1: Hit “Windows Key” + “R” to open the run dialogue box and type “diskpart” and hit “OK” to open a black command prompt window.

    Step2: Type “list disk” to display all the disks of your computer.

    Step3: Type “select disk n”. Here n stands for the disk you want to work well.

    Step4: Type “list partition” to display all the volumes on the hard drive.

    Step5: Type “select partition n”. Here n stands for the volume you want to delete.

    Step6: Type ""remove letter=n". Here n stand for selected drive letter.(F is for your)

    Then you will see "DiskPart successfully remove the drive letter or mount point" message.


    Karen Hu
    TechNet Community Support

    • Marked as answer by Michael_LS Tuesday, May 20, 2014 1:57 AM
    Friday, May 2, 2014 6:19 AM
  • Hi,

    1. Run mmc.exe with administrative privileges
    2. Click File > Add or Remove Snapin
    3. Select "Group Policy Object Editor" and click Add >
    4. A wizard will appear. Click Browse, click the Users tab, and select a user or user group. Individual users are shown, as well as two generic groups; "Administrators" and "Non-Administrators".
    5. Click OK, then click Finish in the wizard.
    6. Click OK in the "Add Snapin" dialog.
    7. Enter User Configuration > Administrative Templates > Windows Components > Windows Explorer.
    8. Find Hide these specified drives in My Computer if you want to just hide the drives but still allow direct access (e.g. from run prompt, etc.) to the drives. Find Prevent access to drives from My Computer to hide the drive and prevent access to it.
    9. In whichever settings dialog, choose the Enabled radio button and choose the drive(s) you want to restrict. As of Windows 7, the only options are:
      • A and B drives only
      • C drive only
      • D drive only
      • A, B and C drives only
      • A, B, C and D drives only
      • Restrict all drives
      • Do not restrict drives
    10. Click OK

    The next time the user(s) log in, they will not be able to see/access the drive This should work as you specifically asked for disabling the D: drive.

    If you want to disable a drive other than A, B, C, or D, or if you have a version of Windows 7 which doesn't support the group policy editor, you will need to make the changes manually in the registry.

    The first step is to load the registry hive of the user you are removing the drives from. The user must be logged out for this to work; in fact, it's better to do a fresh restart before doing this process.

    1. Open the registry editor with administrative privileges
    2. Select HKEY_USERS
    3. Choose Load Hive from the File menu
    4. Navigate to that user's profile folder, usually C:\users\username
    5. Enter NTUSER.DAT in the File name box. This file is a system-hidden file, so it won't show up in the file selection window. You have to type it in. Be sure not to select ntuser.dat.log by accident.
    6. Click ok, then enter a name for the key. We'll call it Foo.
    7. Go to HKEY_USERS\Foo\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    8. Create a new 32-bit DWORD value and name it NoDrives to hide the drives, or NoViewOnDriveto completely disable access.
    9. The value you enter depends on the drive(s) you want to restrict, and is a bit tricky. Each letter, starting with Z and going down to A, is represented by a 1 (disabled) or 0 (enabled). Make this binary number, then convert it to hexidecimal. This is the number you put in the box. For example, D is the fourth drive letter from the right, and everything to the left of it is a 0, so the number will be b1000, which is x08000000, so you would enter 08000000 as the value. To disable C and D, you would use b1100, or x0c000000. If this confused you, post in the comments for help.
    10. Once you've saved this value, navigate back up to HKEY_USERS, select the key you loaded, and then click File > Unload HiveThis step is ABSOLUTELY CRITICAL!! If you don't unload the hive, the user will be unable to login properly.
    11. Close the registry editor, then restart the computer. The new settings should have taken effect.

    • Marked as answer by Michael_LS Tuesday, May 20, 2014 1:58 AM
    Tuesday, May 6, 2014 2:07 PM
  • Hi,

    Please try to use Diskpart command to remove its drive letter:

    Step1: Hit “Windows Key” + “R” to open the run dialogue box and type “diskpart” and hit “OK” to open a black command prompt window.

    .... 

    Step6: Type ""remove letter=n". Here n stand for selected drive letter.(F is for your)

    Then you will see "DiskPart successfully remove the drive letter or mount point" message.


    Karen Hu
    TechNet Community Support

    Hi,

    I followed these instructions but after rebooting the drive reappears.

    any suggestion to make it permanently hide.


    • Edited by valadro Saturday, January 6, 2018 2:46 PM
    Saturday, January 6, 2018 2:45 PM
  • ty , it worked fine for me one windows 10 , i had a partition that came up after an update , i wasn't able to hide it. this was really annoying because of the notifications telling me that this disk was too full .
    Wednesday, June 20, 2018 1:24 AM
  • Does not work. Followed Instructions but after step 6 I get the message 'There is no volume selected.
    Please select a volume and try again.'

    Monday, August 10, 2020 9:45 PM
  • "Group Policy Object Editor" does not appear in my options (win10)
    Monday, August 10, 2020 9:48 PM