maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   memory card corrupted (https://talk.maemo.org/showthread.php?t=71702)

hhmah 2011-04-01 14:24

memory card corrupted
 
can someone help i've lost everything in my memory device. music,photos,videos etc.

i says memory card corrupted, i doesnt show the internal memory in the file manager. and when i connect the phone to the pc, it still doesnt show the internal memory

need help thankx

michaaa62 2011-04-01 21:01

Re: memory card corrupted
 
You need rootsh installed from extras repository to check the file system from X-Terminal
Code:

sudo gainroot
umount /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs

There might be an error after the umount command to unmount the partition, ...because it is not mounted. Please post any errors you get here.

Edit: If you are not familiar with the command line and do not want to learn anything new :( try this http://talk.maemo.org/showpost.php?p=884265&postcount=4

hhmah 2011-04-01 21:57

Re: memory card corrupted
 
when i enter umount /dev/mmcblk0p1
to the xterminal it says cannot umount /dev/mmcblk0p1: invalid argument

michaaa62 2011-04-01 22:53

Re: memory card corrupted
 
That error is there if the partition is not mounted in the first place, but i wanted to be sure that it is not mounted, before trying to check the file system. Just go on with next line.

hhmah 2011-04-02 10:33

Re: memory card corrupted
 
Quote:

Originally Posted by michaaa62 (Post 980138)
That error is there if the partition is not mounted in the first place, but i wanted to be sure that it is not mounted, before trying to check the file system. Just go on with next line.


when i enter fsck -af /dev/mmcblk0p1
i says
fsck 1.41.3.maemo0 (12-Oc-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 251

michaaa62 2011-04-02 10:40

Re: memory card corrupted
 
Please always post the complete error messages to give us a good chance to get what is going on.
Please try
Code:

sudo gainroot
fsck -r /dev/mmcblk0p1

If this still fails please give the full output of
Code:

sfdisk -l

hhmah 2011-04-02 10:49

Re: memory card corrupted
 
~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # fsck -r /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 251.

/home/user # sfdisk -l

Disk /dev/mmcblk1: 62032 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk1p1 0+ 62031 62032- 1985016 b W95 FAT32
/dev/mmcblk1p2 0 - 0 0 0 Empty
/dev/mmcblk1p3 0 - 0 0 0 Empty
/dev/mmcblk1p4 0 - 0 0 0 Empty

Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 884864 884864 28315648 c W95 FAT32 (LBA)
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 0 - 0 0 0 Empty
/home/user #

michaaa62 2011-04-02 11:34

Re: memory card corrupted
 
Still not clear what the error for the file system is :(
Try
Code:

dosfsck -a -t -w -v /dev/mmcblk0p1

hhmah 2011-04-02 12:29

Re: memory card corrupted
 
Quote:

Originally Posted by michaaa62 (Post 980308)
Still not clear what the error for the file system is :(
Try
Code:

dosfsck -a -t -w -v /dev/mmcblk0p1

/home/user # dosfsck -a -t -w -v /dev/mmcblk0p1
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 251.

/home/user #

michaaa62 2011-04-02 14:28

Re: memory card corrupted
 
So i guess your file system is severely corrupt beyond a point of repair for fsck.

There are two, perhaps three, methods to go on from here:
1. If your data is still on your computer and easily to restore on the phone, you could formate the emmc freshly and recopy all your stuff to it.
Code:

mkfs.vfat -n MyDocs /dev/mmcblk0p1
2. You could try to get your data back from the device if you have no backup available with testdisk from recovery-tools package
Code:

apt-get install recovery-tools
testdisk /dev/mmcblk0

3. This a dangerous option: You could rewrite the file systems backup header to the partition. This could really do some magic, but could also destroy it beyond recovery if something goes weird.
Code:

dd if=/dev/mmcblk0p1 of=/dev/mmcblk0p1 bs=512 count=1 skip=6
You could find more on this slightly dangerous command here http://talk.maemo.org/showpost.php?p...8&postcount=31


All times are GMT. The time now is 14:18.

vBulletin® Version 3.8.8