Choose style:

Author Topic: Moving files on ntfs partition to linux trash  (Read 2167 times)

0 Members and 1 Guest are viewing this topic.

Offline xanadu

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 6
Moving files on ntfs partition to linux trash
« on: May 03, 2014, 08:22:16 pm »
This is an issue that's been bugging me for a while. I am unable to move items from my my ntfs partitions (windows partition, as well as an ntfs-formatted external drive) to trash. PCManFM only gives me the option of permanently deleting them, which I don't like, it gives me no room for user errors. I did quite a few google searches and the best thing I came up with is that the files on ntfs partitions can't be moved to trash because they don't have the same ownership as the trash folder.

Trash and the associated folders are owned by my user:
Code: [Select]
andy@andy-Peppermint ~ $ ls -al ~/.local/share/Trash/
total 36
drwx------  5 andy andy  4096 Mar 25 16:29 .
drwxr-xr-x 22 andy andy  4096 May  3 19:58 ..
drwx------  4 andy andy  4096 May  2 16:22 expunged
drwx------  9 andy andy 12288 May  3 03:56 files
drwx------  2 andy andy 12288 May  3 03:56 info

Likewise, I modified the entries in fstab to have the files on the ntfs partitions mounted as my user:
Code: [Select]
UUID=90A68A41A68A2834 /media/windows ntfs-3g  defaults,noexec,windows_names,locale=en_US.utf8,uid=1000  0  0

UUID=FA42DAAB42DA6BBF /media/external/ ntfs-3g  defaults,noexec,windows_names,locale=en_US.utf8,uid=1000  0  0
I got uid=1000 from
Code: [Select]
cat /etc/groups/
Is it possible to accomplish this, or is it some inherent limitation of mounting ntfs partitions in linux? I'm wondering if I am just missing something from my fstab entries.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26468
  • Karma: 2864
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Moving files on ntfs partition to linux trash
« Reply #1 on: May 04, 2014, 07:25:17 am »
Linux doesn't move files on Windows partitions to the Linux trash folder.

it creates a hidden  ".Trash-1000" file in the root of the mount ..

so look for hidden
/media/windows/.Trash-1000
and
/media/external/.Trash-1000
folders .. or similar.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline xanadu

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 6
Re: Moving files on ntfs partition to linux trash
« Reply #2 on: May 04, 2014, 02:30:33 pm »
That's what I thought, too. Those locations exist but are empty (they have two folders inside, "files" and "info", both empty). I take it that when I delete the files from an ntfs partition they will be permanently deleted with no easy means of recovery, and that seems to be what is happening.

Is this really a limitation of ntfs on Linux or is a way to mount an ntfs partition that allows me to actually trash deleted items?
« Last Edit: May 04, 2014, 02:32:28 pm by xanadu »