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 06-25-2017, 05:56 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
Repair SDXC card 128GB that showing 31MB capacity, without losing data


Hi

Howto repair SDXC card 128GB that showing only 31MB capacity, without losing data, bacause I don't have any backup of the photos.
It seems the partition table is gone.
 
Old 06-25-2017, 09:40 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by cccc View Post
Hi
Howto repair SDXC card 128GB that showing only 31MB capacity, without losing data, bacause I don't have any backup of the photos.
It seems the partition table is gone.
If your data is valuable, you need to back it up. Either copy off what you CAN copy off before trying recovery, or make peace with the fact you may lose everything. Your choice.

Run testdisk/photorec on it, and it may be able to help, providing that the partition table is all that's wrong with it. Those cards don't last forever.
 
Old 06-25-2017, 11:57 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Thx, but what's the best way is the best way to clone the whole SD, before I will do anything?
Should I use dd command?
 
Old 06-25-2017, 01:41 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by cccc View Post
Thx, but what's the best way is the best way to clone the whole SD, before I will do anything?
Should I use dd command?
You've been here many years now, and have been directed to the LQ Rules previously about text-speak, and not using it. Please don't. You can try to use dd to do it, or just mount it and copy the files off, if you can at least mount that 'seeable' space.

Last edited by TB0ne; 06-25-2017 at 01:45 PM.
 
Old 06-26-2017, 01:43 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Strange, I've done a clone of the whole SD /dev/sdc using dd, but the image is just 31MB. It should be much more, because the 128GB SDCX was full of photos.
I have already tried testdisk, photorec and recoverjpeg, but those tools cannot find anything.
 
Old 06-26-2017, 08:42 PM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The operating system must only see 31 MB. You can try foremost. It requires only the device node as a recover from argument, not a mount point. The controllers on USB drives aren't very good. You might be able to save the drive by writing zeroes to it a few times. I've also found that off-brand flash drives all fail!

If the media is a microSD card in a USB reader, you could try a different reader.
 
1 members found this post helpful.
Old 06-29-2017, 05:08 PM   #7
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Thx a lot, I have tried different card readers and foremost, but cannot find any data.
If I put sd card to the reader it gets very hot, perhaps the card controller is damaged.
 
Old 06-30-2017, 07:09 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If it gets hot enough to burn you, I wouldn't waste any more time with it. It might ruin other hardware.
 
  


Reply

Tags
photos, repair, rescue, sd, sdxc



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
SDXC card doesn't work on Fedora 25 bscho Fedora 3 01-24-2017 10:40 PM
1.0 GB USB showing total capacity 69.8 MB ashangel Linux - Kernel 16 07-16-2012 02:27 AM
upgrade system with lvm on software raid-1 data volume w/o losing data BinWondrin Linux - General 1 01-13-2009 03:25 PM
Hard Drive showing incorrect capacity xer Linux - Hardware 7 12-27-2006 10:03 PM

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

All times are GMT -5. The time now is 02:27 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