xorl %eax, %eax

Disable Partitions on Windows

leave a comment »

I was working with a multi-boot image with two Windows the past few days at work. I wanted to hide specific partitions from two Windows installations. My first attempt was simply to change the system ID of a partition on its MBR record using fdisk. This was fine for Windows 2000 since it doesn’t check its partition system ID while booting but Windows XP do and where stopping with a “AUTOCHK Not Found” error. My next attempt was to use a Microsoft’s utility named TweakUI. This works like a charm on WinXP but not at all on Win2k. At last, I found a nice registry key which exists in both WinXP and Win2k. It is this:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Exporer\NoDrives

If you don’t have this registry key then just create a new one of type DWORD. The detailed options can be read at its official web page. I wanted to disable the C: partition on the WinXP and the E: on Win2k. So, for the XP box I just had to assign value 4 and for the E: partition 16 but since the input is by default in hex this would be 0x4 and 0x10 respectively. One final tip, to install this from the command line on WinXP you just:

REG \\MACHINE_NAME\HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Exporer\ /v NoDrives /t REG_DWORD /d 10

But unfortunately, Win2k do not have this nice little utility so you have to export your key somewhere first and then add it to the registry like this:

REGEDIT /S my_key.REG

Hope you like it!

UPDATE:

Also check out this NoViewOnDrive registry key. It worked for me :)

Written by xorl

February 12, 2009 at 16:31

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s