# Qbittorrent won't download to mounted USB drive.

**URL:** https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847
**Category:** Troubleshooting
**Created:** [13 January 2021 20:15 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847 "2021-01-13T20:15:47Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![bitpi2](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bitpi2](https://dietpi.com/forum/u/bitpi2)
#### Post date: [13 January 2021 20:15 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/1 "2021-01-13T20:15:47Z")

</div>

Hi guys,

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

```nohighlight
/mnt/dietpi_userdata/downloads/

```

Since microSD card is 16GB only, I’ve mounted USB drive and I see its content at

```nohighlight
/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

```nohighlight
ls -l

```

in that folder, I get

```nohighlight
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.

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [14 January 2021 08:50 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/2 "2021-01-14T08:50:04Z")

</div>

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

```nohighlight
sudo chgrp -R dietpi /mnt/E449-0ACD

```

Then change the owner of the folder to group dietpi

```nohighlight
sudo chmod 2775 /mnt/E449-0ACD

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [14 January 2021 10:24 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/3 "2021-01-14T10:24:43Z")

</div>

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

```nohighlight
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.

---

<div class="post-metadata">

### Author: ![bitpi2](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bitpi2](https://dietpi.com/forum/u/bitpi2)
#### Post date: [14 January 2021 22:33 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/4 "2021-01-14T22:33:16Z")

</div>

> [@](#):
>
> 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
> 
> ```plaintext
> sudo chgrp -R dietpi /mnt/E449-0ACD
> 
> ```
> 
> Then change the owner of the folder to group dietpi
> 
> ```plaintext
> sudo chmod 2775 /mnt/E449-0ACD
> 
> ```

Thanks for answering! I’ve tried the first command and I get:

```plaintext
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?

> [@](#):
>
> 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
> 
> ```plaintext
> 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 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.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [14 January 2021 22:36 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/5 "2021-01-14T22:36:29Z")

</div>

can you share following now ls -la /mnt/E449-0ACD

---

<div class="post-metadata">

### Author: ![bitpi2](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bitpi2](https://dietpi.com/forum/u/bitpi2)
#### Post date: [14 January 2021 23:28 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/6 "2021-01-14T23:28:17Z")

</div>

Sure. Here it is:

> total 32  
> drwxr-xr-x 7 root root 8192 Jan 1 1970 .  
> drwxr-xr-x 7 root root 4096 Jan 13 19:26 …  
> drwxr-xr-x 2 root root 4096 Jan 1 13:18 x  
> drwxr-xr-x 2 root root 4096 Jan 1 16:01 x  
> drwxr-xr-x 2 root root 4096 Jan 1 13:21 x

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [14 January 2021 23:44 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/7 "2021-01-14T23:44:47Z")

</div>

what is the name of the folder you like to download to?

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [15 January 2021 08:38 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/8 "2021-01-15T08:38:08Z")

</div>

> [@](#):
>
> Thanks for answering! I’ve tried the first command and I get:
> 
> Code: Select all
> 
> 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?

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.

---

<div class="post-metadata">

### Author: ![bitpi2](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bitpi2](https://dietpi.com/forum/u/bitpi2)
#### Post date: [15 January 2021 10:00 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/9 "2021-01-15T10:00:20Z")

</div>

> [@](#):
>
> what is the name of the folder you like to download to?

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.

> [@](#):
>
> 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.

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:~#

File system type is NTFS. If I type

```plaintext
root@DietPi:/mnt# ls -l

```

I get:

> drwxr-xr-x 7 root root 8192 Jan 1 1970 E449-0ACD  
> drwxrwxr-x 6 dietpi dietpi 4096 Dec 3 20:19 dietpi\_userdata  
> drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 13:28 ftp\_client  
> drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 13:30 nfs\_client  
> drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 13:30 samba

it confirms it didn’t change the group to dietpi.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [15 January 2021 10:07 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/10 "2021-01-15T10:07:59Z")

</div>

Is there a specific reason for using NTFS? Why not using ext4 as file system format?

---

<div class="post-metadata">

### Author: ![bitpi2](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bitpi2](https://dietpi.com/forum/u/bitpi2)
#### Post date: [15 January 2021 10:28 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/11 "2021-01-15T10:28:31Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [15 January 2021 10:30 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/12 "2021-01-15T10:30:50Z")

</div>

you could use drive manager to have the drive format with ext4

---

<div class="post-metadata">

### Author: ![bitpi2](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bitpi2](https://dietpi.com/forum/u/bitpi2)
#### Post date: [15 January 2021 10:50 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/13 "2021-01-15T10:50:47Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [15 January 2021 10:54 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/14 "2021-01-15T10:54:42Z")

</div>

usually they should work than

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [15 January 2021 17:21 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/15 "2021-01-15T17:21:45Z")

</div>

There might be an alternative way to access the drive without reformatting.  
Edit the fstab entry for the ntfs partition to look like this:

```nohighlight
UUID=XXXXXXXXX /mnt/E449-0ACD ntfs defaults,auto,umask=000 0 0

```

Then unmount the drive and remount.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [15 January 2021 17:24 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/16 "2021-01-15T17:24:19Z")

</div>

But this will be overwritten every time drive manager is used I guess

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [15 January 2021 19:04 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/17 "2021-01-15T19:04:02Z")

</div>

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’)?

---

<div class="post-metadata">

### Author: ![bitpi2](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@bitpi2](https://dietpi.com/forum/u/bitpi2)
#### Post date: [15 January 2021 23:29 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/18 "2021-01-15T23:29:36Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [16 January 2021 01:02 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/19 "2021-01-16T01:02:06Z")

</div>

good that it is working now.

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.

[https://devblogs.microsoft.com/commandline/access-linux-filesystems-in-windows-and-wsl-2/](https://devblogs.microsoft.com/commandline/access-linux-filesystems-in-windows-and-wsl-2/)  
[https://docs.microsoft.com/en-gb/windows/wsl/wsl2-mount-disk](https://docs.microsoft.com/en-gb/windows/wsl/wsl2-mount-disk)

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [16 January 2021 23:44 UTC](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847/20 "2021-01-16T23:44:38Z")

</div>

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 😃.

[Next page](https://dietpi.com/forum/t/qbittorrent-wont-download-to-mounted-usb-drive/4847.md?page=2)
