- Oct 18, 2018 How to Solve the Problem of 'The System Cannot Find the File Specified'. There is no uniform way to solve this problem. Check the System Log File which is located at C: Windows Inf setupapi.dev and find the report errors of specified files and directories. Besides, several common fixes are demonstrated in the below.
- Get the fix for the 'Failed to find OS Loader' error for Windows Vista, Windows 7, Windows 8 and Windows 8.1 About 'Failed to find OS Loader' Synopsis The error.
Active2 months ago
I am using a makefile in windows to push some files on a Unix server (here a text file 'blob.txt' in the same folder of my makefile).My makefile script is:
Windows search cant find certain apps in Software and Apps So when i use windows search for some reason when i type control panel or run neither of them appear anymore. I was having a issue with search before and rebuild the index could that have had a effect on it. The entire message is: windows cannot find 'sqlplus'. Make sure you typed the name correctly and try again. To search for a file click start and then click search.
I start a command prompt, go in the folder where blob.txt and the makefile are present and type:
Which results in:
In a #fail .. whereas if I enter directly the command in the command prompt:
It works .. I really wonder why.
Colonel BeauvelColonel Beauvel23.8k66 gold badges3030 silver badges6565 bronze badges
7 Answers
The error
is almost certainly complaining that Windows cannot find
pscp
.This is almost certainly because the value of
%PATH%
(or whatever) is different when make spawns a shell/console then when you have it open manually.Compare the values to confirm that. Then either use the full path to
Etan ReisnerEtan Reisnerpscp
in the makefile recipe or ensure that the value of PATH
is set correctly for make
's usage.61k55 gold badges5555 silver badges9393 bronze badges
In my case i had gitbin in my
Machavity%PATH%
which contains bash.exe and sh.exe. Removing %GIT_HOME%bin
from the PATH
worked for me25.3k1515 gold badges6363 silver badges8383 bronze badges
user3869623user38696231,05822 gold badges1111 silver badges1616 bronze badges
@user3869623's solution works for me. I'd like to share some details of mine to complete the picture.
My makefile contains below target:
When I run
make clean
, I see this error:Since it says something went wrong with
echo
, so I change my makefile target to below:This time,
make clean
gives me this error:I am surprised to see
bash
here since I am working in Windows command line.![Windows Cannot Find Ed File Windows Cannot Find Ed File](/uploads/1/3/3/9/133908091/672092313.png)
Then I checked my
%PATH%
, I see this entry:C:DevToolsGitbin
There's a
bash.exe
and sh.exe
in that path. So I removed this entry, and it works fine now.BUT I STILL DON'T KNOW WHY BASH GET INTO THIS???
ADD 1
As to why the
smwikipediasmwikipediaC:DevToolsGitbin
shows up in my %PATH%
, because I am using Sublime and it always asks me for the Git binaries:23.5k6666 gold badges226226 silver badges388388 bronze badges
I know this is an old question that has been answered, but thought I'd and my experiences for anyone still running into this. I was getting the same cryptic error Colonel Beauvel (though with the windows MOVE command, not pscp):
Our CI was running the same Makefile and working perfectly. Turns out CI was using mingw32-make and I was using GNU make. Uninstalling GNU make (which got installed as part of an unrelated bulk package) and aliasing mingw32-make to 'make' works perfectly.
TobyKTobyK
To build on user3869623's response.
In my case i had gitbin in my %PATH% which contains bash.exe and sh.exe. Removing %GIT_HOME%bin from the PATH worked for me
While this recommendation may allow
make
to run, it will likely cause issues for git, especially if the makefile is installing software from a git repository.A better solution is to simply change
%GIT_HOME%bin
to %GIT_HOME%cmd
jgrantjgrant
I did't want to remove GIT's bin folder form the PATH variable (I am using a Windows machine), as I use it quite often. So I looked for a work around. And here it is: Burnaware pro 5 5 multi pc.
Add the
<git-installation-directory>/usr/bin
directory to your PATH variable too. This basically adds the rest of the linux-like commands that come with the 'GIT bash' to your environment. After applying this, my makefiles ran normally again. :)If you are curious about what shell is being invoked by make, just add
$(info $(SHELL))
at the beginning of your makefile. The path/name of the shell being invoked is printed to the console as soon as you run make.Ricardo AlejosRicardo Alejos
For those who tried removing the git bin folder from
PATH
and it didn't work for them, search your PATH
variables for any paths containing bash.exe
.In my case I found a variable linking to cygwin bin folder
C:cygwin64bin
, removed it and it worked.Moustafa ElsayedMoustafa Elsayed
Not the answer you're looking for? Browse other questions tagged windowsbashmakefileputtypscp or ask your own question.
Summary :
Windows cannot be installed to MBR/GPT disk? Windows cannot be installed to dynamic disk? These are the most common issues that can occur during the process of Windows 10/8/7 installation. This post shows how to address such issues with detailed steps given.
Quick Navigation :
When installing Windows OS (whether it is clean install, reinstall or dual boot), you may receive various kinds of errors saying Windows cannot be installed to this disk. In this post, we will introduce 6 types of Windows installation errors as well as top corresponding solutions.
Error 1: Windows Cannot Be Installed to This Disk. The Selected Disk Is of the GPT Partition Style.
When installing Windows on a GPT disk, you may receive Windows cannot be installed on GPT disk error:
'Windows cannot be installed to this disk. The selected disk is of the GPT partition style.'
What caused this error?
Reasons
This is mainly because the motherboard supports Legacy BIOS only rather than both Legacy and UEFI or CSM boot. Under legacy BIOS mode, you can only install Windows to a MBR disk since traditional BIOS cannot recognize GPT partition, but data read/write on GPT disk is available as long as Windows supports it.
Solutions
To fix this error, firstly you need to enter BIOS Setup to see what the boot mode it is set to. Start/restart computer and continuously press a key to enter BIOS before Windows logo appears. Different computers may require different keys, so you had better search 'how to enter BIOSplus computer trademark or motherboard name' on the internet to find the exact key.
In BIOS, if you find no signal showing you are using UEFI motherboard like the following picture shows, maybe you are using a traditional motherboard which supports legacy BIOS boot only. Under this situation, the only solution is to convert GPT disk to MBR disk.
Here are the deals:
Solution 1. Convert GPT Disk to MBR If the Motherboard Supports Legacy BIOS Only
Note: We will explain 3 ways to convert GPT disk to MBR disk. The 2nd & 3rd ways will cause data loss since Windows requires to delete all partitions.
1) Use Partition Wizard
MiniTool Partition Wizard Free Edition is a free yet outstanding partitioning tool for Windows NON-SERVER users, which helps to convert GPT disk to MBR disk without losing data when an existing Windows is available. However, you should know that Partition Wizard can only change non-system GPT disk to MBR disk without bringing any data loss. Works for all Windows XP/Vista/7/8/10 users.
Tip: If no Windows can be used, you may need the help of MiniTool Partition Wizard Bootable CD, a built-in tool that comes with all MiniTool Partition Wizard Paid Editions.
Step 1: run MiniTool Partition Wizard.
Launch MiniTool Partition Wizard. Then right-click on the target disk to be converted and choose 'Convert GPT Disk to MBR Disk'.
Step 2: confirm the conversion.
![Find Find](https://bd23.https.cdn.softlayer.net/80BD23/142.4.51.106/blog/wp-content/uploads/2008/01/msconfigerror.png)
You will see the GPT attribute is turn to MBR. However, this is only pending operations for us to preview. Please press 'Apply' to confirm the change. After the conversion, you will find that all data are still there.
2) Use Diskpart
It is possible to make the conversion during the installation process. Please do the followings:
Step 1: call out CMD.
Once the error pops up, click 'OK' to close the error and try pressing on 'Shift + F10' to call out CMD. If the utility does not emerge, please go back to the install Windows interface, then press 'Shift + F10' again to launch CMD.
Step 2: clean the disk and convert to MBR.
Now you need to do a clean on the disk by typing the following commands:
'diskpart -> list disk -> select disk 1 (1 signifies the number of GPT disk) -> clean -> convert MBR.'
When diskpart shows it has successfully converted the selected disk to MBR format, you can exit from this program and continue to install Windows.
3) Use Disk Management Utility
If another Windows OS is available on the same computer, then Disk Management utility is helpful. Try these operations:
Step 1: go to Disk Management.
Start the working Windows and enter the built-in Disk Management tool by right clicking 'Computer' icon on desktop, choosing 'Manage', and selecting 'Disk Management':
Step 2: delete volume.
Delete all partitions or volumes on the GPT disk one by one via the right-click function 'Delete Volume'.
Step 3: convert to MBR disk.
When the entire disk becomes an unallocated space, right click the GPT disk and choose 'Convert to MBR Disk'. After these steps, the original GPT disk will be converted to MBR disk, and then you can go on installing Windows on this disk.
Tip: When deleting volumes you may meet the situation where some special volumes like system volume, recovery volume, and OEM volume cannot be deleted. For reasons and corresponding solutions, please see Cannot Delete Volumes in Windows.
Solution 2. Change Boot Mode If the Motherboard Supports Both Legacy and UEFI Boot
Currently, most motherboards support both Legacy boot and UEFI boot, and users can choose the most appropriate one manually. If you select Legacy only, it will be impossible to install Windows on GPT disk. At this time, you can enter BIOS and set the boot mode to CSM boot or choose Both:
Once the change has been made, please press on F10 to save changes, and then you can install Windows on a GPT disk.
Error 2: Windows Cannot Be Installed to This disk. The Selected Disk Has an MBR Partition Table.
When installing Windows 7, Windows 8 or other newly released Windows OS, you may receive another error saying Windows cannot be installed on MBR disk:
'Windows cannot be installed on this disk. The selected disk has an MBR partition table. On EFI systems, Windows can only installed on GPT disks'.
Why Windows cannot be installed on MBR disk under EFI systems?
Reasons
To answer this question, you need to know something about UEFI + GPT boot. Under EFI systems, theoretically both MBR disk and GPT disk can be used to boot operating systems, but Microsoft rules Windows can only be installed on GPT disk. To fix this error, the best way is to convert the MBR disk to GPT disk.
Solutions
Convert MBR Disk to GPT Disk to Fix the Error
Steps are nearly the same as those to convert GPT disk to MBR disk, and the only difference is that you need to convert disk to GPT rather than MBR. For converting without data loss, please see Convert MBR Disk to GPT Disk for more details.
That's not all…In the former part, we have said most UEFI motherboards support both Legacy boot and UEFI boot but we can change it manually. If the error is caused by setting boot mode to be UEFI only, changing the mode to Both or CSM boot may fix the error, which has been introduced in Error 1.
Error 3: Windows Cannot Be Installed on Dynamic Disk.
When installing Windows on a dynamic disk, you may receive this message:
'Windows cannot be installed to this hard disk space. The partition contains one or more dynamic volumes that are not supported for installation'.
Reasons
Why Windows cannot be installed on dynamic disk? Let’s see how Microsoft Resource says.
'You can perform a fresh Windows installation on a dynamic volume only if that volume was converted from a basic volume and retained an entry in the partition table. Simple volumes converted from basic disks do not have an entry in the partition table unless they were system or boot volumes prior to conversion.'
That is to say users can only install Windows to dynamic volume which was a boot partition or system partition before converting to dynamic disk. https://dcxlmvj.weebly.com/sobotta-human-anatomy-atlas.html. Under this situation, if you want to go on installing Windows, a good solution is to convert dynamic disk to basic disk.
Solutions
Convert Dynamic Disk to Basic Disk to Solve the Problem
Note: There are 3 ways to convert dynamic disk to basic: by using MiniTool Partition Wizard, Disk Management utility, and diskpart. Note that the latter 2 require deleting all existing dynamic volumes, which means data loss.
1) Use MiniTool Partition Wizard
MiniTool Partition Wizard is a Windows based partitioning tool that can help revert a dynamic disk to basic without any data loss. Here are detailed steps:
Step 1: run Partition Wizard and choose the function for dynamic disk conversion.
Launch MiniTool Partition Wizard. Right click on the dynamic disk you want to convert and choose 'Convert Dynamic Disk to Basic Disk'.
Step 2: confirm operation.
You can have a preview that this dynamic disk will become basic disk without data loss. At this time press 'Apply' to finish this conversion.
Note: The free edition does not support operating dynamic disk, so please purchase professional or more advanced editions for dynamic disk support. In addition, if Windows cannot boot normally, Partition Wizard Pro built-in tool - MiniTool Partition Wizard Bootable CD is available for it can boot computer without Windows OS.
2) Use Disk Management Utility
Go to Disk Management and then delete all volumes one by one, which has been introduced in Error 1. After these steps, the dynamic disk will become basic automatically. However, if there is no Windows OS available but you have a Windows installation CD or DVD, make use of Diskpart.
3) Employ Diskpart
Step 1: run cmd.
Boot computer via the installation disc and open CMD by pressing on 'Shift + F10'.
Step 2: delete volume in diskpart.
Type corresponding commands to delete all dynamic volumes one by one:
'diskpart -> list disk -> select disk N (N is the number of the dynamic disk) -> detail disk -> select volume=0 -> delete volume -> select volume=1 -> delete volume…'
Step 3: After all volumes on the dynamic disk are deleted, type 'convert basic'. Once Diskpart shows it has successfully converted the selected dynamic disk to basic, you can type 'exit' to quit from Diskpart.
Nevertheless, if you do not want to delete any volume since important data are saved, there is a lossless solution below.
Error 4: Windows Cannot Be Installed to This Disk. This Computer's Hardware May not Support Booting to This Disk.
Another error message you may receive during Windows installation is:
'Windows cannot be installed to this disk. This computer's hardware may not support booting to this disk. Cd kirk franklin revolution. Ensure the disk's controller is enabled in the computer's BIOS menu.'
Reasons
Generally speaking, there are 2 possible reasons:
- Hard disk protection is enabled.
- SATA Controller modewas set incorrectly (with incorrect drive mode, the very disk cannot be used normally).
Solutions
Solution 1. Remove Hard Disk Protection
For the first situation, please read the specification or contact sales person to confirm whether there is hard disk protection if the computer is not configured by ourselves. If there is, remove the protection by following instructions.
Solution 2. Change SATA Controller Mode
For the second situation, if we changed SATA Controller mode in BIOS before, try setting BIOS to factory settings. Different BIOS gives different options to set itself to factory settings, like Restore Defaults, Load BIOS Defaults, and Load Optimal Defaults, so you should choose the correct one according to practical situations.
However, when this solution does not work, you must change hard disk mode manually in BIOS. If the current state is IDE, change it to AHCI. If the current mode is AHCI, change it to IDE, etc. Actually, if Compatibility or Compatible is given, you must choose this mode.
Moreover, when you are installing Data Center or Enterprise Server edition of Windows Server 2008/R2 or later to a raw disk via CD or DVD, you may get the same error. This is because the default SAN policy during setup on new installations of Data Center or Enterprise SKUs is Offline Shared, which applies Offline and Read Only attributes to any presented disks that are on a shared bus and not considered as System or Boot disks.
RAW disks cannot be detected as System or Boot, leading to offline and read only attributes. As a result, you cannot install Windows to this kind of disks. To solve the problem, configure the default SAN policy to OnlineAll. For detailed steps, please see the corresponding Setup Reports Error of Microsoft.
Error 5: Windows Cannot Be Installed to This Disk. The Disk May Fail Soon.
Sometime you may receive the following error message when installing Windows:
'Windows cannot be installed to this disk. The disk may fail soon. If other hard disks are available, install Windows to another location.'
Reasons
When this error appears, it indicates there may be something wrong with the hard disk.
Solutions
Backup and Repair/Replace the Hard drive
At this time, you must stop Windows installation, and then backup important data immediately in case of real disk failure. If there are not so many data that is required to backup, just copy and paste them to a safe place. However, if you want to backup all or a large number of data on the disk, using a third party disk clone software to back up the entire hard disk can save you a lot of time.
Tip: If there is no Windows to use, you may need a bootable disk clone tool, and free MiniTool Partition Wizard Bootable CD might be a good choice.
When the backup is made, check the health state of the disk by running diagnosis and repair tools which can be downloaded either from the hard disk manufacturer’s website or from professional downloading center. If Windows won’t boot, please download the ISO file and burn it to CD or DVD on another computer, and then make a disk diagnosis via the bootable disc.
If errors are detected from your hard disk but cannot be repaired, replace the dying hard disk with a new one. However, if it is under warranty, send it back to manufacturers because they will repair the disk or give you a new one.
Error 6: Windows Cannot Be Installed to This Hard Disk Space, Windows Must Be Installed to a Partition Formatted in NTFS.
When installing Windows on old disk, you may receive Windows cannot be installed to this hard disk space error:
'Windows cannot be installed to the hard disk space. Windows must be installed to a partition formatted in NTFS.'
What caused this error?
Reasons
This is mainly caused by incompatible file system of the partition to be installed with Windows. Microsoft rules that Windows must be installed to a partition formatted in NTFS since Windows Vista.
Solutions
Solution 1. Format the Partition with NTFS File System
1) Use MiniTool Partition Wizard
Remember Windows won't allow you to format the current boot partition no matter you turn to Disk Management or CMD. And if you have no operating system to use, formatting needs more effort. Thus, to make things easier, we strongly recommend using MiniTool Partition Wizard Bootable CD to cope with different situations with one solution. Please do the followings:
Step 1: use Partition Wizard Bootable to boot computer.
On the tool bar of each Partition Wizard paid editions, launch Bootable Media Builder to create a bootable CD/DVD disc or USB flash drive. Then set computer to boot from the bootable media and finally enter MiniTool Partition Wizard Bootable.
Tip: If you do not have a bootable media builder, you can upgrade to MiniTool Partition Wizard advanced editions.
Click on the partition to be formatted and select 'Format Partition' from the operations menu.
Step 3: choose NTFS as the desired file system.
In the pop-up window, choose NTFS at file system and then click 'OK' to continue.
Step 4: execute the operation.
Go back to the main interface and hit 'Apply' to execute this change.
2) Use Windows Installation Disk
Also you can choose to format the partition during the installation. When you see 'where do you want to install Windows', click on the target partition at first and then hit Drive Options (Advanced) to format it.
Solution 2. Clean the Whole Drive
Another solution for Windows should be installed to a partition formatted in NTFS is to clean the whole drive. You can also use MiniTool Partition Wizard Bootable CD to do this job (use Delete All Partitions), then Windows will make its partition automatically during installation.
Summary
Windows Cannot Find C: Program Files (x86)
When you receive one of the 6 errors during Windows installation, I hope our solutions are useful for you. If they are proved to be useful, please share it to help more people. Should you have any doubts or problems, please feel free to leave us your comments in the following area or sent to [email protected], we will try our best to help you get out of trouble.