First, thanks for this great piece of software, you are doing an amazing job!
I have RPi 3B+ and the latest dietpi. I’m running qbittorrent v4.1.5 and downloads are working fine if I download to a default path
/mnt/dietpi_userdata/downloads/
Since microSD card is 16GB only, I’ve mounted USB drive and I see its content at
/mnt/E449-0ACD
, tried creating and deleting txt file with nano and it works fine. But when I try downloading a file with qbittorrent at the same location, it starts “fake” download ie. it starts with some speed for a couple seconds and then goes to 0, but the progress is always 0.0% even that a file is 1MB, has a lot of seeders and I see the content of a torrent. It doesn’t create any file either.
If I type
ls -l
in that folder, I get
drwxr-xr-x 2 root root 4096 Jan 1
for every single file in that folder. Can someone tell me how to fix this please?
edit: qbittorrent reported it downloaded one of test files I’m trying to download to USB drive and moved it to seeding torrents, but I don’t see the file at all in terminal when I type ‘ls’ or ‘ls -a’.
edit2: I’ve tried adding qbittorrent user to root group and it’s now in dietpi and root groups, but the progress is still stalled.
The user of the torrent client doesn’t have permissions to write in the folder.
Adding the user in the root group is not a very good idea, remove it.
Instead change the permissions of the folder to dietpi
sudo chgrp -R dietpi /mnt/E449-0ACD
Then change the owner of the folder to group dietpi
Indeed adding the user to root group is not a good idea. Pls remove it. As well it’s not fixing your issue as you don’t have write permission on the folder
drwxr-xr-x 2 root root 4096 Jan 1
At the moment, root user is the only one who is allowed to write to this folder. Best way is to change group ownership to dietpi group and allow write permission on group level for this folder. Normally Qbittorrent should be member of dietpi group already.
Thanks for answering! I’ve tried the first command and I get:
chgrp: changing group of '/mnt/E449-0ACD/x': Operation not permitted
for all files in the directory. Found on stackoverflow: “You must be a member of the group to which you are changing ownership to.”, so I added root to dietpi group, but still the same error. I’m not sure what’s wrong?
Thanks for answering! I removed qbittorrent from root group. I’m new to linux and these groups/permissions stuff, that’s why I picked dietpi, since it’s noob-friendly. It was a breeze to set it up and running. Although, I now have this issue.
Did you use the sudo at the beginning of the command?
I cannot tell like this, you should paste here the whole commands and the errors you are getting from the ssh terminal.
I would like to download to /mnt/E449-0ACD. If it matters, there are files already which I want to seed, so I’m trying to make qbittorrent “see” them and start seeding. That’s why I put those x-es “drwxr-xr-x 2 root root 4096 Jan 1 13:18 x” in the previous post.
Yes, of course.
root@DietPi:~# sudo chgrp -R dietpi /mnt/E449-0ACD
chgrp: changing group of ‘/mnt/E449-0ACD/System Volume Information/WPSettings.dat’: Operation not permitted
chgrp: changing group of ‘/mnt/E449-0ACD/System Volume Information’: Operation not permitted
chgrp: changing group of ‘/mnt/E449-0ACD/ubuntu.iso’: Operation not permitted
chgrp: changing group of ‘/mnt/E449-0ACD/ubuntu1.iso’: Operation not permitted
chgrp: changing group of ‘/mnt/E449-0ACD/ubuntu2.iso’: Operation not permitted
chgrp: changing group of ‘/mnt/E449-0ACD/ubuntu3.iso’: Operation not permitted
chgrp: changing group of ‘/mnt/E449-0ACD/ubuntu4.iso’: Operation not permitted
chgrp: changing group of ‘/mnt/E449-0ACD/ubuntu5.iso’: Operation not permitted
chgrp: changing group of ‘/mnt/E449-0ACD’: Operation not permitted
root@DietPi:~#
Not really. I’m using Windows on my laptop and Win’s default format tool, so it was NTFS from the beginning. I guess I will have to format usb drive with some third party tool in order to see ext4?
I guess I will have to backup existing files first, when I get home. Once I change the file system format and copy those files back on the drive, previously mentioned commands should work or there is some additional step before those?
And granting every user full write permissions to all files on that mount as well should be avoided, if possible.
Actually the way we mount NTFS, when added via dietpi-drive_manager supports UNIX permissions via ntfs-3g driver. sudo chown -R :dietpi /mnt/E449-0ACD; sudo chmod -R g+w /mnt/E449-0ACD should hence work to grant qBittorrent write access. Is that mount option present (grep ‘/mnt/E449-0ACD’ /etc/fstab) and the driver running (htop or pgrep -f ‘ntfs-3g’)?
Thanks guys for all the answers! I made it to work as Joulinar suggested. I had some problems with writing data to ext4 formatted USB flash from Windows, so I opened VM Pop_os and copied files to usb from there. After that once I mounted it to /mnt/usb (it gave me some random UUID by default as a folder name, but I went with “usb”) all files had dietpi as a group, except the folder “lost+found”, but that one is not important to me.
All in all, I didn’t have to type any additional command, but just to format the drive as ext4.
Regarding Windows and ext4. Yes this is not working ootb but there might be a change in future. With Windows10 insider Build 20211 or higher, WSL2 is supporting to mount ext4 directly into explorer.
Great to hear, both, that it’s working now and ext4 Windows Explorer integration. I don’t understand why they did not integrate an ext4 driver natively into the Windows kernel 10 years ago, but better than nothing to have it via WSL .