LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2012, 11:05 AM   #1
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
How to mount this (exFAT) sd card that isn't getting recognized?


I have a new 64GB Sandisk sd card that I put into my mobile phone (Android) and after a few weeks of use it stopped recognizing the card. How can I manage to mount it on my Linux computer? I put it into the computer and got the following information:

Code:
$ sudo fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 63.9 GB, 63864569856 bytes
255 heads, 63 sectors/track, 7764 cylinders, total 124735488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1           32768   124735487    62351360    7  HPFS/NTFS/exFAT
As well as the following:

Code:
$ sudo fdisk -l /dev/mmcblk0p1

Disk /dev/mmcblk0p1: 63.8 GB, 63847792640 bytes
4 heads, 16 sectors/track, 1948480 cylinders, total 124702720 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf4f4f4f4

This doesn't look like a partition table
Probably you selected the wrong device.

          Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1p1   ?  4109694196  8219388391  2054847098   f4  SpeedStor
/dev/mmcblk0p1p2   ?  4109694196  8219388391  2054847098   f4  SpeedStor
/dev/mmcblk0p1p3   ?  4109656385  8219350580  2054847098   f4  SpeedStor
/dev/mmcblk0p1p4   ?  4109694196  4109756903       31354   f4  SpeedStor

Partition table entries are not in disk order
In order to try to mount it I do the following but get error messages. Any idea how I could solve this to mount it successfully?

Code:
$ sudo apt-add-repository ppa:relan/exfat
$ sudo apt-get update
$ sudo apt-get install fuse-exfat
$ sudo mount -t exfat /dev/mmcblk0 /mnt/sdcard
FUSE exfat 0.9.8
ERROR: exFAT file system is not found.
$ sudo mount -t exfat /dev/mmcblk0p1 /mnt/sdcard
FUSE exfat 0.9.8
ERROR: exFAT file system is not found.
 
Old 12-06-2012, 11:41 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,961

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
You did not specify the partition ID.

Quote:
sudo mount -t exfat /dev/mmcblk0p1 /mnt/sdcard
The partition table only resides in the MBR which is why you get an error with
fdisk -l /dev/mmcblk0p1

P.S. I missed the second mount command where you did specify the partition ID. Lets see if it is really an exfat filesystem
Try:
file -s /dev/mmcblk0p1

Last edited by michaelk; 12-06-2012 at 11:54 AM.
 
Old 12-06-2012, 11:44 AM   #3
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
It's the same problem with both versions of the command:

Code:
$ sudo mount -t exfat /dev/mmcblk0 /mnt/sdcard
FUSE exfat 0.9.8
ERROR: exFAT file system is not found.
Code:
$ sudo mount -t exfat /dev/mmcblk0p1 /mnt/sdcard
FUSE exfat 0.9.8
ERROR: exFAT file system is not found.
 
Old 12-06-2012, 11:55 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,961

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
The output of the file command will tell us if the SD card is actually formated as exfat. The card could of just failed which means it can not be read anymore.

Last edited by michaelk; 12-06-2012 at 11:57 AM.
 
Old 12-06-2012, 12:01 PM   #5
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
Here is the output:

Code:
$ sudo file -s /dev/mmcblk0
/dev/mmcblk0: x86 boot sector; partition 1: ID=0x7, starthead 10, startsector 32768, 124702720 sectors, extended partition table (last)\011, code offset 0x0
Code:
$ sudo file -s /dev/mmcblk0p1
/dev/mmcblk0p1: x86 boot sector, code offset 0x52
The data can actually be read in some recovery systems of my Android device so the card is still is working order. I feel like while I was doing some modifications to my (rooted) phone something might have changed partiiton tables or something like that.
 
Old 12-06-2012, 12:54 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,961

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Not much help there.
 
Old 12-06-2012, 03:16 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
this link might help:

http://www.transformerforums.com/for...rosd-woes.html
 
Old 12-06-2012, 07:10 PM   #8
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
I tried to mount it as NTFS but still get an error:

Code:
$ sudo mount -t ntfs /dev/mmcblk0p1 /mnt/sdcard
NTFS signature is missing.
Failed to mount '/dev/mmcblk0p1': Invalid argument
The device '/dev/mmcblk0p1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Any idea how I can mount this drive?
 
Old 12-06-2012, 08:37 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
I think the issue is, "it did work". Makes me think there is damage.

Last edited by jefro; 12-06-2012 at 08:39 PM.
 
Old 12-07-2012, 03:24 AM   #10
respawnd
LQ Newbie
 
Registered: Dec 2012
Location: Free World
Distribution: Mint, Debian, Ubuntu, CentOS, Fedora, Red Hat
Posts: 3

Rep: Reputation: Disabled
Back it up and restore

I am assuming you have something of value on the SD card that you are trying to preserve. If I were you I would dump the image to disk then mount the image and make sure your data is there. If you cannot even dump the image then the card is bad. Use something like
Code:
dd if=/dev/mmcblk0p1 of=badcard.img bs=4M #or whatever bs you think works
.
Then mount the image using the Disk Manager or mount (as a loopback file system). You should be able to run
Code:
fdisk -l /path/to/badcard.img
and get the same result as before. I would then try mounting the image with different type options. You can make as many copies of badcard.img as you like and be as destructive as necessary to get the right type.

I am surprised to read that you are using exFAT. Unless you have very new drivers on your rooted Android, I would not have expected exFAT to work.
 
Old 12-07-2012, 03:36 AM   #11
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
Dumping the file as you suggested works fine, thanks for the suggestion, and I can even restore all the files (something like 90,000 of them) using recovery software 'photorec'. The reason why I'd like to mount the filesystem is that I can get back the files with the appropriate timestamps, filenames, and just for the files I need. Maybe 1,000 files are the ones that are actually mine, rather than belonging to other Android apps and other things stored on the sd card - I'd have to dig through 90,000 recovered files to find the ones I need if I stop here.

(On my rooted Android I am using the latest versions of some custom ROMs, so maybe that's why exFAT worked on it.)
 
  


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
Weird exFAT mount error (EOD entry) Ryupower Linux - Hardware 8 07-12-2012 05:33 AM
Ipod isn't recognized ... NakedNacho Linux - Software 3 05-15-2012 10:05 PM
PCMCIA NW-Card isnīt recognized zuttel Slackware - Installation 5 12-25-2006 12:00 PM
CD Burner isn't recognized IceChant Slackware 10 04-28-2006 10:05 AM
PCMCIA card isn't recognized by Mandrake on a Dell kwyattm Linux - Laptop and Netbook 2 01-26-2004 12:45 PM


All times are GMT -5. The time now is 07:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration