View previous topic :: View next topic |
Author |
Message |
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 736
|
Posted: Fri May 03, 2024 11:16 pm Post subject: How delete corrupt direcotry in tmpfs filesystem |
|
|
Other than rebooting or unmount /remount the tmpfs, how do I delete a corrupt directory in a tmpfs file system?
I have tried the suggestions here: https://superuser.com/questions/197605/delete-a-corrupt-file-in-linux
I seem to have a similar issue.
Code: | # ls -l
ls: cannot access 'doc': Permission denied
total 0
d????????? ? ? ? ? ? doc |
One suggestion was to get the inode number and then delete the file(directory) with that inode. But I can't get the inode:
Code: | # ls -i
ls: cannot access 'doc': Permission denied
? doc |
Also:
Code: | # lsattr
./doc: Permission denied |
Rebooting will fix this. However any suggestions for fixing/deleting the corrupt directory without a reboot or unmount of the tmpfs? |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Fri May 03, 2024 11:41 pm Post subject: |
|
|
Were you perhaps using one of the xdg portals?
if so make sure none of these are running
xdg-document-portal xdg-desktop-portal xdg-permission-store
and then umount -q /tmp/doc (mount -v should show what's mounted/holding it) _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3178
|
Posted: Fri May 03, 2024 11:43 pm Post subject: |
|
|
Quote: | # ls -l
ls: cannot access 'doc': Permission denied
total 0
d????????? ? ? ? ? ? doc |
I think I've seen something like that before; I don't remember exact condition which disabled stat, but check your permissions on its parent directory. _________________ Make Computing Fun Again |
|
Back to top |
|
|
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 736
|
Posted: Fri May 03, 2024 11:58 pm Post subject: |
|
|
Anon-E-moose:
Thank you. That filxed the issue. Now I need to see what caused that xdg portal thing. (Starting with learning about xdg portals) |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Sat May 04, 2024 9:54 am Post subject: |
|
|
xdg portal is used for screen sharing typically.
Depending on which wm/compositor you use it may be triggered off in a config file
or pipewire/wireplumber might start it something thinks screen sharing is being used. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 736
|
Posted: Sat May 04, 2024 4:00 pm Post subject: |
|
|
I have found many applications that use xdg portal. Almost all do not cause issues. Next time I run into my original issue, I'll start with a 'df -a' which does show those portal filesystem mounts..
I did notice that if I want to switch users and use pipewire/wire plumber, the most reliable way was to kill the current user's usage (killall pipewire) then log in as the other user and run gentoo-pipewire-launcher. I could never get 'su - <other user>' to work when pipewire was involved for audio. |
|
Back to top |
|
|
|