Win10 'Windows Subsystem for Linux': copy/move TC-button?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Win10 'Windows Subsystem for Linux': copy/move TC-button?

Post by *obmana »

For those unfamiliar, Windows 10 introduced Windows Subsystem for Linux: https://msdn.microsoft.com/en-us/commandline/wsl/about

Accessing Windows files from this subsystem is strait-forward, but not the opposite way. If I try to copy files with TC to Linux subsystem, I cant see the files later in bash.

So I was thinking to make custom buttons in TC to execute bash commands on selected files, as a workaround, like `bash -c "cp src dest"`

Does anyone have a better idea?
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Well, this is a relatively new function which probably needs better support in TC. Special functions for a simple copy should not be required. I'd suggest to let Christian play a little bit with it and improve TC's native support. Also, MS will probably enhance it even more, so i'm guessing / hoping in the future, more and better functions will be provided to programs such as TC, resulting in better support for the Linux subsystem.

As said in the link you provided:
This is provided as beta software. While many of the coreutil commands provided by Ubuntu will work, there are some that will not. We welcome feedback and will prioritize accordingly.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Accessing Windows files from this subsystem is strait-forward, but not the opposite way. If I try to copy files with TC to Linux subsystem, I cant see the files later in bash.
TC uses Windows function CopyFileEx() to copy files by default. Apparently CopyFileEx doesn't seem to support the subsystem for Linux. Do you know any functions which support it?
Author of Total Commander
https://www.ghisler.com
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Post by *obmana »

Unfortunately not.

According WSL overview (https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subsystem-for-linux-overview/):
File system support in WSL was designed to meet two goals.

1. Provide an environment that supports the full fidelity of Linux file systems
2. Allow interoperability with drives and files in Windows

The Windows Subsystem for Linux provides virtual file system support similar to the real Linux kernel. Two file systems are used to provide access to files on the users system: VolFs and DriveFs.

...

Interoperability between Windows applications and files in VolFs is not supported.
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Post by *obmana »

I have a better idea :)

I started sshd inside WSL, and use TC SFTP plugin - it works great!

Speed is ~20 MB/s
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

ghisler(Author) wrote:
Apparently CopyFileEx doesn't seem to support the subsystem for Linux. Do you know any functions which support it?
Found this.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Hurdet
That's not the problem here - the link lists function which copy files on Linux. The question is about the Linux subsystem on Windows. And it's not about copying with a Linux program within that subsystem, but copying files from Windows to that Linux subsystem...
Author of Total Commander
https://www.ghisler.com
Post Reply