Is it possible to perform an update (re)install of Windows 10 (using an ISO) on a 100GB drive that only has 10GB of free space, and use an external USB hard drive as a temporary storage for the upgrade?
Assistant
User
I ran the command "mklink /D C:\Windows\Temp D:\ExternalTemp" with admin rights in cmd, and it returned "cannot create a file when that file already exists"
Assistant
The error message "cannot create a file when that file already exists" indicates that the directory (or file) you are trying to create a symbolic link for already exists. In this case, the C:\Windows\Temp directory likely already exists on your system.
Here's a step-by-step approach to handle this situation:
Backup and Remove Existing Temp Folder:
Performing an update or reinstall of Windows 10 using an ISO on a drive with limited free space can be challenging. Windows requires a certain amount of free space for temporary files and new system files. Generally, Windows 10 setup requires around 20-30 GB of free space to perform an upgrade or reinstall comfortably.
However, there are ways to potentially make it work using an external USB hard drive as temporary storage. Here's a process that can help:
Free Up Space: First, try to free up as much space as possible on your internal 100GB drive. Uninstall unnecessary applications, delete temporary files, and move non-essential data to the external USB hard drive.
Create Bootable Media: Use the Media Creation Tool to create a bootable USB drive with the Windows 10 ISO. This can be done on another computer if necessary. You can download the Media Creation Tool from the Microsoft website.
Backup Data: Ensure all important data is backed up before proceeding with the update or reinstall.
Start Installation: Connect the bootable USB drive to your computer and either boot from it directly (by changing the boot order in the BIOS/UEFI) or run the setup.exe from the USB drive within Windows.
Use External Storage for Temporary Files:
When running the Windows 10 setup, there isn't a direct option to choose an external drive for temporary files. However, Windows may automatically use additional storage devices if there isn't enough space on the primary drive.
If you encounter errors due to lack of space, you could try symbolic links to redirect some folders (like the temporary folder) to the external drive. Use the mklink command in Command Prompt:
sh
mklink /D C:\Windows\Temp D:\ExternalTemp
Replace D:\ExternalTemp with the desired path on your external drive.
Proceed with Installation: Follow the prompts in the Windows Setup to perform the update or reinstall.
Clean Up After Installation: Once the installation is complete, make sure to remove the symbolic links created for temporary files and clean up any leftover installation files.
Keep in mind that the process might not be straightforward, and you could run into space constraints that might cause the installation to fail. Additionally, this approach involves some advanced steps that may not be suitable for all users.
For a more reliable approach, it might be better to temporarily expand the internal storage by replacing the drive or using an additional internal drive if possible.
First, move or delete the existing C:\Windows\Temp folder. This should be done with caution, as some temporary files may still be in use.
sh
move C:\Windows\Temp C:\Windows\Temp_old
Note that this command renames the Temp directory to Temp_old as a backup.
Create a New External Temp Directory:
Ensure that the directory D:\ExternalTemp exists on your external drive.
sh
mkdir D:\ExternalTemp
Create the Symbolic Link:
Now, create the symbolic link to use the external directory as the new temporary folder.
sh
mklink /D C:\Windows\Temp D:\ExternalTemp
Verify the Symbolic Link:
Make sure the symbolic link was created successfully. You can do this by navigating to C:\Windows and checking if the Temp directory points to D:\ExternalTemp.
Restart and Verify:
Restart your computer to ensure the changes take effect. After restarting, you might want to verify that new temporary files are actually being written to the external drive's temp folder.
Here's a summarized set of commands to run in sequence:
Once these steps are done, you should be able to proceed with the Windows 10 installation or upgrade using the external drive for temporary storage. After successfully completing the installation, you might want to restore the original temp directory by reversing the operation if needed.
If Windows is not allowing you to move the Temp folder because it is in use, you might need to boot into Safe Mode or use a live Linux USB to perform these operations more smoothly.