Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Read Android SD card
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Princess Nell
Guru
Guru


Joined: 15 Apr 2005
Posts: 530

PostPosted: Sun Sep 30, 2012 8:46 pm    Post subject: Read Android SD card Reply with quote

My Android phone is dead, I took the SD card out and tried to read it under Gentoo through the MMC card reader in my laptop (SD card adapter), but no go.

Code:

Sep 25 19:45:27 beans kernel: mmc0: new SD card at address d555
Sep 25 19:45:27 beans kernel: mmcblk0: mmc0:d555 SD032 30.6 MiB
Sep 25 19:45:27 beans kernel: mmcblk0: unknown partition table


I find it strange that I cannot read a card from what is essentially another Linux system? At the very least, I'd expect VFAT or something like that, but not even the correct size of the card (4GB) is recognised. Any pointers?
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4646
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 30, 2012 9:44 pm    Post subject: Reply with quote

It says unknown partition table, did you run some fdisk-like utility on it. Your kernel may have no support for partition table used.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31907
Location: 56N 3W

PostPosted: Sun Sep 30, 2012 10:07 pm    Post subject: Reply with quote

Princess Nell,

It sounds like you phone killed the SD card as it died.

There should be a single VFAT partition with an MSDOS partition table.
Run testdisk on /dev/mmcblk0 to see it it can find any partitions but do not let it write a new partition table.

Use
Code:
mount -o ro,loop,offset=<bytes_to_partition> -t vfat /dev/mmcblk0 /mnt/someplace

to have a look round and hopefully recover the files.

You could try dd to make an image of the device too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Princess Nell
Guru
Guru


Joined: 15 Apr 2005
Posts: 530

PostPosted: Mon Oct 01, 2012 8:02 am    Post subject: Reply with quote

The card reads and mounts correctly now. Not sure what went wrong the last time, maybe it didn't sit correctly in the adapter; or hibernation messed things up.

Thanks for the suggestions, testdisk is a great tool that I have used successfully before.
Back to top
View user's profile Send private message
mir3x
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2012
Posts: 125

PostPosted: Wed Oct 03, 2012 1:39 pm    Post subject: Reply with quote

NeddySeagoon - just note - android uses ext3 and ext4 also ( or mostly maybe ) on sdcard.
_________________
Installation aborted to prevent system self-destruction
Back to top
View user's profile Send private message
Johnriver743
n00b
n00b


Joined: 09 Oct 2012
Posts: 2

PostPosted: Fri Oct 12, 2012 6:06 pm    Post subject: Reply with quote

Can any one tell me android ext2 also on sdcard or not?
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 398
Location: San Diego, California USA

PostPosted: Sat Oct 13, 2012 5:39 pm    Post subject: Reply with quote

Standard Android behavior is to use the vfat filesystem on the SDcard. There will be an MBR partition table with one partition. Unless your Android phone OEM changed the behavior. Some data on the card may be encrypted (like applications moved to the SDcard), but the standard data (photos, music, etc.) will not be encrypted.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum