Mount a new partition at “Program Files”
August 25th, 2008
You probably know that you can mount a disk at a certain directory in Windows, just like you can in Unix. However, if you want to mount “Program Files”, you have to jump through a few hoops.
To mount a drive at a directory, here is what we generally do:
- Create the directory
- Mount the disk (using Computer Management or ‘diskpart’)
- copy all existing files (if we are moving an existing directory) into the newly mounted disk
The problem here is that Windows does not let you rename the existing “Program Files” directory, which means that we cannot create an empty folder by the same name to mount the new disk. It is easy to do this, if you have a dual boot configuration. If you don’t, just use any Linux Live-CD (I used ubuntu).
So, here are the steps:
- Reboot to Linux. Copy all files in “Program Files” to the new disk.
- Rename “Program Files” to P1. (Or if you are feeling lucky, you can delete “Program Files”)
- Create a new directory named “Program Files”.
- Reboot. Press F8 to enter “Windows” boot options. Select “Safe-Mode with Command Prompt”.
- Type “diskpart”, to get the diskpart prompt.
- Type “select disk N”, to select the disk which will be mounted.
- Type “select partition N” to select the current partition, this should be the new partition that we are mounting.
- Type “assign mount=Progra~1″
- Reboot.
You would have successfully mounted a new partition at “Program Files”.

