Hi, when I copy a folder which has text files in it, when I remove the USB drive and put the USB drive in another computer (both PCs are running EndeavourOS), as soon as I mount it, the computer deletes the contents inside the text files.
I have tried changing the partition of the USB drive, I have removed the USB drive safely etc. I am not too sure why this keeps happening?
Never experienced something like this…
Since you’ve already experimented with partitions, as a preliminary guess, I would suspect there is some foreign/unwanted script running.
One thing I’ll request you to do is to boot into a live iso on the second PC. Copy files on USB using first computer. Then try mounting the USB on to the second computer via the live iso. If the files are accessible and contents visible then you could confirm that the problem is not with the usb, but rather with the configuration on the PC.
I’m unaware of the feature you mention. What is it exactly called on windows? I’ve used Windows most of my eighteen years so maybe I’ll remember if you tell the exact name of the feature you’re referring to.
Another possibility could be that there is an active filter in your file manager which only prevents the files from being shown. In your description of the problem I read that this only happens with .txt files.
Did you try a ls -al with that stick?
@unix_lover, what filesystem is on the USB drive? If it is any “linuxy” system like Ext4 there may be a problem that copied files retain their permission. So user id=1000 on one computer may be a different user on the other computer and therefore the files will have problem with access. Better to switch to FAT32 which doesn’t retain permission information (there are other issues but it depends on your usage if it is a real issue).
Also, is it possible that the text files you copied are in fact symbolik links? Check the original directory with ls -halF and it will show redirection -> if it is only a link.
Most logic explanation is that you did an update of a critical library (for example libc) but the application (for example Thunar file manager) was still using function calls from the previous version of the library because it was unavare that the library changed.
All that is necessary is re-lauch the application so it properly loads all necessary libraries.
Anyway its just a wild guess.