Skip to main content
Simplified shell command output
Source Link
Lucas
  • 3k
  • 1
  • 18
  • 26
  1. I assume you (your unix user) owns the device or at least has sufficient permissions on it (for example if you are root).
  2. If the command lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL,SIZE,RO shows your device as read only (RO=1), you can try to execute hdparm -r 0 /dev/sdb5. This disables the read only flag in the kernel (according to man hdparm).

Additional info:

These steps helped me with a micro SD card that should not have been read only (micro SD cards have no "lock" switch but my adapter did not have one either and was recognized as locked). I found this solution here.

Wikipedia explaines that the physical lock switch on SD cards can but need not be respected by the software: link to Wikipedia

  1. I assume you (your unix user) owns the device or at least has sufficient permissions on it (for example if you are root).
  2. If the command lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL,SIZE,RO shows your device as read only (RO=1), you can try to execute hdparm -r 0 /dev/sdb5. This disables the read only flag in the kernel (according to man hdparm).

Additional info:

These steps helped me with a micro SD card that should not have been read only (micro SD cards have no "lock" switch but my adapter did not have one either and was recognized as locked). I found this solution here.

Wikipedia explaines that the physical lock switch on SD cards can but need not be respected by the software: link to Wikipedia

  1. I assume you (your unix user) owns the device or at least has sufficient permissions on it (for example if you are root).
  2. If the command lsblk -o NAME,RO shows your device as read only (RO=1), you can try to execute hdparm -r 0 /dev/sdb5. This disables the read only flag in the kernel (according to man hdparm).

Additional info:

These steps helped me with a micro SD card that should not have been read only (micro SD cards have no "lock" switch but my adapter did not have one either and was recognized as locked). I found this solution here.

Wikipedia explaines that the physical lock switch on SD cards can but need not be respected by the software: link to Wikipedia

  1. I assume you (your unix user) owns the device or at least has sufficient permissions on it (for example if you are root).
  2. If the command lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL,SIZE,RO shows your device as read only (RO=1), you can try to execute hdparamhdparm -r 0 /dev/sdb5. This modifiesdisables the read only flag in the kernel (according to man hdparamhdparm).

Additional info:

These steps helped me with a micro SD card that should not have been read only (micro SD cards have no "lock" switch but my adapter did not have one either and was recognized as locked). I found this solution here.

Wikipedia explaines that the physical lock switch on SD cards can but need not be respected by the software: link to Wikipedia

  1. I assume you (your unix user) owns the device or at least has sufficient permissions on it (for example if you are root).
  2. If the command lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL,SIZE,RO shows your device as read only (RO=1), you can try to execute hdparam -r 0 /dev/sdb5. This modifies the read only flag in the kernel (according to man hdparam).

Additional info:

These steps helped me with a micro SD card that should not have been read only (micro SD cards have no "lock" switch but my adapter did not have one either and was recognized as locked). I found this solution here.

Wikipedia explaines that the physical lock switch on SD cards can but need not be respected by the software: link to Wikipedia

  1. I assume you (your unix user) owns the device or at least has sufficient permissions on it (for example if you are root).
  2. If the command lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL,SIZE,RO shows your device as read only (RO=1), you can try to execute hdparm -r 0 /dev/sdb5. This disables the read only flag in the kernel (according to man hdparm).

Additional info:

These steps helped me with a micro SD card that should not have been read only (micro SD cards have no "lock" switch but my adapter did not have one either and was recognized as locked). I found this solution here.

Wikipedia explaines that the physical lock switch on SD cards can but need not be respected by the software: link to Wikipedia

Source Link
Lucas
  • 3k
  • 1
  • 18
  • 26

  1. I assume you (your unix user) owns the device or at least has sufficient permissions on it (for example if you are root).
  2. If the command lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL,SIZE,RO shows your device as read only (RO=1), you can try to execute hdparam -r 0 /dev/sdb5. This modifies the read only flag in the kernel (according to man hdparam).

Additional info:

These steps helped me with a micro SD card that should not have been read only (micro SD cards have no "lock" switch but my adapter did not have one either and was recognized as locked). I found this solution here.

Wikipedia explaines that the physical lock switch on SD cards can but need not be respected by the software: link to Wikipedia