It seems that I did something unbelievably stupid in an attempt to access files in an external drive containing data. The drive had previously been used on another system and contains about 3.5TB of data. I connected to the system and was able to read data, however I was not able to write to the drive. I followed someone’s advice to use the command:
sudo chmod -R 666 /run/media/alex/Data-Drive
This executed okay, but now shows the drive as empty; zero files and zero directories. It still shows the drive as containing 3.5TB of data though. Did I mess this up permanently?
Consider first what we discussed before; since your username is alex, use:
sudo chown -R alex:alex /media/GiveAName
However, you can use the command below If you want to share the drive with other users while still being able to have your own private files and dirs.
sudo chmod 770 /media/GiveAName
And you can use the command below to change the ownership of all existing files and sub-directories below that path. Any user will be able to read and write the files, so treat this as your last attempt.
Without “exec” permissions, directories cannot be traversed. Not sure why the suggestion was to use “666” when “777” would have been preferable. Besides, it was likely an ownership that didn’t match your current user; not simply the “permission” bits.
Sorry for the spotty replies. Been busy with a number of other things and get back to it when an opportunity arises. I did apply the EXEC permissions recursively, and that did indeed resolve the problem. I can now fully access the files.
On a side note, I have just come across a similar problem with KiCad. I have a project drive installed in the computer for a good many years, and several distributions of Linux. I have a directory that stores my internal KiCad libraries. This is my first installation of Manjaro from about 2 months ago, and I reference files on this project drive. I launched KiCad in Manjaro for the first time today, and when displaying the 3D view of the PCB, no components were displayed on the board. This board was designed about 2 years earlier on Mint Cinnamon. When I checked the 3D model (.step files) references, I found that they reference:
and the model displays properly in both the footprint editor, and the PCB 3D viewer. I have 100-200 components in the library and would prefer not to modify each one manually, though that would not be the end of the world. Is there a way of doing this globally that would not cause other problems?
Well, I am glad you can access your drive once again. You can just change the mount point to match what is on your models. Now you know how to proceed. Unmount, edit the mount point, and mount it again.