You are not logged in.
Pages: 1
Topic closed
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
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
If there's not a per-partition trash, then the trash system is just trash.
@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
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
@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
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
@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
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 ), 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]
Last edited by josealb77 (2015-06-03 11:11:34)
Offline
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
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed