Getting Permission Denied Errors with Rsync โ€“ How to Fix It?

November 21, 2025 3 answers
Asked by !good observation
Hey everyone! I'm currently trying to move files from an NTFS partition to a new EXT4 partition on my Linux Mint Cinnamon setup. I made a test folder named '1' with a file in it to test out the transfer process. However, when I run this command: >rsync -ravhsP /media/user/6A563B8B563B56D3/1 /media/user/2TB I keep hitting a 'Permission denied' error for creating a directory at '/media/user/2TB/1'. I suspect this might be related to file permissions in Linux, which I'm not super familiar with yet. I'd love to know how I can give my user the right permissions or work around this issue. Also, I noticed that rsync is trying to create a subdirectory instead of transferring the contents directly into the 2TB partition. I've figured out adding a trailing slash at the end of the source path will fix that, but any additional tips would be great! Just to clarify, 6A563B8B563B56D3 is the NTFS partition and 2TB is the EXT4 I'm moving files to.

Answers

_95th theorem
Just sharing a helpful resource โ€“ there are plenty of tips and tricks on Linux file management if you look around. Always remember to take backups before you make changes. It's a good idea to test things in a VM to avoid any mishaps!
Reply to this answer
!19 knots to shore
After you transfer the files with `sudo`, if you find that the permissions are too strict and you can't delete the folder, you can run this command afterwards: ```bash sudo chown -R your_username: /path/to/directory ``` This will change the ownership of the files back to your user. The `-R` option makes it recursive, so it applies to all files.
Reply to this answer
NOT A SPOILER
If you're getting a permission error, you might want to try running the command with `sudo`. Here's how you can do it: ```bash sudo rsync -ravhsP /media/user/6A563B8B563B56D3/1 /media/user/2TB ``` Using `sudo` gives the command root access, which typically fixes permission issues.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions