Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How delete corrupt direcotry in tmpfs filesystem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 736

PostPosted: Fri May 03, 2024 11:16 pm    Post subject: How delete corrupt direcotry in tmpfs filesystem Reply with quote

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Fri May 03, 2024 11:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3165

PostPosted: Fri May 03, 2024 11:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 736

PostPosted: Fri May 03, 2024 11:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Sat May 04, 2024 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 736

PostPosted: Sat May 04, 2024 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum