Author Topic: Error when copying to external device  (Read 11358 times)

redgoldwing

  • Newbie
  • *
  • Posts: 3
    • View Profile
Error when copying to external device
« on: April 21, 2021, 20:19:36 »
Running Win10 version 10.0.19402 Build 19402 and Multi Commander (x64) v11.0 (build 2770).

Trying to copy one or multiple files from hard drive to external USB drive. All files copy but get MC msg: error occurred while trying to write. The files are all written but the last file is not complete. I've read http://forum.multicommander.com/forum/index.php/topic,1624.msg5904.html#msg5904. This is a new issue for me; I have formerly been able to perform this write function with no problem to this same device.

I've included the pertinent lines from the MC file operations log.

I'd appreciate any advice.

redgoldwing

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Error when copying to external device
« Reply #1 on: April 21, 2021, 21:47:12 »
It is hard to say with so limited information. It can be many many issues that cause a write operation to fail. It can be because something else is interfering with the writing. it can be HW/Drive error or many other issue.
Is it always ?  Only large files ? small files ? does it always fail on same file or random ?
What error code is shown in the log ? (You say you included log but nothing is here.)

redgoldwing

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Error when copying to external device
« Reply #2 on: April 22, 2021, 15:19:21 »
Since it started, it always occurs on the last file. Here is a copy&paste from the log:

2021-04-21 13:57:21.202 Write data failed (WinError 87) (98370 , 446, 446)
2021-04-21 13:57:21.202 [26340] WriteThread - Failed to write to file (Error code : 173, Internal Error Code : 87 - DBG 0x000001DD04BC0000 , 98370 , 0)
2021-04-21 13:57:21.278 Handle file Operations error : 173 (87) -
2021-04-21 13:57:34.341 [26340] WriteThread : User requested abort of operation
2021-04-21 13:57:34.447 [16484] WaitForState : wait for 6 , current state is 6
2021-04-21 13:57:34.447 Copied : "C:\Users\bill\Documents\Attachments\Windows 10 Inside Out, Third Ed - Ed Bott.pdf" => "G:\Ebooks\Windows 10 Inside Out, Third Ed - Ed Bott.pdf" - 26214400 bytes (25.0 MB) in 14sec - Average Speed : 1932930 bytes/sec (1.8 MB/sec), Read data time 225ms (111.1 MB/sec), Write data time 1ms (424.0 MB/sec)
2021-04-21 13:57:35.224 Current file size not same as expected file size - File : "G:\Ebooks\Windows 10 Inside Out, Third Ed - Ed Bott.pdf", Current Size : 26213954 - Expected Size : 26312770

Thanks!

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Error when copying to external device
« Reply #3 on: April 22, 2021, 15:52:43 »
Strange. Since it worked before, what have changed.  is it a new drive ?
Does the same file work if it is not the last file ?

That error is often before something goes wrong in the HW side, Like a drive or usb controller that does not support optimized writes. 
You can make it so that is used . Go to Menu > Configuration > File Operation Settings > Read/Write strategy
Then selected the profile "To External Device"  (verify that this profile is actually used when you do a copy by pressing the "Advanced >>" button that expanding the CopyTo dialog)
By checking the option "Use system Cache", the optimized write that windows can do will be disabled.

« Last Edit: April 22, 2021, 16:05:21 by Mathias (Author) »

redgoldwing

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Error when copying to external device
« Reply #4 on: April 22, 2021, 22:22:48 »
Mathias,

No, it's not a new drive. The same file does work if it's not the last file.

I made the config change you suggested and now it works fine!

Thanks.