I started copying some files to a USB flash drive on Ubuntu. I was in rush, while the writing process is still running I unplugged the USB flash.
When I opened it on windows, the files I was trying to copy were missing and the drive was marked as read-only file system. I tried many option to format it but nothing worked.
I plugged into Ubuntu and tried to format it using the "Format Volume" command in "Files". I got the following error message.
Error wiping device: Failed to open the device'/dev/sdc1' (udisks-error-quark, 0)
I made a wide research with this error message, I tried many options:
As you can see, this didn't solve the problem.
As you can see in the picture there is a red exclamation mark near the partition name.
I proceeded to format, then I got this message:
Can't write to dev/sdc, because it's opened read-only.
When the next windows appeared, I expanded the error message I got this:
I appreciate your help, to solve this issue and to prevent it form happening in the future.
Thanks in advance.