WSL: rsync error with Windows 1803
This bug-tracker is monitored by developers and other technical types. We like detail! So please use this form and tell us, concisely but precisely, what’s up. Please fill out ALL THE FIELDS!
If you have a feature request, please post to the UserVoice.
If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.
Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues. Instead, send dumps/traces to secure@microsoft.com, referencing the GitHub bug number. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".
-
Your Windows build number: (Type ver at a Windows Command Prompt) Microsoft Windows [Version 10.0.16299.431]
-
What you’re doing and what’s happening: (Copy&paste specific commands and their output, or include screen shots)
When I use rsync with a USB drive, I get errors:
rsync: chgrp “/mnt/f/Gamification/TechLand/TPS/Illuminotecnica/Immagini/03/A/Stanza.dwg” failed: Operation not permitted (1) rsync: mkstemp “/mnt/f/Gamification/TechLand/TPS/Illuminotecnica/Immagini/03/A/.Stanza.dwg.vU7MSj” failed: Operation not permitted (1) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
This started happening after upgrading from 1709 16299.431 to 1803 17134.48, and fixed itself after a rollback. This is the code, which worked in 1709:
cd /mnt/d/Mauro/Documenti/Insegnamento/
rsync -Rauv --del --chown Mauro --chmod=ugo=rwX \
'Gamification' \
/mnt/f/ \
>/mnt/c/Users/Mauro/Desktop/lista.txt \
2>/mnt/c/Users/Mauro/Desktop/errori.txt
It still works syncing from internal hard drive to internal hard drive, and from internal to external hard drive. I tried formatting the USB drive, reformatting it as NTFS, recreating permissions, formatting again as FAT32; I also tried to remove entirely the folders and run the script again, to no avail.
- What’s wrong / what should be happening instead:
The folders should sync.
- Strace of the failing command, if applicable: (If
some_commandis failing, then runstrace -o some_command.strace -f some_command some_args, and link the contents ofsome_command.stracein a gist here)
See our contributing instructions for assistance.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (1 by maintainers)
By the way, I also tried with
--no-owner --no-groupbut got this error:
failed to set times on “/mnt/f/2017-2018”: Operation not permitted (1)
(Not sure if the sync went through, will check as soon as possible.)