I was trying to set permissions on all of the files in a removable hard disk. I had tried chown
and chmod
on the disk address (i.e. /dev/sdb) but I still couldn't move files as a user. Then I tried to recursively set permissions and ownership on all files on the disk with
sudo chmod -R 666 /media/jdh/b041de7c-7698-44ae-a387-482ab9e60201/
and
sudo chown -R jdh /media/jdh/b041de7c-7698-44ae-a387-482ab9e60201/
Then when I checked the GUI if found all of the directories contained no files and all of the files were 0 bytes in size. To be sure I checked ran ls
and found all of the files present and of reasonable size.
I don't know how the removable disk is formatted.
What has happened? How can I make the files visible in the GUI again?
cp -rp
– Karov Mar 11 '20 at 12:29