LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-07-2015, 11:31 AM   #1
spin498
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Rep: Reputation: 0
SD card locked?


I have a couple of 32 gig micro SD cards. They were formatted using SDFormatter software and used to install different versions of OpenElec on a Raspberry Pi. The PI appears to require an MBR partition and the the system formats the remainder of the card for storage etc. Since doing that, I can no longer format these cards. I've tried on OSX, Windows 10 and Mint. Their various systems say they're formatting but when they're done the file structure remains as it was pre-format. It's seems like the PI has locked the cards so they can't be overwritten. But the adaptor isn't in lock and the systems are read and write according to OSX. The closest I came to fixing the issue was with Mint, which indicated the two partitions had been deleted and then reformatted in FAT, but again when I plug the card into OSX or Win10 the two partition system remains.

I've plugged the cards into an ASUS tablet, a BLU smartphone and a Samsung Tablet. The Samsung doesn't 'see' the card at all and the ASUS and BLU see only the FAT partition of 855 MB. None of the 3 even offers the Format option. Anyone run into this and found a fix? I've googled every way I can think and can't find anything even approaching this issue.

Last edited by spin498; 08-07-2015 at 11:32 AM.
 
Old 08-07-2015, 12:39 PM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,505

Rep: Reputation: Disabled
My normal solution to this type of problem is wipe the mbr, create a new dos mbr, then partition it, & finally put a new file system on it.
 
Old 08-07-2015, 12:43 PM   #3
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,006
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
Quote:
Originally Posted by fatmac View Post
My normal solution to this type of problem is wipe the mbr, create a new dos mbr, then partition it, & finally put a new file system on it.
That's probably what I'd try as well.
 
Old 08-07-2015, 01:08 PM   #4
spin498
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Timothy Miller View Post
That's probably what I'd try as well.
There's only one tiny problem, nothing will wipe the MBR. I tried 3 different OS's, Terminal, and SDFormatter on two different OS. Everything, except Terminal reports that the deletion has occurred and the formatting successfull, but nothing changes on the card. Terminal commands won't even run. PI even reports errors now, although it does see something as it's able to report the filesystem is broken.
 
Old 08-07-2015, 01:15 PM   #5
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,006
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
You tried
Code:
dd if=/dev/zero of=/dev/xxx bs=512 count=1
?
 
Old 08-07-2015, 03:00 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
To properly make an OpenElec.tv image

http://wiki.openelec.tv/index.php/HO...#tab=DiskImage

Use Gparted to remove all partitions. Really any OS that has access to partition program would do.
While it is possible that some older flash modules have a small switch that locks write it is unlikely there. You are for some reason not removing the partitions. OpenElec didn't lock anything.

It may be that the flash is locked somehow and may have an OEM program to recover it.
Sandisk sent me a program when they replaced a warrantied CF. Some are online for download.

It is possible it has gone bad.

Last edited by jefro; 08-07-2015 at 03:05 PM.
 
Old 08-08-2015, 02:15 AM   #7
spin498
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Original Poster
Rep: Reputation: 0
I'm leaning toward it having gone bad, except that in Terminal diskutil will show it and list off the partitions. I did try to remove the partitions and reformat using diskutil with no luck. I'll see if I can find a flash program for this disk.
And Disk Utility will unmount the volumes.
 
Old 08-08-2015, 02:34 AM   #8
spin498
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Original Poster
Rep: Reputation: 0
I think the card is bad, after all the work in Terminal my Win 10 machine doesn't even recognize it's presence anymore.
 
Old 08-08-2015, 03:12 AM   #9
spin498
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Original Poster
Rep: Reputation: 0
What I don't understand is that OSX recognizes the card even though it's a FAT partition, but Windows doesn't. There are text files in the FAT partition that I can access, open and read using Finder suggesting the card isn't completely dead.
 
Old 08-10-2015, 05:44 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Windows will only (usually) see the first partition on some types of portable media.
 
Old 08-17-2015, 05:01 AM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
SD cards can go bad. And tend to go bad in a READ ONLY mode. I've had a sandisk (not micro) one do that on me in under 4 hours. Installed linux, booted it, watched a couple youtube videos on it, and then it went south. Did a mkfs on the questionable partition and it contained all the old filesystem contents and was bootable, but as a usable device, toast.

# dcfldd if=/dev/zero of=/dev/sdX bs=4M
# dcfldd if=/dev/sdX of=image_of_sdcard.img bs=4M
$ hexedit image_of_sdcard.img

If it's not all zeros, then it's not write-able. You may still be able to write "some" parts of the device, but it's basically toast as a usable device. Where /dev/sdX is the actual device name for your card. I have two failed cards so far, all class 4 sandisk ones. All of my class 6 or better ones still function (to the best of my knowledge / not symptomatic). But most of my installs that run off of them are pretty static outside of logs and browser cache.
 
  


Reply



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
Laptops with locked Bios (this means no changing the wireless card) bob.smith22 Linux - Wireless Networking 6 08-01-2008 03:41 PM
Locked myself out kuratkull Debian 1 10-17-2006 12:19 PM
Intel8x0 sound, ALSA /dev/dsp device busy, is card locked or is it software? bigearsbilly Linux - Hardware 9 12-15-2005 03:49 AM
Locked out downinthemine Mandriva 1 10-28-2003 04:00 PM
locked out of X VioLaToR Linux - Newbie 15 11-12-2002 04:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:56 PM.

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