← Back to team overview

desktop-packages team mailing list archive

[Bug 1406376] Re: Can't move to trash in data partition

 

I've done a couple of straces of nautilus while attempting to delete
some files. In the cases where it fails deleting a file in the /data
partition, I don't understand why Ubuntu isn't looking for a
/data/.Trash folder and instead trying to move the deleted file to
~/.local/share/Trash which obviously fails.

** Attachment added: "Some strace results"
   https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1406376/+attachment/4308778/+files/straces.log

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/1406376

Title:
  Can't move to trash in data partition

Status in nautilus package in Ubuntu:
  New

Bug description:
  I have a clean install of Ubuntu 14.10.

  I partitioned my disk into / (20GB) and /data (230GB) partitions.
  I then created /data/home/ubuntu, moved my /home there, and bind mounted /home to /data/home/ubuntu.
  I then created symlinks for ~/Downloads, ~/Music, etc... to /data/Downloads, /data/Music, etc...

  Whenever I delete files directly inside ~/  they seem to go to the
  Trash (in ~/.local/share/Trash), but when I try to delete files in
  other folders that are linked to /data (for example ~/Downloads, or
  /data/Downloads) Nautilus says: "File can't be put in the trash. Do
  you want to delete it immediately?".

  To fix it, I attempted to create trash folders with permissions 1700 and chowned to my user in the following places (to no avail!):
   * /data/.Trash-$(id -u)
   * /data/.Trash
   * /.Trash-$(id -u)
   * /.Trash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1406376/+subscriptions