If you actually need to access those files from two or more locations at once, go for hardlink, as others already well explained. #NETDRIVE 2 CONNECTION SOFTWARE#It will behave as a local drive, all software will recognize it as such, but it won't consume space on your local hard drives. If you just want your files somewhere else, but don't actually need to access them from many locations simultaneously, you can save a virtual drive in the shared folder and use some software to mount it as a local physical drive. #NETDRIVE 2 CONNECTION HOW TO#I will update this answer if and when I figure out how to make running as a service to work as good as running as a user. bat file to run Rclone as a user, since it works perfectly this way. Note: in my case running as a system service caused some permission issues (for example, when trying to save Excel files), and I did not figured out why yet, so I ended up creating startup. Obviously, you need to replace "server:/" with your actual remote point name and path, also replace drive_name with any name you like, and of cource you may need to edit paths to nf, rclone.log and rclone.exe, if you installed it in a different location. To register Rclone as a system service, edit and run the following command (do not run as is, please see below how you need to edit it first): New-Service -Name Rclone -BinaryPathName 'C:\Program Files\Rclone\rclone.exe mount server:/ Z: -vfs-cache-mode=full -track-renames -track-renames-strategy=modtime,leaf -metadata -volname drive_name -config="C:\Program Files\Rclone\nf" -log-file="C:\Program Files\Rclone\rclone.txt" -file-perms=0777 -sftp-disable-hashcheck -no-console' #NETDRIVE 2 CONNECTION CODE#For the same reason -track-renames-strategy is limited to only modtime and leaf strategies, because if ha enter code heresh strategy is used, it will be obviously slow with large files, and -sftp-disable-hashcheck is necessary to prevent rclone from running md5sum, otherwise it will run it even when trying to read a file.Įven software which normally complains about using network drives (MSI files, Adobe Lightroom, and many others), just works with Rclone. Even though -vfs-cache-mode=writes may be enough for most applications, but - vfs-cache-mode=full is important for good performance with large files. Option -file-perms=0777 is necessary to allow running. The best thing about it, everything just works the same way like with local disk (assuming if you provide -vfs-cache-mode=writes or -vfs-cache-mode=full option, since without it, many applications will fail to work correctly, please read the documentation to understand why). #NETDRIVE 2 CONNECTION INSTALL#To find out location of the config file you have just created, run: rclone config fileĪlso, you may need to install WinFsp first, if not already intalled. #NETDRIVE 2 CONNECTION WINDOWS#It works with sftp remote filesystems, so it can mount network drives both on Linux and Windows (running sshd service).Įxample command how to run it, assuming remote point "server" is already configured and rclone.exe is in PATH environment variable: rclone mount server:/ Z: -file-perms=0777 -track-renames -track-renames-strategy=modtime,leaf -metadata -vfs-cache-mode=full -sftp-disable-hashcheck -volname drive_nameįor the first time, you need to configure new remote point by running: rclone config None of the existing answers here worked, so I had to continue searching for the solution elsewhere, and I found one! For my usecase, it is Rclone what helped to solve the problem of mounting network drives as local ones. You can now go to Onedrive for Business and choose as the location the folder within C:\Linkname that is the mapped network drive. If Read-only, or any other box, is highlighted, or checked, click on it to clear it. Under the general tab you will see at the bottom attributes. Right click on that and click on Properties. Open that file and you will see a file with the same name as the directory you mapped as drive Z. You will now see a file on c:\ named LinkName. In the command prompt box that comes up type mklink /D C:\ Z: (the spaces are needed). Then right click on the folder and map it to drive Z:, or any other you want. If you do not open the network drive and create on it the folder in which you want to store Onedrive for Business. To do this right click on the network drive and you will see "Map network drive" as an option. The suggestion of mklink /D C:\LinkName \NetworkLocation\LocationName actually works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |