The .Trash-1000 folder cannot be removed

Non release banter
roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

The .Trash-1000 folder cannot be removed

Post#1 by roro » 03 Nov 2022, 21:59

I did some experimenting
Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Then I aborted and deleted several files.
I think this created the .Trash-1000 folder

And now:
The .Trash-1000 folder cannot be removed

Code: Select all

guest@porteus:/mnt/sdb1$ rm -r .Trash-1000/
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\001': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\004': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\005': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\006': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\a': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\b': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\t': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
pre.target.wants/'$'\002''Ç'$'\016': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\017': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/ ╟.⌡τ'$'\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/@'$'\037''.;╖_': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/N1'$'\022\a'')≡HM.úêα': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/;╖_c': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''.'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\001': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\004': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\005': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\006': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\a': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/ ╟.⌡τ'$'\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/@'$'\037''.;╖_': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/N1'$'\022\a'')≡HM.úêα': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/;╖_c': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''.'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\001': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\004': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\005': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\006': Read-only file system
No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\004': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\005': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\006': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/ ╟.⌡τ'$'\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/@'$'\037''.;╖_': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/N1'$'\022\a'')≡HM.úêα': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/;╖_c': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''.'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\001': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\004''Ç'$'\004': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002': No such file or directory
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/'$'\002''Ç'$'\005': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/mnt.t'$'\017\003': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..⌠'$'\017\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..⌠'$'\017\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..'$'\f': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/C'$'\031\001''.tty': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/tty1': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..⌠'$'\017\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..⌠'$'\017\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..⌠'$'\017\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..⌠'$'\017\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..⌠'$'\017\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/graphical-session-pre.target.wants/..⌠'$'\017\002': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/sound.target': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/ssh-agent.service': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/systemd-exit.service': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/systemd-tmpfiles-clean.service': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/systemd-tmpfiles-clean.timer': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/systemd-tmpfiles-setup.service': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/timers.target': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/systemd/user/xdg-desktop-autostart.target': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/tc': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/terminfo': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/tmpfiles.d': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/udev': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib/x86_64-linux-gnu': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib32': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/lib64': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/libexec': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/libx32': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/local': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/sbin': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/share': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/usr/lib/modules/usr/src': Input/output error
rm: cannot remove '.Trash-1000/expunged/215389628/changes/changes.dat': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/initrfs.img': Read-only file system
rm: cannot remove '.Trash-1000/expunged/215389628/vmlinuz': Read-only file system
rm: cannot remove '.Trash-1000/expunged/627789667': Read-only file system
guest@porteus:/mnt/sdb1$ 
And after this action (rm -r .Trash-1000) now the entire boot device sdb1 is read-only,
I can't change anything, I can't remove anything.

Code: Select all

guest@porteus:/mnt/sdb1$ rm test.txt
rm: cannot remove 'test.txt': Read-only file system
guest@porteus:/mnt/sdb1$ rm -r Temp/
rm: cannot remove 'Temp/': Read-only file system
What can I do ?

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The .Trash-1000 folder cannot be removed

Post#2 by Ed_P » 04 Nov 2022, 00:20

In Porteus 5.0's Nemo's file manager, clicking on the Trash entry in the left sidebar yields the option to Empty Trash and it works for me. The folder .Trash-1000 and it's 3 subfolders still exist but the files in it are all gone.

If you reboot does the drive still come up as read-only?
Ed

roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

The .Trash-1000 folder cannot be removed

Post#3 by roro » 04 Nov 2022, 09:27

Hi Ed_P
after the reboot everything is ok again.

I have now done the following:

I moved a small test file to the trash.
After this, everything on sdb1 is read only again.
That means: I'm not allowed to move anything to the trash

Very very strange. totally inexplicable for me as a newbie

I have now emptied the trash
In the .Trah-1000 folder only the two files:

Code: Select all

guest@porteus:/mnt/sdb1/.Trash-1000/expunged$ ls
215389628/  627789667*
Conclusion:
I can't delete the folder .Trash-1000.
The problem then occurs again: everything is read only.

Even if I only open the folder .Trash-1000, everything is immediately read only.

How do I empty the folder now?

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The .Trash-1000 folder cannot be removed

Post#4 by Ed_P » 04 Nov 2022, 15:54

roro wrote:
04 Nov 2022, 09:27
I moved a small test file to the trash.
How did you move the test file? Did you cut & paste it or right click on it and use Nemo's Move to Trash function?
On my hard drive my .Trash folder looks like this:

Code: Select all

guest@porteus:/mnt/nvme0n1p7$ ls -oh .Trash-1000
total 8.0K
drwxrwxrwx 1 guest    0 Nov  3 20:08 expunged/
drwxrwxrwx 1 guest 4.0K Nov  3 20:08 files/
drwxrwxrwx 1 guest 4.0K Nov  3 20:08 info/
guest@porteus:/mnt/nvme0n1p7$ ls -oh .Trash-1000/expunged
total 0
guest@porteus:/mnt/nvme0n1p7$ ls -oh .Trash-1000/files
total 0
guest@porteus:/mnt/nvme0n1p7$ ls -oh .Trash-1000/info
total 0
guest@porteus:/mnt/nvme0n1p7$ 
When I have deleted the folder I've done it when booted to Windows.

Added in 8 minutes 56 seconds:
roro wrote:
04 Nov 2022, 09:27
How do I empty the folder
Ed_P wrote:
04 Nov 2022, 00:20
In Porteus 5.0's Nemo's file manager, clicking on the Trash entry in the left sidebar yields the option to Empty Trash and it works for me.
:)
Ed

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

The .Trash-1000 folder cannot be removed

Post#5 by beny » 05 Nov 2022, 16:50

hi Ed_P for the record you can't remove the .Trash-1000 directory like a file or a package,you don't have this file with the iso but user that have an usb device and remove file from the usb,yes he have one and is hidden you know so why an use have to remove an hidden directory must remove contens not the directory,and the net is your friend.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The .Trash-1000 folder cannot be removed

Post#6 by Ed_P » 05 Nov 2022, 18:22

beny wrote:
05 Nov 2022, 16:50
hi Ed_P for the record you can't remove the .Trash-1000 directory like a file or a package
I agree beny. It is a hidden system file, which the normal user never sees, and which I believe is only created when a user moves a file on the drive to Trash rather than simply deleting the file. It's contents can be removed easily using the file manager's Trash function so space is not an issue. When empty it can be safely deleted using Windows if there's a concern that the owner of the USB drive may see it.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The .Trash-1000 folder cannot be removed

Post#7 by Rava » 07 Nov 2022, 04:27

when you are able to remove all files and sub-folders from .Trash-1000 directory e.g by using windoze) you can try the following

Code: Select all

cd /mnt/partition
where partition is e.g. sdb1
and then when .Trash-1000 directory is empty:

Code: Select all

rmdir .Trash-1000
or when it's not empty

Code: Select all

rm -r .Trash-1000
check if it's gone.
Then create an empty file with

Code: Select all

touch  .Trash-1000
When there is a file the folder cannot be created thus trash on that device is disabled.
When you want to delete a file (as in: move to trash) you get asked if you permanently want to delete the file instead (as in. real delete, not a mere move to trash)

At least in XFCE thunar distinguishes between fake delete (move to trash) and real delete.
The 2nd can be done when using the keyboard command of shift+delete and it results in the following warning window:
Image

When you disable trash by creating the empty file of ".Trash-1000" you will always get the above Warning.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The .Trash-1000 folder cannot be removed

Post#8 by Ed_P » 07 Nov 2022, 19:06

Rava wrote:
07 Nov 2022, 04:27
when you are able to remove all files and sub-folders from .Trash-1000 directory e.g by using windoze)
You can delete the files using Porteus also.
Ed_P wrote:
04 Nov 2022, 00:20
In Porteus 5.0's Nemo's file manager, clicking on the Trash entry in the left sidebar yields the option to Empty Trash
Rava wrote:
07 Nov 2022, 04:27
or when it's not empty

Code: Select all

rm -r .Trash-1000
The user already tried that approach and is not happy with the results.
roro wrote:
03 Nov 2022, 21:59
after this action (rm -r .Trash-1000) now the entire boot device sdb1 is read-only,
Rava wrote:
07 Nov 2022, 04:27
creating the empty file of ".Trash-1000" you will always get the above Warning.
I believe the OP user is looking for a way to not have a .Trash-1000 folder on the drive because someone may see it. I wonder if a Windows' $RECYCLE.BIN and System Volume Information folder on it are also a problem for him.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The .Trash-1000 folder cannot be removed

Post#9 by Rava » 08 Nov 2022, 01:47

Ed_P wrote:
07 Nov 2022, 19:06
I wonder if a Windows' $RECYCLE.BIN and System Volume Information folder on it are also a problem for him.
These are the empty files I create on any USB drive to be on the safe side prior it using on any kind of SM-Windoze:

Code: Select all

$recycle.bin
.Trash-1000
Recycled
Recycler
System Volume Information
If you want to have LOST.DIR as empty file as well is up to you, usually I do create that as empty directory to be on the more safe side.

Added in 1 minute 35 seconds:
And another good thing about the creating empty files approach: these empty files do not take any space on the device since they are empty files. :)

Added in 4 minutes 42 seconds:
roro wrote: after this action (rm -r .Trash-1000) now the entire boot device sdb1 is read-only,
This can happen when some GUI program tries to use the Trash.
therefore I recommend starting porteus in mode 3 (multi user but without starting the DE), log into the virtual console and do the rm of the possible existing folders and creation of the empty files as described above without having the DE loaded.
After that log into a virtual console as user guest and just execute

Code: Select all

startx
thus starting your chosen DE. Image

Since the folders got deleted and replace by empty files prior any DE file manager running (because of the cheatcode "3" aka mode 3) the issue with the device being set to read-only should not happen.
That always worked for me but until very recently my main DE was XFCE 4.12, and now it's XFce 4.16, thus I cannot speak for other DEs since I rarely ever use these, but others e.g. Ed_P can tell how the approach of using empty files works for them and which DE they use.
Cheers!
Yours Rava

roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

The .Trash-1000 folder cannot be removed

Post#10 by roro » 08 Nov 2022, 12:53

Hi all,
Since the entire USB device was read-only after such actions, I tried everything possible to avoid having to reboot every time.

And that's why I came up with the idea of deleting the folder .Trash-1000

But then came the worst case:
Error mounting: cant read superblock on /dev/sdc1
The USB device no longer booted.

I was able to fix this using testdisk

Now:
I do not use the Trash if possible, I delete completely (rm or rm -r)
In the previous versions there was no Trash ?

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The .Trash-1000 folder cannot be removed

Post#11 by Ed_P » 08 Nov 2022, 16:24

roro wrote:
08 Nov 2022, 12:53
I was able to fix this using testdisk
:Yahoo!: :celebrate3:
roro wrote:
08 Nov 2022, 12:53
In the previous versions there was no Trash ?
Correct. Trash is new with 5.0 and works similar to Windows' Recycle.Bin. :)
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The .Trash-1000 folder cannot be removed

Post#12 by Rava » 09 Nov 2022, 00:28

roro, do you happen to have a 2nd USB device to test on?

I am curious if booting into mode 3 (=virtual console) and from the virtual text console deleting the folder via

Code: Select all

rm -r .Trash-1000
and creating the empty files via

Code: Select all

touch '$recycle.bin'  .Trash-1000 Recycled Recycler "System Volume Information" 
and then either log in as guest and start the DE via

Code: Select all

startx
or reboot into normal Porteus mode with auto-starting the GUI.

My idea why i want you to test it via a 2nd USB disk (even when it's a slow and small USB thumbdrive) is to find a stable solution.
Your approach of never simply deleting (= move to trash) but always really deleting works as long as you never forget to not simply press the [delete] key instead of the keys [shift]+[delete], and that can easily happen in the heat of the moment (e.g. you have to leave for a meeting and "just want to delete the one file prior putting the system into suspend [or shut down the system] and leave the house" - and thus you forgot to also press the "shift" key, maybe not tomorrow but in some weeks and then you are probably back to square one … having to rely on testdisk to fix the issue for you, but that should only be a last resort and not a possibility that can happen because you forgot to simply also press [shift]
A corrupted drive is the last thing that should happen so easily. Because data can still be lost even when using testdisk.

Therefore my suggestion of starting in non DE / non GUI mode / mode 3 and delete all possible folders and create the empty files like I suggested.

You need to escape $recycle.bin or else it is seen as a variable not as a file name like in my above [ code ].
Same with "System Volume Information" - without the quotes you get three empty files that are meaningless:
one called "System", one "Volume" and one "Information".

HTH!
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

The .Trash-1000 folder cannot be removed

Post#13 by Ed_P » 09 Nov 2022, 02:59

Rava wrote:
09 Nov 2022, 00:28
roro, do you happen to have a 2nd USB device to test on?
You don't have an extra one? :o
Ed

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

The .Trash-1000 folder cannot be removed

Post#14 by beny » 09 Nov 2022, 11:04

hi Rava you have to change directory before rm ,you can't remove the hidden directory the .trash-100 or 0 is an usual step to usb devices, you can't have into hard disk because the usb hold removed files until the user can use it again and because is hidden you have to have root account to see it,and fat 32 don't help with this task,ok but the user can do what he want..... a work for gparted

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

The .Trash-1000 folder cannot be removed

Post#15 by Rava » 09 Nov 2022, 12:34

Ed_P wrote:
09 Nov 2022, 02:59
You don't have an extra one? :o
Maybe you can borrow one?

@beny
these are the files and folders I copy to each new USB partition on any new USB device be it an external harddrive or a simple USB thumbdrive:

Code: Select all

guest@porteus:/tmp/extUSB_NEU$ ls -l1p
total 0
-rw-r--r-- 1 guest users  0 2010-09-23 06:50 $recycle.bin
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 Android/
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 DCIM/
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 LOST.DIR/
-rw-r--r-- 1 guest users  0 2006-12-21 16:39 Recycled
-rw-r--r-- 1 guest users  0 2012-08-30 08:14 Recycler
-rw-r--r-- 1 guest users  0 2012-08-30 08:14 System\ Volume\ Information
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 Xxx.move/
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 ebook/
-rw-r--r-- 1 guest users  0 2006-12-21 16:39 extUSB_FlashDiscAA
-rw-r--r-- 1 guest users  0 2006-12-21 16:39 extUSB_FlashDiscAA_description
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 grafik/
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 map/
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 sound/
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 tmp/
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 video/
drwxr-xr-x 2 guest users 40 2019-04-01 07:38 welt/
As you can see, I enable Android writing its stuff on the device and also enabling LOST.DIR/ - but disable other stuff like Linux or Windoze thrash since I do not want or need that on an external USB device.


The two entries extUSB_FlashDisc* are meant for my lsfind suite, and are meant to e.g. look like so:

Code: Select all

guest@porteus:/tmp/extUSB_NEU$ ls -1 /mnt/sde1/extUSB_FlashDisc18*
/mnt/sde1/extUSB_FlashDisc18
/mnt/sde1/extUSB_FlashDisc18_Hama_Silver_16GB
for my 18th USB FlashDisc…
Cheers!
Yours Rava

Post Reply