Permissions

Desertsquid081

New Member
Credits
105
I'm having troubles tdeleting directories. When I try to delete a directory from either the CL or with the GUI, I get this error msg: rm: cannot remove 'Ancestry info': Is a directory. In all the tutorials I've seen, the rmdir cmd should delete the directory. Thanks, DAve
 


Alexzee

Well-Known Member
Credits
9,213

Desertsquid081

New Member
Credits
105
So I tried deleting the files in the directory. I'm getting this error msg:
Error when getting information for file “/media/calamar1737/USB20FD/From 6061-DAD6copy/most recently used 20210805//╩3₧;Üká.æwæ”: Input/output error.
They are mostly text files. I use Libre Office.
 

dcbrown73

Well-Known Member
Credits
3,042
It's possible that file is still open. Are there any applications open that might have one of the files open?

If not, you may try and reboot then delete it just in case the kernel never released the file descriptor.

Finally, it's showing binary in the error which suggests more than just a text file. Hopefully nothing nefarious.

What filesystem is it? It looks like USB, so I suspect some form of FAT or NTFS? Or is it formatted in a common Linux fs?

I would also try to validate that it is a single file preventing the deletion and not all files or folder suffering from the issue.
 

Lord Boltar

Well-Known Member
Credits
5,973
I'm having troubles tdeleting directories. When I try to delete a directory from either the CL or with the GUI, I get this error msg: rm: cannot remove 'Ancestry info': Is a directory. In all the tutorials I've seen, the rmdir cmd should delete the directory. Thanks, DAve
Try it with sudo
Code:
sudo rm-rf directoryname
 

Desertsquid081

New Member
Credits
105
It's possible that file is still open. Are there any applications open that might have one of the files open?

If not, you may try and reboot then delete it just in case the kernel never released the file descriptor.

Finally, it's showing binary in the error which suggests more than just a text file. Hopefully nothing nefarious.

What filesystem is it? It looks like USB, so I suspect some form of FAT or NTFS? Or is it formatted in a common Linux fs?

I would also try to validate that it is a single file preventing the deletion and not all files or folder suffering from the issue.
14, member: 122561"]
It's possible that file is still open. Are there any applications open that might have one of the files open?

If not, you may try and reboot then delete it just in case the kernel never released the file descriptor.

Finally, it's showing binary in the error which suggests more than just a text file. Hopefully nothing nefarious.

What filesystem is it? It looks like USB, so I suspect some form of FAT or NTFS? Or is it formatted in a common Linux fs?

I would also try to validate that it is a single file preventing the deletion and not all files or folder suffering from the issue.
[/QUOTE]
It's possible that file is still open. Are there any applications open that might have one of the files open?

If not, you may try and reboot then delete it just in case the kernel never released the file descriptor.

Finally, it's showing binary in the error which suggests more than just a text file. Hopefully nothing nefarious.

What filesystem is it? It looks like USB, so I suspect some form of FAT or NTFS? Or is it formatted in a common Linux fs?

I would also try to validate that it is a single file preventing the deletion and not all files or folder suffering from the issue.
I must admit that I don't really know how to find the info on the file system.
I am using several USB ports along with the computer Documents file to save libre office calc spread sheets that I update on a daily basis. Last week was the first signs of trouble. I started having problems copying directories. I problem I haven't experienced before. At first I thought it might be the USB memory stick so I employed an external hardrive and a new USB memory stick.
I use the memory stick because I am using multiple computers.
 

Desertsquid081

New Member
Credits
105
I must admit that I don't really know how to find the info on the file system.
I am using several USB ports along with the computer Documents file to save libre office calc spread sheets that I update on a daily basis. Last week was the first signs of trouble. I started having problems copying directories. I problem I haven't experienced before. At first I thought it might be the USB memory stick so I employed an external hardrive and a new USB memory stick.
I use the memory stick because I am using multiple computers.
 

Fanboi

Active Member
Credits
3,598
So I tried deleting the files in the directory. I'm getting this error msg:
Error when getting information for file “/media/calamar1737/USB20FD/From 6061-DAD6copy/most recently used 20210805//╩3₧;Üká.æwæ”: Input/output error.
They are mostly text files. I use Libre Office.
There maybe subdirs in that dir. Also, as @KGIII pointed out, that's a weird filename string. Notice the //? Usually *nix ignores // in paths, but if that is the file name's first char... Anyway, atomic bomb it:
- sudo -i
- cd to the directory.
- paste and run: for iiFile in *; do rm -r "$iiFile"; done
- ls -al to make sure it's empty. If so, you can remove the directory
 

Desertsquid081

New Member
Credits
105
So there is something going on with the way the file structure. I don't know what it is. If I try and change permissions from the properties page, it rejects it. Everything is labeled as read only. I'm not sure how to proceed. Could this be a Libreoffice problem?
 

Fanboi

Active Member
Credits
3,598
Did you run:
for iiFile in *; do rm -r "$iiFile"; done
as root in that directory? If so, what was the output?

Change permissions:
chmod -R a+rw <path/to/dir/>
as root.

If that doesn't work, cd into the directory and run:
for iiFile in *; do chmod a+rw "$iiFile"; done
and post that output.

It's not a Libre Office thing. It's a filesystem problem. FS error, device error, resource lock error, permissions, and so on. Technically, LO just requested the file be created (if LO created it). The FS code actually creates the file and handles the lower level stuff. There are plenty middle men involved, but that's the gist.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top