how to change disk permission to read and write in ubuntu 18.04 code example Example: linux external hard drive chmod sudo chmod ugo+wx /media/username/your_drive