how to get write access to a file system in ubuntu code example Example: linux external hard drive chmod sudo chmod ugo+wx /media/username/your_drive