Author Topic: can't move to trash  (Read 2788 times)

Maroman

  • Guest
can't move to trash
« on: July 10, 2014, 06:35:39 AM »
trying to delete file there is always question to confirm the operation
Quote
Do you want to move the selected files to trash can?
but if the file is on external drive or other mounted partition the next after yes is as follows
Quote
Some files cannot be moved to trash can because the underlying file systems don't support this operation.
Do you want to delete them instead?
for yes answer the file is permanently deleted. how to move files to trash can instead?

cheers,

blaze

  • wattOS Veteran
  • Sr. Member
  • ****
  • Posts: 441
  • blazing away
    • View Profile
Re: can't move to trash
« Reply #1 on: July 10, 2014, 04:10:31 PM »
Can you drag and drop them to your trash can? Or maybe copy them to your trash and then delete them on your external drive?
How To Ask Questions The Smart Way; http://www.catb.org/~esr/faqs/smart-questions.html

... and when SOLVED, please edit thread title in first post! :)

Maroman

  • Guest
Re: can't move to trash
« Reply #2 on: July 10, 2014, 07:31:14 PM »
standard procedure to delete a file (in file manager, not in terminal) is just right click and delete command. if I try to copy to trash there is a warning
Quote
Operation not supported by backend
of course we are talking about files located at mounted volume (in my case flash disk or fstab-mounted partition). there is no problem with files located in home directory or somewhere else (as a root if needed).

cheers,

Cadejo

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: can't move to trash
« Reply #3 on: July 20, 2014, 11:42:17 AM »
This is starting to feel like permissions, can you mount your disk and then

Can you show the output of the following in rxvt...

1. cat /etc/fstab
2. mount

after going into a directory that you mounted can you go in a directory and type.
ls -la

This is to look at permissions.

On the first comment, my conclusion is that the disk is mounted via FAT or another file system and cannot cross into the trash bin which is ext.  Alternatively, if you're scared you're going to make a mistake and delete the wrong file, do a backup before hand so you can restore after any deletion errors, etc...


« Last Edit: July 20, 2014, 03:47:04 PM by Cadejo »

Maroman

  • Guest
Re: can't move to trash
« Reply #4 on: July 20, 2014, 08:12:08 PM »
here you are
Code: [Select]
maroman@asuma:/media$ cat /etc/fstab
#### Static Filesystem Table File
proc /proc proc defaults 0 0
# /dev/sda1
UUID=5e680314-92c5-4e2d-9685-6c141f469ae7 swap swap sw 0 0
# /dev/sda2
UUID=772e766f-bbb0-44c6-9058-4a0ea79dbecd / ext4 rw,errors=remount-ro 0 1
# [depot] /dev/sda4
/dev/sda4    /media/depot    ext4    defaults,users,auto     0    0
maroman@asuma:/media$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=454367,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=365100k,mode=755)
/dev/disk/by-uuid/772e766f-bbb0-44c6-9058-4a0ea79dbecd on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=958740k)
/dev/sda4 on /media/depot type ext4 (rw,nosuid,nodev,noexec,relatime,data=ordered)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/mmcblk0p1 on /media/FLASH_128 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=utf8,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks)
maroman@asuma:/media$ ls -la
total 22
drwxr-xr-x  6 root    root    4096 Jul 20 21:56 .
drwxr-xr-x 23 root    root    4096 Jul 19 12:37 ..
lrwxrwxrwx  1 root    root       6 Jul  8 08:41 cdrom -> cdrom0
drwxr-xr-x  2 root    root    4096 Jul  8 08:41 cdrom0
drwxr-xr-x 14 maroman maroman 4096 Jul 12 15:12 depot
drwx------  7 maroman maroman 2048 Jan  1  1970 FLASH_128
lrwxrwxrwx  1 root    root       4 Jul  8 08:41 usb -> usb0
drwxr-xr-x  2 root    root    4096 Jul  8 08:41 usb0
maroman@asuma:/media$
It's strange because always I mount my extra partition in this same way. No problems with mate, always with openbox/lxde

cheers,

Cadejo

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: can't move to trash
« Reply #5 on: July 21, 2014, 01:14:54 PM »
okay, your mounts look good. 

This pushed me to look at PCMANFM and scrubbed the Internet and I found many, many, forums pointing to this issue in Ubuntu, Arch, Gentoo, etc...

So I suspected it was a bug and found this...

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588050

It looks to be the exact same issue you're running into.  There's a fix there, can you try it out and report back?

Maroman

  • Guest
Re: can't move to trash
« Reply #6 on: July 21, 2014, 01:36:20 PM »
thnx a lot. maybe it's really problem only with pcmanfm? to some extend my bug is a little more general. I can't move deleted files both from fat (flash drive) and ext4 (fstab mounted) partition. I've checked for spacefm and tuxcmd. In both cases files were permanently deleted without any warning (but maybe it's normal).

cheers,