Notices


Reply
Thread Tools
Posts: 130 | Thanked: 24 times | Joined on Jan 2011
#1
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
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
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

Last edited by michaaa62; 2011-04-01 at 21:05.
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 130 | Thanked: 24 times | Joined on Jan 2011
#3
when i enter umount /dev/mmcblk0p1
to the xterminal it says cannot umount /dev/mmcblk0p1: invalid argument
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#4
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.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 130 | Thanked: 24 times | Joined on Jan 2011
#5
Originally Posted by michaaa62 View Post
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
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#6
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
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 130 | Thanked: 24 times | Joined on Jan 2011
#7
~ $ 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 #
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#8
Still not clear what the error for the file system is
Try
Code:
dosfsck -a -t -w -v /dev/mmcblk0p1
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 130 | Thanked: 24 times | Joined on Jan 2011
#9
Originally Posted by michaaa62 View Post
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 #
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#10
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
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:16.