LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What to use for SD-Card lock/unlock with CMD42 (https://www.linuxquestions.org/questions/linux-software-2/what-to-use-for-sd-card-lock-unlock-with-cmd42-4175590066/)

magna413 09-24-2016 06:26 AM

What to use for SD-Card lock/unlock with CMD42
 
Hi

I'm looking for solution for SD card locking with password and ulocking it with CMD42 command. Some old NOKIA-s did inside the OS, but i have not found any solution for Linux yet.

dave@burn-it.co.uk 09-27-2016 08:10 AM

It depends on the firmware in the card.
You would need to find how the firmware does it and what bit is set. Then find some way of accessing that bit, which is often in a protected area and not available to the user.

BW-userx 09-27-2016 05:39 PM

remove write protect usb stick

hdparm -r0 /dev/sdx


so my guess to make it write protect it might be

hdparm -r1 /dev/sdx

balvinders 09-29-2016 09:27 AM

if sd card is locked then may be this will b protected. you can reset your sd card. i m not sure how helpfull my answer but i just give a guess. you can try this once. if the problem remain same....then you can try some other way.


All times are GMT -5. The time now is 03:08 AM.