If you have your pen drive is giving read-only error then they please try the following software to format your drive.Format Tool