Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$ ls -l
ls: cannot access 'lock': No such file or directory
total 0
?????????? ? ? ? ? ? lock
Is this a half way made symbolic link to something? I can't be certain, but I had a large syncthing transfer going on and I decided to move some data out of the directory being sync'd to make the transfer go faster and be smaller. I believe this directory was in the directory I was moving.
I can't seem to figure out how to delete this thing.
That looks like a file corruption in the directory structure.
Have you tried booting to live media and running fsck on the installed file systems to see if it can be fixed.
Please take this to heart and do not ever interrupt, delete files, or change directory structures when a file transfer is in progress. The transfer process often creates a temporary list of files being copied / moved / transferred before it starts then walks that list to perform the transfer. If things get shifted while it is in progress bad things can happen to your file system.
That looks like a file corruption in the directory structure.
Have you tried booting to live media and running fsck on the installed file systems to see if it can be fixed.
Please take this to heart and do not ever interrupt, delete files, or change directory structures when a file transfer is in progress. The transfer process often creates a temporary list of files being copied / moved / transferred before it starts then walks that list to perform the transfer. If things get shifted while it is in progress bad things can happen to your file system.
Yup, lesson learned. Not even linux can protect me from myself.
Any live distro you suggest? Something small and quick to boot?
... it indicates that some parent directory is readable (i.e. 'r') but not traversable (i.e. no 'x') by user. The user can read the directory listing which includes the filename, but cannot enter the directory to read the file stats.
Your example includes a leading '?' and I am uncertain what that might mean, but I would suggest looking at the path leading to that file and make sure each directory is traversable. Fixing that would probably fix your ability to alter or delete the lock.
Last edited by astrogeek; 05-04-2022 at 08:33 PM.
Reason: the -> some
... it indicates that the parent directory is readable (i.e. 'r') but not traversable (i.e. no 'x') by user. The user can read the directory listing which includes the filename, but cannot enter the directory to read the file stats.
Your example includes a leading '?' and I am uncertain what that might mean, but I would suggest looking at the path leading to that file and make sure each directory is traversable. Fixing that would probably fix your ability to alter or delete the lock.
So chmod +x on the parent? It's already set to 777.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.