• Reinstalling Windows 10 from USB fails with error– solution

    Home » Forums » AskWoody support » Windows » Windows 10 » Windows 10-other » Reinstalling Windows 10 from USB fails with error– solution

    Author
    Topic
    #237487

    If you just want the Windows 10 not wanting to install bit, skip the next four paragraphs of background!

    You may remember that I bought and returned a Dell Inspiron 15 Gaming 7567 several months ago (around April).  I liked it for the most part, but there were two deficits I couldn’t get past.  First, the edge of the palmrest facing the user was far too sharp, causing pain where the wrists rest on it, and second, the incompatibility of the touchpad with any Windows other than 10, thanks to a Microsoft-led embargo on drivers for anything better.

    Well… I saw a Black Friday deal for a successor to the 7567.  It’s the Dell G3-3567.  The sharp edge is muted, and while I presume the touchpad is the same as before and will also not work with Windows other than 10, I don’t really care about that anymore since I’ve switched to Linux.  So, the G3 is now mine, and currently is resting right under my fingers.  I got it at a better price than the 7567, and it’s a higher-spec unit (it has the i7 hexacore instead of the older i5 quad without hyperthreading, though the wisdom of leaving that enabled is questionable).

    One of the first things I did was to put Linux on the laptop.  As it’s my current OS of choice on my other PCs, I put KDE Neon on it, and once again got Nvidia Prime Sync working (for no-tearing performance), as I had with the 7567.  I installed one of my Linux games on it, and it’s incredibly smooth and fluid– better than my desktop (as you might expect, given its several years old GPU).

    After that, I removed the existing drives (a 1TB HDD and a 128GB SATA SSD) and replaced them with a 1TB 2.5″ SSD which had until then been in the Core 2 Duo laptop, and a new Samsung 970 Evo NVMe PCIEx4 SSD (250GB).

    Edit: I missed this paragraph in the initial write-up I did.  Initially, Macrium Reflect didn’t want to recognize the NVMe drive, which was where I wanted to put the restored Neon.  So I tried booting the Neon install USB drive I already had on hand, and it was able to install Neon to the NVMe drive without any problem.  After that, Macrium was able to see and restore to the NVMe drive, so I restored the Neon installation I had backed up over the new Neon install I had done (since I’d already done the work of setting up Nvidia Prime and such in the backed-up version).

    I restored the backup I’d made of the Linux install to the new NVMe drive without a problem, but with all of that extra room (1.25TB), I figured I ought to put 10 back on just for the little annoying things, like updating the firmware and performing backups from Macrium (I know I can use the USB rescue drive to back up, but it’s easier to just reboot into Windows).

    So, I was going to install Windows 10 on a NVMe SSD in the Dell G3 gaming laptop that already had Linux on it.  I had the original installation backed up, but I might as well do a clean install rather than trying to get that to work on a drive that already has an existing Linux installation (generally it is advised to install Windows first and then Linux in a dual-boot setup).  I had left unallocated space on the SSD during the Linux installation process for the future Windows installation.

    So, should be simple, right?  Just pop in a USB installer drive and go?  Well, I’d thought so.  After I created the 1803 drive (Home version, unfortunately, but I don’t plan to use it except for odds and ends), I booted it, and the Windows installer told me that a necessary media driver was missing, and that I should enter the path to the correct driver.

    Yeah, that’s all the info it gave about this mysterious driver it needed.  Media driver.  No more information than that!  How can I tell what the correct driver is if you haven’t told me anything?  I know that MS wants to simplify things by removing what they consider to be unnecessary info, but that’s not unnecessary!  I need to know what device needs a driver.

    So I did some searching, and found that it’s actually a fairly common error in Windows 10.  I tried unpacking some of the drivers (like Intel’s RST driver, which made the most sense) and leading the installer to them, and while it seemed promising when it gave the choice of several drivers and let me choose which to install, none of them did anything– it rejected them all after trying for a long while.

    I tried redownloading the ISO directly (1809 this time) rather than using the MS media creation tool, and I tried writing that with Rufus as well as from the Linux Mint USB drive writer tool (which I use in Neon without any issue).  Same thing each time.  I tried all of the USB ports, since some of the people had said changing that helped.  I tried changing the port after I’d encountered the error message, as some others had suggested.  None of it was any help.

    Finally, I saw one post from someone who suggested formatting the USB stick in NTFS rather than the “works on everything” option of FAT32, so I tried that in Rufus, and lo and behold: that worked.  The Windows installer was unable to cope with its own FAT32 format (the standard for USB drives), on this PC at least.  I’ve used Windows 8.1 USB drives as FAT32 with all kinds of PCs, including the 7567 which was very much like this one, and they worked fine… but Windows 10 didn’t.  I have to imagine that the FAT32 Windows USB works in most cases, or else this would be as big a headline as the other Windows woes have been… but it’s very strange.  The Linux installer just worked fine right off the bat, but Windows didn’t.

    Once I got Windows installed, it self-activated without issue.  A sudo update-grub was all I needed to make the dual boot work.  I then turned on secure boot, and all still works.  So I now have a UEFI, secure boot, dual-boot Linux/Windows 10 PC where Linux was installed first, working fine. I’d never done it that way before.

    So now I have 10 again.  Yay?

    I can be completely free of bare-metal Windows if I want, but there’s no sense in being ideological about it.  A PC is a tool, and Windows still has some utility even though I don’t really use Windows anymore in daily use, and since the license is already paid for, I might as well make use of it for as long as it has some benefit.

    The thing for me is that I have yet to find any backup programs for Linux that work as well as Macrium Reflect or Aomei Backupper.  Aomei has removed the encryption option from their recent free versions, which was the only reason I was using that instead of Reflect for my go-to backup needs, so for now I am back on Reflect (free version).  I know the devs need to make a living, but I am loath to pay for Windows software (and encourage the devs to only make Windows versions) that I only use in Windows because there is no other choice… if anyone introduced a bona fide equal to Reflect or True Image (minus the bugs and bloat) for Linux, I’d jump on that.  I’d thought that Terabyte had a good solution, but it turns out that it’s just a Linux program to create a live USB stick from which to do the backing up.  I can do that with any of the Windows based programs too!  Reflect, Backupper, True Image can all image Linux installations from the rescue media.  I’d like something that can work in the background, like on Windows.  Linux is capable of what would be called shadow copy in Windows– from what I understand, it had that before Windows did.  It just takes someone to develop a real imaging backup program (rather than a file-level backup) for Linux.

    Actually, Acronis does have a Linux version of their software, but not the consumer-oriented True Image.  It costs $500 a year per PC, if I recall, which is just a bit out of my price range.  Not every Linux installation is a server in an enterprise setting where such costs are justified!

    So, for now, I have Windows 10 Home for creating backups of my Linux installation and for performing BIOS updates.  I installed Windows Update blocker on it, so that I can actually have it do what I want rather than decide my boot into it for backing up has to wait for updating that I don’t need.  I’ll have to see how well it works, given Microsoft’s attempts to defeat efforts to block the forced updates.

    I could use a DOS-booting USB drive to perform the firmware updates, and I could use a USB bootable rescue drive for Macrium Reflect to do the backups, but this is faster and more convenient.  On the NVMe drive, booting into either Windows or Linux is lightning fast, and I don’t have to fumble through piles of USB drives and try to find the one that has Reflect on it.  If Windows manages to punch through Windows Update blocker, I might just end up going the USB route anyway.  In the rare occasions I might boot into Windows, it is because I have a job for it right now, not later, not eventually, not someday… now.

     

     

    Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
    XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
    Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

    3 users thanked author for this post.
    Viewing 1 reply thread
    Author
    Replies
    • #237568

      Finally, I saw one post from someone who suggested formatting the USB stick in NTFS rather than the “works on everything” option of FAT32, so I tried that in Rufus, and lo and behold: that worked.

      Interesting I have never had that problem before got to remember that little tip and I have thrown a few USB sticks in machines over the years.
      Just one question, if I may; Did you run sudo update-grub from the Linux install or the “Bash Shell” in Win10 or from Linux? just curious as I have had a few problems over the years as both Boot records seem to have a habit of overriding/writing each other in the Boot sector with dual installs. All except Ubuntu 1408?? I seem to recall that wrote its self into the Win10 Boot Menu automatically. No doubt invoking sudo update-grub cmd all by its self. Sounds interesting may have to give Ubuntu or Mint a try in the near future although its getting a bit crowded on here Win’s 7-10 and a test VHD already lol 😉 Nice article.

      2 users thanked author for this post.
      • #237623

        Just one question, if I may; Did you run sudo update-grub from the Linux install or the “Bash Shell” in Win10 or from Linux?

        From Linux.  I’ve never tried the Bash shell in Win 10.

        I’ve heard about Windows 10 being aggressive in overwriting dual-boot boot sectors with its own without being provoked by the user, but I haven’t seen that behavior in 7 or 8.1, with which I have the most dual-boot experience.  I don’t doubt that 10 is a different animal, given that each feature update is actually an in-place upgrade, something that we definitely don’t see with older Windows versions.

        I have seen the overwriting of the bootloader happen when third-party programs make changes to the Windows bootloader, like some backup or partitioning programs do, and I’ve also seen it from invoking the Windows recovery “fix boot issues” function, which isn’t surprising at all.  Windows is unaware of Linux, so it is not surprising that telling it to fix boot issues would overwrite the Linux bootloader if it is on the same drive.

        Dual-boot setups that have been stomped on by Windows are actually pretty easy to fix.  It may be possible to just enter the UEFI setup of the PC and make the Linux bootloader the top priority again instead of Windows.  If that doesn’t work, you just have to get into Linux (the easiest way is to use the Super GRUB 2 disc and have it boot your Linux installation; a live session requires a few commands to be issued before it will work).  After that, you can rewrite the Windows bootloader with “sudo grub-install /dev/sda” (or whatever the name of the drive you want to boot from is named, if not sda).  Linux and GRUB are Windows-aware, so overwriting the Windows bootloader with the Linux/GRUB bootloader will have it automatically put the Windows option into the GRUB menu.

        In my case, I had already installed Neon to the new NVMe drive before I did the restore (I had forgotten that bit in the initial write-up; I added it in just now), so the bootloader was already pointed at the correct location for the GRUB bootloader when I restored the Neon partition.  The new Neon partition restored the previous partition’s GUID, but that partition contained the fstab file pointing to that GUID, so it worked.

        As this is a UEFI system, installing Windows did not overwrite the GRUB bootloader.  It added the Windows loader to the UEFI system partition and set it as the default loader in the UEFI settings, but I just went into the PC’s UEFI setup and set the top option back to Neon, and it booted to Linux with no problem at all.

        There are a lot of people who fear UEFI and blame it for all kinds of bad things, but if this had been a MBR system (like my Core 2 Duo laptop), I would probably have had to use the Super GRUB 2 disc to boot to my Linux installation as described above rather than simply selecting “Neon” in the boot list and moving it up one line to make it top priority.

        That restored Neon installation was not aware of Windows, since it had been backed up in a single-boot Linux-only setup.  Since the bootloader was already working to boot Linux, it was not necessary to use the command to install GRUB to the drive.  I just had to get GRUB to find and configure the chain-load for Windows, which only required “sudo update-grub”.  The update process looks for any potential Windows installations on the system and automatically adds them to the menu if it finds them.

        I hope I’ve managed to be clear and not make it seem more complex than it really was!

        Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
        XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
        Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

        1 user thanked author for this post.
    • #237631

      @Ascaris, have you tried creating a USB iso from within linux itself? I do know that some distros come wiith this function and some without. If without, it’s probably in the repos. I’ve tried it with W10 Pro (1709) 16Gb and it worked on the FAT32 filesystem USB flash drive. I’ve also used UnetBootin for a good few years with FAT32 formatting and never had an issue with it, W7-W10 and linux distros.
      1st Edit:

      FAT32 took over from FAT16 and has a maximum drive size of 2TB. Its
      maximum file size is 4GB, which is why you can’t copy a 5GB file to
      it. Its cluster size is 4KB up to a partition of 8GB. Above 8GB the
      cluster size grows up to 32kb.

      My bolding
      taken from https://answers.microsoft.com/en-us/windows/forum/windows_7-files/what-is-the-maximum-file-size-fat-fat32-ntfs-file/1663db6b-490e-4021-9e36-f7a6976ac0c0
      An iso must be treated like a filesize, so there lies the problem with W10..weird 1709 worked no problem with a Fat32 USB drive (16Gb) although I can’t remember the iso size ATM..
      2nd Edit:
      File sizes of W10 iso’s (Thanks PKCano)
      v1709 x64-4151232KB/ x86-3243136KB
      v1803 x64-4582388KB/ x86-3310286KB
      v1809 x64-4956582KB/ x86-3544530KB

      Windows - commercial by definition and now function...
      • #237640

        Yes, I had tried writing the image with the Linux Mint tool from within Neon and the Rufus tool from Windows.  The Mint tool wrote the image with FAT32 (it has no options other than which ISO and which USB device), as did Rufus before I changed the option.  Both of the FAT32 drive images had the same result… Windows demanding a driver for something without telling me what it was.

        Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
        XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
        Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

        • #237649

          The Mint tool wrote the image with FAT32 (it has no options other than which ISO and which USB device)

          Yes, that’s the one I was referring to which is in Peppermint OS Linux, it’s more than likely due to the filesize of the iso increasing in 1803 and 1809. (my last usb write was v1709 on FAT32)
          As a point of interest, what was the size of the USB flash drive that you used for writing the iso-usb procedure?

          Windows - commercial by definition and now function...
          • #237823

            It was an 8GB Patriot Memory USB 3.0 drive.  Some people reported that using USB 2 worked for them, but this laptop has only USB 3.0 ports, and I didn’t have a USB 2 drive big enough for the .iso.

            Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
            XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
            Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

    Viewing 1 reply thread
    Reply To: Reinstalling Windows 10 from USB fails with error– solution

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: