Skip to main content
Added alternative for step 3 and a note
Source Link
testeaxeax
  • 1.5k
  • 8
  • 14

Such read-only issues happen to me all the time when I use iso-images. What I do to fix such problems:

Note that <yoursdcard> is a device and not a partition, so for example sdc

  1. Boot some kind of linux
  2. Open a terminal
  3. Find out what device your sd card is and verify it by using sudo fdisk /dev/<yoursdcard> -l or to get the device name too you could also use sudo parted /dev/<yoursdcard> -l

WARNING: The following command will destroy all data on /dev/<yoursdcard> so make sure that <yoursdcard> is the right device!!!!

  1. Execute sudo dd if=/dev/zero of=/dev/<yoursdcard> bs=1000000 count=50
  2. Execute sudo fdisk /dev/<yoursdcard>
  3. Now use the command o to create a new MSDOS partition table on your sdcard, then use the n command to add a new partition and use w to write the changes to your sdcard and exit fdisk
  4. Now use sudo mkfs -t <filesystem you want> /dev/<yoursdcard>1 to format your partition
  5. Now your sdcard should work again

If that doesn't work:

  1. Open terminal
  2. Find out what device <yoursdcard> is
  3. Execute sudo su
  4. Execute echo "0" > /sys/block/<yoursdcard>/ro

Such read-only issues happen to me all the time when I use iso-images. What I do to fix such problems:

  1. Boot some kind of linux
  2. Open a terminal
  3. Find out what device your sd card is and verify it by using sudo fdisk /dev/<yoursdcard> -l

WARNING: The following command will destroy all data on /dev/<yoursdcard> so make sure that <yoursdcard> is the right device!!!!

  1. Execute sudo dd if=/dev/zero of=/dev/<yoursdcard> bs=1000000 count=50
  2. Execute sudo fdisk /dev/<yoursdcard>
  3. Now use the command o to create a new MSDOS partition table on your sdcard, then use the n command to add a new partition and use w to write the changes to your sdcard and exit fdisk
  4. Now use sudo mkfs -t <filesystem you want> /dev/<yoursdcard>1 to format your partition
  5. Now your sdcard should work again

If that doesn't work:

  1. Open terminal
  2. Find out what device <yoursdcard> is
  3. Execute sudo su
  4. Execute echo "0" > /sys/block/<yoursdcard>/ro

Such read-only issues happen to me all the time when I use iso-images. What I do to fix such problems:

Note that <yoursdcard> is a device and not a partition, so for example sdc

  1. Boot some kind of linux
  2. Open a terminal
  3. Find out what device your sd card is and verify it by using sudo fdisk /dev/<yoursdcard> -l or to get the device name too you could also use sudo parted /dev/<yoursdcard> -l

WARNING: The following command will destroy all data on /dev/<yoursdcard> so make sure that <yoursdcard> is the right device!!!!

  1. Execute sudo dd if=/dev/zero of=/dev/<yoursdcard> bs=1000000 count=50
  2. Execute sudo fdisk /dev/<yoursdcard>
  3. Now use the command o to create a new MSDOS partition table on your sdcard, then use the n command to add a new partition and use w to write the changes to your sdcard and exit fdisk
  4. Now use sudo mkfs -t <filesystem you want> /dev/<yoursdcard>1 to format your partition
  5. Now your sdcard should work again

If that doesn't work:

  1. Open terminal
  2. Find out what device <yoursdcard> is
  3. Execute sudo su
  4. Execute echo "0" > /sys/block/<yoursdcard>/ro
Source Link
testeaxeax
  • 1.5k
  • 8
  • 14

Such read-only issues happen to me all the time when I use iso-images. What I do to fix such problems:

  1. Boot some kind of linux
  2. Open a terminal
  3. Find out what device your sd card is and verify it by using sudo fdisk /dev/<yoursdcard> -l

WARNING: The following command will destroy all data on /dev/<yoursdcard> so make sure that <yoursdcard> is the right device!!!!

  1. Execute sudo dd if=/dev/zero of=/dev/<yoursdcard> bs=1000000 count=50
  2. Execute sudo fdisk /dev/<yoursdcard>
  3. Now use the command o to create a new MSDOS partition table on your sdcard, then use the n command to add a new partition and use w to write the changes to your sdcard and exit fdisk
  4. Now use sudo mkfs -t <filesystem you want> /dev/<yoursdcard>1 to format your partition
  5. Now your sdcard should work again

If that doesn't work:

  1. Open terminal
  2. Find out what device <yoursdcard> is
  3. Execute sudo su
  4. Execute echo "0" > /sys/block/<yoursdcard>/ro