LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2016, 06:26 AM   #1
magna413
LQ Newbie
 
Registered: Sep 2016
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 09-27-2016, 08:10 AM   #2
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
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.
 
Old 09-27-2016, 05:39 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
remove write protect usb stick

hdparm -r0 /dev/sdx


so my guess to make it write protect it might be

hdparm -r1 /dev/sdx
 
Old 09-29-2016, 09:27 AM   #4
balvinders
LQ Newbie
 
Registered: Sep 2016
Posts: 5

Rep: Reputation: Disabled
Smile

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MTD flash lock and unlock yuvarajragupathi Linux - Kernel 2 11-15-2012 11:26 PM
user lock/unlock by bad tries LinuxLover Solaris / OpenSolaris 2 10-26-2010 03:45 PM
How can I lock/unlock passwd file? scorpionaag Linux - Server 2 01-04-2008 08:15 AM
lock and unlock munna_dude Programming 1 05-18-2007 06:03 AM
About Lock And Unlock George2 Programming 8 08-23-2005 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration