Windows 10 update failed

I am updating from Windows 7 Pro to W10 Pro.
I have had one go of running it straight through using the MediaCreationToolx64 but it did not complete and reverted to the old system W7.
It said error in installation in phase Second Boot, with error in operation Boot. 0Xc1900101 - 0x40017
I have found a confusing range of possible solutions using Google.
I have collected the following:

Disk 0: 465GB

On my partitions I have:
C:  W7OS  107 GB  / space free 120 GB
D:  used: 183 GB / free 37 GB
Q: Recovery   used: 10 GB / free 5.4 GB
I have 4GB of RAM
Service Pack 1

My guess is that the space on C: is not enough for the new OS. If so should I repartition? Could it be something else?

I have now downloaded Windows 10 to a usb memory stick, so that part of the operation I should not have to repeat (though I suppose it should be verified).
Michael GunnerDirectorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael GunnerDirectorAuthor Commented:
The first attempt ran for 8 hours before failing. I would like to know that there is a reasonable chance before I make changes and try again.
You have ample disc space.

Here's what Microsoft says you need to run Windows 10:

Processor: 1 gigahertz (GHz) or faster.
RAM: 1 gigabyte (GB) (32-bit) or 2 GB (64-bit)
Free hard disk space: 16 GB.
Graphics card: Microsoft DirectX 9 graphics device with WDDM driver.
A Microsoft account and Internet access.

Download and run Windows 10 Upgrade Advisor

Check your hardware with win. 7  System Diagnostics

Re-download Windows 10 and put the bootable image on the usb memory stick again (sometimes you can get a corrupt image)
I always use the DVD iso file from the creation tool download, not the USB version. I have found the DVD version to work, while the USB version hasn't always worked. That doesn't mean you can't use the DVD iso version to boot from a USB stick. With the WinsetupFromUSB tool you can put the iso onto a bootable USB stick. This works very well and has the advantage that you can put more than one iso, including Linux and others, on one USB stick:
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Make sure you have downloaded the correct version of Windows 10 for your system. If you are currently using a 32 bit version of Windows 7 Home Basic or Premium, then you need to download the 32 bit version of Windows 10 Home. If you are upgrading from a 64 bit version of Windows 7 Pro or Ultimate, then you will need to download the 64 version of Windows 10 Pro. You can only upgrade from 32 bit to 32 bit, or from 64 bit to 64 bit, or from home to home, respectively from Pro or Ultimate to Pro. If you use the wrong media that doesn't match your current OS in the versions, the upgrade won't work.

Also, there is a combined 32bit/64bit download via the media creation tool. Don't use that.

Before upgrading, run a chkdsk /f /r for all your drive letters to repair any corruptions in the file-system. After that do a defrag. From what I can see you have plenty of free space, so that shouldn't be an issue. I'd also disable hibernation for the upgrade (powercfg -h off from an elevated CMD prompt). Disable or remove your AV tool before starting. Make sure you have done all windows updates, and that Windows 7 is properly activated.

Extract the contents of the downloaded iso to a folder on your system, then run setup.exe, and the upgrade should start.

8 Hours though is very long, I've done several upgrades successfully, and I don't think it took any longer than 2 hours. What CPU are you using? Is it very old?
Michael GunnerDirectorAuthor Commented:
I will have to obtain a disk as I only had the USB.
I downloaded both the 32bit and 64bit versions to the stick. Why is this bad? There are separate files for each on the stick.
My Spanish internet is very slow, around 2 Mb/s. My Lenovo has an i5 processor, 2.5 GHz.Perhaps I should stop all other windows.
I am using the correct update.
I am now bogged down in chkdsk, After 40 minutes, 39% completed, 300000 of a million files!
Keeping me busy. Thank you.
The combined 32/64 bit version needs more space and doesn't fit on a normal DVD, you would have to get a DL DVD, and not all burners support that. Besides that, it didn't work after I tried it. The separate 32 bit or 64 bit DVD downloads did work.

You don't necessarily need a DVD, even if you download the DVD version. you can still put it on a USB stick using the utility I mentioned above. Besides that,for the upgrade you only need to extract the contents of the iso then run the setup.exe file. You don't need to start it from the DVD.

During the upgrade the internet connection shouldn't matter too much. My speed is probably about the same as yours. During the upgrade you are asked whether you want to download upgrades or not. Say no there. You can do the upgrades once Windows 10 is installed.

Yes, you should close everything else on the PC during the upgrade, and not work on it.
Michael GunnerDirectorAuthor Commented:
It still fails.
I extracted the 64-bit setup.exe file and put it on my hard disk.
This ran as before, to about 90% with the same error Boot. 0Xc1900101 - 0x40017
(2nd boot).
This was much quicker though as there was no download (?) so it is not so bad repeating tests.
I ran chkdsk and there were no corruptions on any disks. Defrag is done automatically once a week.
I used msconfig to stop a lot of processes but some of them have reappeared after the first boot.
The same with Malwarebytes - it's still running.
 I checked dxdiag: result DirectX 11  WDDM 1.1  - that can´t be the  problem.

Win7 diagnostics:
5 minutes collecting data "for 60 seconds"

I have checked for Compatibility as in
It says there are no problems.
The following is what I have found from running a System Diagnostic Report

It is not registering an antivirus though I have Malwarebytes

A service stopped with an unexpected error code: I don't know which one.
There are three which it says were stopped abnormally:

Resources say that Memory is used up. 987Mb available. 76% in use.

I have read somewhere that you should consolidate all partitions in to C:
That seems ridiculous. But all the diagnostics are clear apart from some services not running.
I attach screens showing the diag ouputs I got:

Final question - can this be run in safe mode? If the problem is some application should I disable everything? If so what is the best way without a lot of painful reinstalling afterwards?

Your help is much appreciated.
How much RAM do you have in total? What disk? How are things partitioned? Consolidating partitions shouldn't be necessary, but maybe if you have redirected user folders to another location than C:\, that could be an issue. I've at least occasionally seen problems when running Windows updates which failed in such situation. All I then needed to do was to temporarily change the registry key "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory" back to C:\Users until after the update, and after that back to my normal setting.

I don't think the upgrade will run in safe mode, but I never tried that. But it seems that you get the error after the system has rebooted at least once, and if that is correct then it wouldn't change anything anyway.

Maybe run msconfig and disable all non m$ windows services. Maybe also check the lenovo site for BIOS and driver upgrades, and do those before starting again. As far as I know, lenovo PC usually come with an automatic backup service running, that makes backups to the local HD. That could of course cause issues, so I'd disable that at least.

If you are using an SSD rather than a conventional HD, then you should turn defrag off. Defrag should never be run on SSD's, it reduces their life. Also, if it is an SSD, run the manufacturer's diagnostic utility and make sure it's firmware is current.
Michael GunnerDirectorAuthor Commented:
Comments on suggestions, and my questions. Advice very gratefully received.

I am not using an SSD, only one normal disc.
I have extra partitions D: and Q:
I have some redirects but they are all within D: D has documents and applications installed in a sub-folder.
I have an extensive list of Favorites. Most of these are to folders in D:
There are some which direct to standard C: folders such as My Documents and Downloads. One or two point to folders on another computer in the network, but this is normally not running.
I suppose that Favorites are stored in C: and are therefore redirects to D in most cases.
Rindi hints that redirects across partitions may cause problems. I could delete all the Favorites but don't want to.

Microsoft says move everything from D: to C:
9. Restore redirected Personal folders to their original location.

If you keep your personal folders on another partition or drive for storage benefits, this actually might prevent Windows from installing properly. The recommendation is you restore them to their original location.
Could this be the answer, despite the inconvenience?

Someone said disable Q, Lenovo's backup partition (which I don't know how to use). It occurred to me that I could perhaps unmount D and Q, but I can't see how to do it within Windows. In any case I am not confident in doing that sort of administration and of how to put it all back reliably.

I have file backups and Acronis True Image backups. If the configuration has changed I am not sure whether TI will restore correctly. I do not have Universal Restore.

I have read that disabling antivirus, internet connection and bluetooth has worked for some people. I think I have to uninstall Malwarebytes because it came back after I disabled it.

Removing the redirections could help. I had tried an upgrade from a PC that had the user's profiles, along with the Public folder pointing to D:, and there the upgrade failed with an error during the first reboot during the upgrade. On PC's where everything was on C: I had no problems.

I'd definitely turn off the lenovo utility that backs up. This tool, in my point of view doesn't make much sense anyway. Backups must go to external devices, and not the same disk you are backing up from. The only reason for something like that to make some sense is if you want to go back to an older version of a file, but you already have that built into the OS with Shadow Copies and restore points. But how it is turned off I don't know, as I only have one Lenovo PC which is pretty old and runs on Linux.

Malwarebytes isn't an AV tool, it is against malware. But I'd still uninstall it for the update, you can install it again later.

Maybe before starting to change settings, take a full backup to an external disk.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael GunnerDirectorAuthor Commented:
Thank you again.
I am wondering if I remove the application files I have on my D: drive, and put them temporarily on C: whether that will still leave system files on C: directed wrongly to D: For example Registry entries. I am thinking of removing everything from D: as well as the Favorites which point to them.
I am not re-running yet because these steps seem rather drastic and possibly irreversible.
I don't really know what exactly your current environment.

Maybe something you could do is to do a normal installation of your current OS to an extra HD (remove your normal disk). Then run all Windows updates until everything is updated. After that make sure Windows is activated, and then do the upgrade to Windows 10. If it finishes without problems, check whether it is activated. If that is the case, you can remove this disk and insert the old one again. Now you can do a clean installation of Windows 10 by booting from the installation DVD or USB stick. When you get asked to enter the Windows 10 product key, ignore that Question and just skip it. It is possible that you get asked for the key more than once. When the installation is finished make sure you are connected to the internet. If that is the case, check the activation status. It should be activated.

After that just install your 3rd party software again, along with the redirection you need, and also setup the redirections for the user accounts again.
Michael GunnerDirectorAuthor Commented:
Thank you.
I will try the simpler approach first - removing what I can from D and the Favorites, and disabling MWB, internet and bluetooth.
I am not happy with swapping disks and installing OSs somewhere else.
I have copied the Windows key to use if I have to.
I am taking a break for a day or two.
Michael GunnerDirectorAuthor Commented:
I went through an exercise of cleaning up my data, removing very large files, and some very long paths which had accumulated over time. But the W10 installation failed again at about 85% and being left overnight for the download and then 3 hours for the installation.

I tried to get help via the Microsoft Help Desk. They did a remote connect and I was full of elation and hope. But... They took no notice of my comments and started doing the initial download. I told them the whole process would take a day and they would then get the same error.. I told him that I had the x64 directory on the C drive and therefore could run setup without the initial download. I don't think he understood this, and started the download anyway (not finishing). He did not attempt to explain anything. He complained about the internet speed (which is bad)  and  after an hour he gave me some  Microsoft numbers and a link, told me it had to be left to run to the end, then he left and disconnected.
Next I asked for a call via their web page and I got a call back eventually but was then told that they could not help me being in Spain. I could not get through on the Spanish numbers and the whole exercise was an enormous waste of time. I would complain to Microsoft if I thought it would achieve anything.

After a few hours to recover I have gone back to Rindi's comments (which started looking complicated or a bit drastic!).
1. The recovery Q drive. You say: I'd definitely turn off the lenovo utility that backs up.
I used it to create recovery disks (not tested). It seems a bad idea to remove this partition if it has some use. I can't see how to turn it off. The other partition contents should be easier to move.

2. I can't imagine this is a resource problem (except internet speed). The hard disk is C: 230 GB 135 GB available
D: 221 GB   190GB available.
Memory  3.89 GB usable

3. ...  temporarily change the registry key "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory" back to C:\Users until after the update, and after that back to my normal setting.....
I don't exactly have this key.
Under HKEY_CURRENT_USER \Software I can see my programs.
What to try I don't know!
If I take everything off D there will be major problems won't there? I can't upgrade and then just copy them back?
But I am interested in the idea of restting the registry to point to C: (and then putting it back).

How should I proceed?

Thank you for any ideas.
Michael GunnerDirectorAuthor Commented:
I could not run the update from my existing system and there are no diagnostics that are useful. Microsoft made a remote access but did not look at any of the characteristics of my system, at least one of which must have been causing the failure. They tried to run the update from scratch including the lengthy download, not accepting that I had already done this and produced the failure which I reported. They did not even wait for the failure to finish. I could not carry on with new tests eliminating possible reasons one by one (eg removing the D partition and others) - because I could only run one test in 24 hours and I had already run 4 or 5.
I suspect that one or two applications were causing this. There were some on this PC which were not on the other one where I ran the update from with no problems.
So I selected the option to wipe out all my user data and ran the update successfully. I now have as a result issues with drivers, security certificates, and some programs eg backups. But I have the basic W10 running. Thank you very much to the two people who offered advice.
Michael GunnerDirectorAuthor Commented:
Windows 10 installed. Process did not work as stated by Microsoft. Diagnostics very inadequate. Microsoft online should have been much better, and have had some knowledge of likely causes of failure. They also didn't complete what they said they would do.
Michael GunnerDirectorAuthor Commented:
Sorry but nothing suggested worked. The fact that I now have Windows 10 installed, though satisfactory, is at the expense of a lot of reconfiguring, including with some old hardware, and of having to reload security certificates in browsers. I learnt things thanks to some of hte comments.  I appreciate the time I was given by helpers.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.