Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 24410  / 2 Years ago, sat, june 4, 2022, 3:02:13

This has probably been asked before but I have not been able to find it so I'll ask again.
Here's what I did:



sudo dd if=./windows.iso of=/dev/sdb


#sdb is a 64gb USB disk



Afterwards I was unable to add to the disk so I formatted it to NTFS and tried to manually copy the files over at which point I got this error:



enter image description here



I don't think it is a problem with Ubuntu so much as it is a problem with dd, or my ability to use dd, because I have previously had the same problem with dd on both mint and cyanogenmod.


More From » 14.04

 Answers
5

A quick fix (and sort of a hack) to get it out of read only mode, (this will delete the contents of the usb device!!!) is to open "startup disk creator" in ubuntu and choose to erase the device and it will be out of read only mode.




"that worked. but why? how can I do that in terminal?"




I don't know exactly why but it seems to be python related. I'm doing some digging and will report back with any findings.



How to in terminal:



According to this post you can change the read only attribute using hdparm like so (assuming the device is /dev/sdb):



sudo hdparm -r0 /dev/sdb


Then, remount the device. That may involve simply unplugging and plugging the device back in or you could run the following command to remount the device in read/write mode:



sudo mount -o remount,rw /dev/sdb /media/$USER/8E22-6590

[#21915] Monday, June 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oleard

Total Points: 344
Total Questions: 105
Total Answers: 113

Location: Bonaire
Member since Tue, Sep 20, 2022
2 Years ago
;