Solved Windows 11 copy error invalid function error:1


banger

Well-known member
Member
VIP
Local time
11:12 PM
Posts
200
OS
Solus Plasma
I do a backup once a week in Win 11 (build 26200.7462) of all my partitions as its the only OS that has decent programs like Macrium reflect and Hasleo Backup Suite.

I copy the backup images from external hard drive A to external hard drive B and verify the copy with teracopy. But recently some of the copies have been failing to write to the HDD, the error is failed to write error:1 in terracopy.

So I decided to see if it was terracopy at fault and copied a 51gb image using Explorer in Win 11 and it got to about 62% and said MS-DOS error. More testing from command line I tried xcopy which seemed to copy the file but when doing a FC /B in terminal it said the original was larger.

So then I tried robocopy to copy the file and it got to about 81% and said Invalid Function re-trying.

This doesn't happen in Linux with the same hardware. At first I thought the disk was on its way out with bad blocks. But copying the file in Linux completes successfully and the hashes match. Running a FreeFileSync comparision says no differences.

Is this a Windows problem with the copy function? Any ideas?
 
Windows Build/Version
Windows 11 build 25H2 26200

My Computers

System One System Two

  • OS
    Solus Plasma
    Computer type
    PC/Desktop
    Manufacturer/Model
    Novatech BB90014
    CPU
    Intel Core i5 9400F
    Motherboard
    Gigabyte H310M S2H 2
    Memory
    Corsair 32 gb Vengeance
    Graphics Card(s)
    Nvidia GT1030
    Sound Card
    On board Realtek
    Monitor(s) Displays
    Dell 2412M Sharpscreen
    Screen Resolution
    1920x1080
    Hard Drives
    Corsair MP510 NvME 1tb
    Crucial MX500 500gb
    WD 2.5Tb
    Hitachi Deskstar 500
    PSU
    Novatech 800W
    Case
    Novatech
    Cooling
    3 x front fans, 1 rear
    Keyboard
    Logitech G11
    Mouse
    Logitech G203
    Internet Speed
    1000/110 Mbps
    Browser
    Vivaldi
    Antivirus
    ClamTK
  • Operating System
    win 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel i5
    Motherboard
    HP Intel
    Memory
    8gb Hynix
    Graphics card(s)
    Intel
    Sound Card
    Realtek
    Monitor(s) Displays
    HP
    Screen Resolution
    1920x1081
    Hard Drives
    Samsung 256
    PSU
    HP
    Case
    HP
    Cooling
    Single fan
    Keyboard
    HP
    Internet Speed
    80/20
    Browser
    Firefox
    Antivirus
    Win Defender
some of the copies have been failing to write to the HDD

Do you have a friend who can lend you an external USB SSD drive just for test purposes? If that works okay then I suspect it is your HDDs that have a problem. At least it won't cost you anything to test it out.
Although your HDDs work with Linux maybe Linux works differently than Windows 11. Just guessing there.

Are you using the same USB port all the time? Maybe try another port?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    GMKtec K11
    CPU
    AMD Ryzen 9 8945HS
    Memory
    32GB DDR5 SO-DIMM
    Graphics Card(s)
    Integrated AMD Radeon 780M (4.00 GHz)
    Monitor(s) Displays
    Benq 2250HM
    Screen Resolution
    1920 x 1080
    Hard Drives
    1 TB PCIe 4.0 NVMe M.2 SSD
  • Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Zenbook 14 OLED 14" Laptop - UX3405CA-QL192W
    CPU
    Intel® Core™ Ultra 7 - 255H processor
    Memory
    16 GB LPDDR5 SDRAM
    Graphics card(s)
    Intel Arc 140T onboard graphics
    Screen Resolution
    1920 x 1200 (16:10 WUXGA resolution) OLED Touchscreen
    Hard Drives
    1TB SSD
Do you have a friend who can lend you an external USB SSD drive just for test purposes? If that works okay then I suspect it is your HDDs that have a problem. At least it won't cost you anything to test it out.
Although your HDDs work with Linux maybe Linux works differently than Windows 11. Just guessing there.

Are you using the same USB port all the time? Maybe try another port?
Yes same ports in Win 11 and Linux and same hardware. I have 2 USB3 docks and 4 HDDs. Once a week I backup to HDD A and then use teracopy to copy the images to the other 3 HDDs. Randomly it will fail. But works fine in Linux and hashes are identical. All drives are NTFS.

The reason I use teracopy is you can set the copies away and verify them and go and do something else.
 

My Computers

System One System Two

  • OS
    Solus Plasma
    Computer type
    PC/Desktop
    Manufacturer/Model
    Novatech BB90014
    CPU
    Intel Core i5 9400F
    Motherboard
    Gigabyte H310M S2H 2
    Memory
    Corsair 32 gb Vengeance
    Graphics Card(s)
    Nvidia GT1030
    Sound Card
    On board Realtek
    Monitor(s) Displays
    Dell 2412M Sharpscreen
    Screen Resolution
    1920x1080
    Hard Drives
    Corsair MP510 NvME 1tb
    Crucial MX500 500gb
    WD 2.5Tb
    Hitachi Deskstar 500
    PSU
    Novatech 800W
    Case
    Novatech
    Cooling
    3 x front fans, 1 rear
    Keyboard
    Logitech G11
    Mouse
    Logitech G203
    Internet Speed
    1000/110 Mbps
    Browser
    Vivaldi
    Antivirus
    ClamTK
  • Operating System
    win 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel i5
    Motherboard
    HP Intel
    Memory
    8gb Hynix
    Graphics card(s)
    Intel
    Sound Card
    Realtek
    Monitor(s) Displays
    HP
    Screen Resolution
    1920x1081
    Hard Drives
    Samsung 256
    PSU
    HP
    Case
    HP
    Cooling
    Single fan
    Keyboard
    HP
    Internet Speed
    80/20
    Browser
    Firefox
    Antivirus
    Win Defender
Are the HDDs internal SATA HDDs mounted in caddies for plugging into USB ports? If so then maybe a caddy interface connection issue?
I had this arrangement and was getting random copy failures sometimes at the verification stage. I decided to remove the caddies from the chain and connect external USB-C SSDs direct into the USB-C port. Never had a problem since and the SSDs are much faster.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    GMKtec K11
    CPU
    AMD Ryzen 9 8945HS
    Memory
    32GB DDR5 SO-DIMM
    Graphics Card(s)
    Integrated AMD Radeon 780M (4.00 GHz)
    Monitor(s) Displays
    Benq 2250HM
    Screen Resolution
    1920 x 1080
    Hard Drives
    1 TB PCIe 4.0 NVMe M.2 SSD
  • Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Zenbook 14 OLED 14" Laptop - UX3405CA-QL192W
    CPU
    Intel® Core™ Ultra 7 - 255H processor
    Memory
    16 GB LPDDR5 SDRAM
    Graphics card(s)
    Intel Arc 140T onboard graphics
    Screen Resolution
    1920 x 1200 (16:10 WUXGA resolution) OLED Touchscreen
    Hard Drives
    1TB SSD

My Computers

System One System Two

  • OS
    Solus Plasma
    Computer type
    PC/Desktop
    Manufacturer/Model
    Novatech BB90014
    CPU
    Intel Core i5 9400F
    Motherboard
    Gigabyte H310M S2H 2
    Memory
    Corsair 32 gb Vengeance
    Graphics Card(s)
    Nvidia GT1030
    Sound Card
    On board Realtek
    Monitor(s) Displays
    Dell 2412M Sharpscreen
    Screen Resolution
    1920x1080
    Hard Drives
    Corsair MP510 NvME 1tb
    Crucial MX500 500gb
    WD 2.5Tb
    Hitachi Deskstar 500
    PSU
    Novatech 800W
    Case
    Novatech
    Cooling
    3 x front fans, 1 rear
    Keyboard
    Logitech G11
    Mouse
    Logitech G203
    Internet Speed
    1000/110 Mbps
    Browser
    Vivaldi
    Antivirus
    ClamTK
  • Operating System
    win 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel i5
    Motherboard
    HP Intel
    Memory
    8gb Hynix
    Graphics card(s)
    Intel
    Sound Card
    Realtek
    Monitor(s) Displays
    HP
    Screen Resolution
    1920x1081
    Hard Drives
    Samsung 256
    PSU
    HP
    Case
    HP
    Cooling
    Single fan
    Keyboard
    HP
    Internet Speed
    80/20
    Browser
    Firefox
    Antivirus
    Win Defender
Yes same ports in Win 11 and Linux and same hardware. I have 2 USB3 docks and 4 HDDs. Once a week I backup to HDD A and then use teracopy to copy the images to the other 3 HDDs. Randomly it will fail. But works fine in Linux and hashes are identical. All drives are NTFS.

The reason I use teracopy is you can set the copies away and verify them and go and do something else.
Assuming there is nothing wrong with the drives, I would buy a POWERED USB 3.0 HUB drive. If the USB port cannot provide enough power, the drive either doesn't identify properly or has a lot of write errors. I had a similar situation back in June when one of my backup disks would not let me write more files and I even had issues copying files from there. I then saw that a couple more disks did that and I realized it can't be all three disks failed at the same time! I bought a powered USB 3.0 hub and all the issues are gone. Not even that, but also the extra power allows the disks to work in slightly higher transfer rates that was possible from the USB 3.0 port alone!

PS: You don't need Teracopy to make sure you copy only new files/folders to the disk. Just copy-paste them all and eventually File Explorer will ask you about duplicate files. In that case select the option to manually choose which one to keep for each file. Next you see the option to ignore all files/folders with the same name and same size, so it copies only new or modified files. Just another trick I have learned in this forum. Thanks to all helpers.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 (5699), 25H2 (8655)
    Computer type
    Laptop
    Manufacturer/Model
    Acer Extensa 5630EZ
    CPU
    Mobile DualCore Intel Core 2 Duo T7250, 2000 MHz
    Motherboard
    Acer Extensa 5630
    Memory
    4GB
    Graphics Card(s)
    Mobile Intel(R) GMA 4500M (Mobile 4 series)
    Sound Card
    Realtek ALC268 @ Intel 82801IB ICH9 - High Definition Audio Controller
    Monitor(s) Displays
    1
    Screen Resolution
    1280x800
    Hard Drives
    Samsung SSD 850 EVO 250GB SATA Device (250 GB, SATA-III)
    Internet Speed
    VDSL 50 Mbps
    Browser
    MICROSOFT EDGE
    Antivirus
    WINDOWS DEFENDER
    Other Info
    Legacy MBR installation, no TPM, no Secure Boot, no WDDM 2.0 graphics drivers, no SSE4.2, cannot get more unsupported ;) This is only my test laptop. I had installed Windows 11 here before upgrading my main PC. For my main PC I use everyday see my 2nd system specs.
  • Operating System
    Windows 11 Pro v25H2 (build 26200.8655)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom-built PC
    CPU
    Intel Core-i7 3770 3.40GHz s1155 (3rd generation)
    Motherboard
    Asus P8H61 s1155 ATX
    Memory
    2x Kingston Hyper-X Blu 8GB DDR3-1600
    Graphics card(s)
    GIGABYTE GeForce RTX 3050 WINDFORCE OC V2 6GB (GV-N3050WF2OCV2-6GD)
    Sound Card
    Realtek HD audio (ALC887)
    Monitor(s) Displays
    Sony Bravia KDL-19L4000 19" LCD TV via VGA
    Screen Resolution
    1440x900 32-bit 60Hz
    Hard Drives
    WD Blue SA510 2.5 1000GB SSD as system disk, Western Digital Caviar Purple 4TB SATA III (WD40PURZ) as second
    PSU
    Thermaltake Litepower RGB 550W Full Wired
    Case
    SUPERCASE MIDI-TOWER
    Cooling
    Deepcool Gamma Archer CPU cooler, 1x 8cm fan at the back
    Keyboard
    Mitsumi 101-key PS/2
    Mouse
    Sunnyline OptiEye PS/2
    Internet Speed
    100Mbps
    Browser
    Microsoft Edge, Mozilla Firefox
    Antivirus
    Microsoft Windows Defender
    Other Info
    Legacy BIOS (MBR) installation, no TPM, no Secure Boot, WDDM 3.0 graphics drivers, WEI score 7.4
The USB docks and hubs are all powered. Teracopy verifies written files by hash Explorer doesn't.
 

My Computers

System One System Two

  • OS
    Solus Plasma
    Computer type
    PC/Desktop
    Manufacturer/Model
    Novatech BB90014
    CPU
    Intel Core i5 9400F
    Motherboard
    Gigabyte H310M S2H 2
    Memory
    Corsair 32 gb Vengeance
    Graphics Card(s)
    Nvidia GT1030
    Sound Card
    On board Realtek
    Monitor(s) Displays
    Dell 2412M Sharpscreen
    Screen Resolution
    1920x1080
    Hard Drives
    Corsair MP510 NvME 1tb
    Crucial MX500 500gb
    WD 2.5Tb
    Hitachi Deskstar 500
    PSU
    Novatech 800W
    Case
    Novatech
    Cooling
    3 x front fans, 1 rear
    Keyboard
    Logitech G11
    Mouse
    Logitech G203
    Internet Speed
    1000/110 Mbps
    Browser
    Vivaldi
    Antivirus
    ClamTK
  • Operating System
    win 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel i5
    Motherboard
    HP Intel
    Memory
    8gb Hynix
    Graphics card(s)
    Intel
    Sound Card
    Realtek
    Monitor(s) Displays
    HP
    Screen Resolution
    1920x1081
    Hard Drives
    Samsung 256
    PSU
    HP
    Case
    HP
    Cooling
    Single fan
    Keyboard
    HP
    Internet Speed
    80/20
    Browser
    Firefox
    Antivirus
    Win Defender
For what it's worth, my Macrium has been used to restore its images many times. It failed me twice. Both times I had copied that image from one drive to another. I learned the hard way to take the time to create a new image if I wanted the same image on more than one drive or a different drive..
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2 26200.8655
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    2x1tb Solidigm m.2 nvme /External drives 512gb Samsung m.2 sata+2tb Kingston m2.nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 11 Pro 24H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink Mini PC SER5
    CPU
    AMD Ryzen 7 6800U
    Memory
    32 gb
    Graphics card(s)
    integrated
    Sound Card
    integrated
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Crucial nvme
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    still too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    System 3 is non compliant Dell 9020 i7-4770/24gb ram Win11 PRO 26200.8457
Back
Top Bottom