1

I'm trying to format a USB that is readonly. I've mistakenly removed the SecureAccess files and now the file system is readonly. I've tried some solutions like this:

Read only filesystem problem

But still no result. In proc/mounts file /dev/sdb is of type iso9660 ro.

Is there another solution I should try? Thanks.

Edited: After trying to format from disks I got the following error:

Error formatting disk
Error wiping device: Command-line `wipefs -a "/dev/sdb"' exited with non-zero exit status 1:
stdout: `5 bytes were erased at offset 0x8001 (iso9660)
they were: 43 44 30 30 31
'
stderr: `wipefs: error: /dev/sdb: probing initialization failed
' (udisks-error-quark, 0)
Iva
  • 11
  • 1
  • 3
  • Follow the steps in this post ->https://askubuntu.com/questions/747702/sd-card-formating-process-failled-as-had-been-mistakly-unplugged/747730#747730 – Akhil Varma Sep 19 '17 at 20:06
  • How did you tried to format? Do you tried to create a partition on the USB drive? – ob2 Sep 19 '17 at 20:07
  • I edited my question and added the output from the format. – Iva Sep 19 '17 at 20:12

2 Answers2

2
sudodus
  • 46,324
  • 5
  • 88
  • 152
0

I found a solution. To format it:

sudo dd if=/dev/zero of=/dev/sd* 

in my case it was:

sudo dd if=/dev/zero of=/dev/sdb

It took some time. After that I format the USB using Disks.

Applied permissions:

sudo chmod 666 /dev/sd*

Mounted it using:

 sudo mount -o rw,users,umask=000  /dev/sd* /media/user/temp
Iva
  • 11
  • 1
  • 3