You are not logged in.

#1 2014-04-01 17:11:43

josealb77
Member
Registered: 2013-06-23
Posts: 89

[SOLVED] Can't move files to trash in my ext-4 partition

Hi,
I know that it must have a silly solution but I cannot make it work. I've searched in the forum but I haven't found exactly the same issue.
My HDD has an ext-4 partition for /, a swap partition and another ext-4 partition called "Archivos" for my files (not home, home is just as a folder in / ).

I can make files and folders in the Archivos partition but when I try to move them to the trash in pcmanfm it says that files can't be moved to trash and if do I want to erase them instead.

At boot time the Archivos partition is mounted in fstab with these options:

UUID=bb8eb4ea-5b9c-4275-bad3-f64bcf581e1d	/run/media/vane/Archivos	ext4		rw,relatime		0 2

I've tried to add uid=1000 (my user id) after rw,relatime but I get a message at booting that says "uid=1000 option is not recognized" and stops booting.

What can I do in order to get the trash can work in the Archivos ext-4 partition?

Last edited by josealb77 (2015-06-03 11:08:18)

Offline

#2 2014-04-01 17:31:37

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: [SOLVED] Can't move files to trash in my ext-4 partition

I doubt that this is a permissions issue. When you move something to trash (or anywhere as a matter of fact) the filesystem does not move the actual files (no data are moved to different blocks) but the blocks on the hard drive just point to a different file name. However this only happens within the same partition. If a "move" crosses partitions the actual blocks must be copied over to the target partition before removing the original data. Since trash is residing on a different partition (~/.local/share/Trash) than your actual data gvfs (the low level subsystem of pcmanfm, nautilus, nemo, whatever that deals with files) does not move the data to trash since moving them would actually require to copy them over first. So, if you are "trashing" a whole lot of data it would take quite a while to actually move them (read: copy them) to trash which is futile.

Now, there might be a way to have a per partition trash but I am not entirely sure if/how this is possible at least without some exotic setup (union mounts maybe?).

Last edited by Foucault (2014-04-01 17:35:07)

Offline

#3 2014-04-01 17:35:22

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Can't move files to trash in my ext-4 partition

If there's not a per-partition trash, then the trash system is just trash. tongue

@josealb77

Is trash working properly for your ~ ? Maybe you just don't have the necessary packages installed.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2014-04-01 17:39:33

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: [SOLVED] Can't move files to trash in my ext-4 partition

Well, that is actually easier than I expected. Create a .Trash-XXXX (mind the dot) where XXXX your uid (use id to find it) in the root of the mounted ext4 partition (/run/media/vane/Archivos) and chown it to your user. If your uid is 1000 create a .Trash-1000 folder. You should be able to access the deleted files from the "regular" trash. It worked for me.

Last edited by Foucault (2014-04-01 17:42:56)

Offline

#5 2014-04-01 17:58:44

josealb77
Member
Registered: 2013-06-23
Posts: 89

Re: [SOLVED] Can't move files to trash in my ext-4 partition

@alphaniner
In my home directory works well

@ Focault
I've tried to create the .Trash-1000 folder but I get the same error. That folder has the permissions this way (ls -la):

drwxr-xr-x 2 vane users  4096 abr  1 19:53 .Trash-1000 

Offline

#6 2014-04-01 18:23:21

josealb77
Member
Registered: 2013-06-23
Posts: 89

Re: [SOLVED] Can't move files to trash in my ext-4 partition

Happens the same plugging USB pendrives. I don't know if both issues are related but in both cases I can create files and folders, it says that these created files are mine (user vane and group users), and I can erase them but not move them to the trash can. USB pendrives are automounted.

Offline

#7 2015-06-03 09:24:34

bpont
Banned
Registered: 2010-03-24
Posts: 161

Re: [SOLVED] Can't move files to trash in my ext-4 partition

josealb77 wrote:

@alphaniner
In my home directory works well

@ Focault
I've tried to create the .Trash-1000 folder but I get the same error. That folder has the permissions this way (ls -la):

drwxr-xr-x 2 vane users  4096 abr  1 19:53 .Trash-1000 

I found this (old) thread because I was having a similar problem, but with a btrfs partition.  I followed Foucault's advice on post #4, but it didn't work initially.  Then I went into the options for PCManFM and unchecked the "Erase files on removable media instead of trash can creation" and that did the trick.  If the same solution works for you, consider marking this thread as solved.

Offline

#8 2015-06-03 11:07:59

josealb77
Member
Registered: 2013-06-23
Posts: 89

Re: [SOLVED] Can't move files to trash in my ext-4 partition

bpont wrote:

I found this (old) thread because I was having a similar problem, but with a btrfs partition.  I followed Foucault's advice on post #4, but it didn't work initially.  Then I went into the options for PCManFM and unchecked the "Erase files on removable media instead of trash can creation" and that did the trick.  If the same solution works for you, consider marking this thread as solved.

Maaaaaaannnn (or woman, I don't know tongue), hahaha! What a silly solution!!! And I got it right first time. I can't believe that this could have a solution as easy as this one. In fact this should not impress me too much since the first sentence I wrote in this thread was "I know that it must have a silly solution but..." hahaha.
Since it's not the computer I use to use I already forgot about this after such a long time. Just tried and worked perfectly.

Thaaaaaaank you bpont!!! [SOLVED] tongue

Last edited by josealb77 (2015-06-03 11:11:34)

Offline

#9 2016-11-09 14:35:53

ttoirrah
Member
Registered: 2015-01-29
Posts: 27

Re: [SOLVED] Can't move files to trash in my ext-4 partition

Wow! PCManFM's message,

Some files cannot be moved to the rubbish bin because the underlying file systems don’t support this operation.
Do you want to delete them instead?

- sent me too digging into my .Trash-1000 folder on a removable FAT32 drive. Fixed as per bpont's advice, thanks.

Offline

#10 2016-11-09 15:17:25

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,011
Website

Re: [SOLVED] Can't move files to trash in my ext-4 partition

Please let old threads rest in peace.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB