Qbittorrent won't download to mounted USB drive.

Aside of insufficient voltage/power, the file system or partition table could be corrupted for other reasons. Generally the following command shows all kernel errors which might help to narrow it down:

dmesg -l emerg,alert,crit,err

Thank you. Had the same issue. Running DietPi on USB stick. and only wanted torrent and plex on it. So do not care if it breaks.
Those 2 commands let me download torrents dirrectly in the LVM created for plex.

Hello, thanks for all the help, I want to know if this commands affect only the root of the drive or also all the folders in it?

Which command you mean exactly?

The -R means recursively, so all subdirectories too.

Im sorry, havent seen ur response I wanted to understand what all those commands do to set up my Qbittorrent, finally I end up asking ChatGPT about those commands and manage to configure my Dietpi server :), ur guidance on this setup lead me to the necesarry commands thanks :), I paste the ChatGPT info obtained


1. sudo chgrp -R dietpi /mnt/E449-0ACD

  • Changes the group ownership of the /mnt/E449-0ACD directory (and all its contents due to the -R option, which means “recursively”) to the group named dietpi.
  • sudo: Allows the command to be executed with superuser privileges.
  • chgrp: Changes the group ownership of a file or directory.

2. sudo chmod 2775 /mnt/E449-0ACD

  • Changes the permissions of the /mnt/E449-0ACD directory:
    • 2: Activates the setgid (Set Group ID) bit, meaning that new files and folders created inside /mnt/E449-0ACD will inherit the group ownership of the parent directory (dietpi in this case).
    • 775: Defines the permissions:
      • 7 (rwx): Owner has read, write, and execute permissions.
      • 7 (rwx): Group has read, write, and execute permissions.
      • 5 (r-x): Others have read and execute permissions, but not write.

3. chown -R qbittorrent:dietpi /mnt/torrent

  • Changes the ownership of the /mnt/torrent directory (and all its contents due to the -R) to the user qbittorrent and the group dietpi:
    • qbittorrent: New owner (user).
    • dietpi: New group owner.

4. chmod -R 775 /mnt/torrent

  • Changes the permissions of the /mnt/torrent directory (and all its contents, due to -R) to 775:
    • 7 (rwx): Owner can read, write, and execute.
    • 7 (rwx): Group can read, write, and execute.
    • 5 (r-x): Others can read and execute, but not write.

In summary:

  1. The first two commands configure the /mnt/E449-0ACD directory to belong to the dietpi group, ensure new files inherit the group, and set appropriate permissions.

  2. The last two commands make the /mnt/torrent directory owned by the qbittorrent user and dietpi group, with permissions that allow full access for the owner and the group.