Results 1 to 5 of 5

Thread: Change default mount options for external drives to make trash work on external drives

  1. #1

    Default Change default mount options for external drives to make trash work on external drives

    Is it somehow possible to change the mount options used when mounting an external drive via KDE device notifier?

    Actually the problem is, that on external drives no .Trash-1000 folder is created, thus all delete to trash operations result in copying the files to the home partition Trash folder, which is quite odd. However, if I mount the drive manually with umask=077, the folder is created and delete to trash works as expected, i.e. it moves the file to trash folder on the same drive.

    I would also file a bug, but not sure which component is affected, and also whether it is openSUSE specific, or it is a KDE problem.

    My system is Tumbleweed, Plasma 5.8.5, Frameworks 5.29.0.

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,382
    Blog Entries
    1

    Default Re: Change default mount options for external drives to make trash work on external drives

    Whether one sees this as a feature or bug depends on personal preferences. I hardly pay attention to trash, but I'd rather not have trash stored on removable media. Centralized trash is good IMHO. That said I copied the ~/.local/share/Trash folder across to a memory stick and renamed the directory to .Trash-1000. I then proceed to trash some files. They ended up in both trash locations.

    A long-running bug report
    https://bugs.kde.org/show_bug.cgi?id=76380

    One of many similar discussions that can be found on the topic
    https://www.reddit.com/r/kde/comment..._the_trash_is/

    FreeDesktop Specs...
    https://specifications.freedesktop.o...hspec-0.8.html

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,382
    Blog Entries
    1

    Default Re: Change default mount options for external drives to make trash work on external drives

    Actually the problem is, that on external drives no .Trash-1000 folder is created, thus all delete to trash operations result in copying the files to the home partition Trash folder, which is quite odd. However, if I mount the drive manually with umask=077, the folder is created and delete to trash works as expected, i.e. it moves the file to trash folder on the same drive.
    If the udisks/DE mounting is used then this is mounted with 'uid=1000,gid=100,fmask=0022,dmask=0022'. To achieve anything else, you'd need to mount manually with mount or an entry in /etc/fstab.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,150

    Default Re: Change default mount options for external drives to make trash work on external drives

    Quote Originally Posted by deano_ferrari View Post
    If the udisks/DE mounting is used then this is mounted with 'uid=1000,gid=100,fmask=0022,dmask=0022'. To achieve anything else, you'd need to mount manually with mount or an entry in /etc/fstab.
    Doesn't the uid and the gid there depend upon who is the owner of the session?
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,382
    Blog Entries
    1

    Default Re: Change default mount options for external drives to make trash work on external drives

    Quote Originally Posted by hcvv View Post
    Doesn't the uid and the gid there depend upon who is the owner of the session?
    Yes, I was assuming default first/only user.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •