Reply
Thread Tools
Posts: 2,101 | Thanked: 1,934 times | Joined on Sep 2008 @ Berlin, Germany
#11
Try testdisk to recover the files, it has both a kind of undelete for files and folders. Did you try to check and repair the file system from within the N900. You need rootsh from extras repo installed
Code:
sudo gainroot
umount /dev/mmcblk1p1
fsck -af /dev/mmcblk1p1
reboot
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 15 | Thanked: 4 times | Joined on May 2010
#12
michaaa62 thank you for your help!
I have tried to repair the card, but I can't see the partition mmcblk1p1 (only the device mmcblk1). It's not possible to unmount or mount it.
I can see only:
/dev/mmcblk0
/dev/mmcblk0p1
/dev/mmcblk0p2
/dev/mmcblk0p3
/dev/mmcblk1

Trying fsck -af /dev/mmcblk1 of course fails and returns:
Code:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not a swap or ufs or something else), the the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
Any idea or the partition is lost forever?
 
Posts: 2,101 | Thanked: 1,934 times | Joined on Sep 2008 @ Berlin, Germany
#13
There is a copy of the superblock somewhere in the filesystem. Please first try
Code:
sfdisk -l /dev/mmcblk1
to look over this error message.
Do you remember which file system you applied to the memory stick?

Last edited by michaaa62; 2011-01-10 at 12:58.
 
Posts: 15 | Thanked: 4 times | Joined on May 2010
#14
The output to the command is
Code:
Disk /dev/mmcblk1: 486192 cylinders, 4 heads, 16 sectors/track
read: Input/output error

sfdisk: read error on /dev/mmcblk1 - cannot read sector 0
 /dev/mmcblk1: unrecognized partition table type
No partitions found
the filesystem was FAT
 
Posts: 2,101 | Thanked: 1,934 times | Joined on Sep 2008 @ Berlin, Germany
#15
Please install Testdisk&Photorec from the package recovery-tools, then run testdisk, choose the external card andlet it try its magic.
This might be sufficient before trying more harsh methods like writing a supposed copy of the superblock to the card out of the dark.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 15 | Thanked: 4 times | Joined on May 2010
#16
Well michaaa62 thank you very much again!

Surprisingly I can't read the card directly from any laptop using an mini-sd adapter, it is not detected. But works when accessing the card with the phone in "mass storage" mode.
I could recovered a bunch of files including all/most of the photos in the card using Photorec, attaching the N900 to a eee laptop with Ubuntu.

Once I have extracted the data, I'm trying to understand what the hell is going on with the card, and see if I can recover it. The first card I though it was a hardware problem, but this time it can't be.

Using TestDisk from the N900, and Analyzing the flash device it returns
Code:
Partition: Read error
Quick search does not find any partition on it, but shows some errors like
Code:
Read error at 1/2/1 (lba=160)
Read error at 2/2/1 (lba=160)
Deeper search doesn't find any partition either, but several similar messages
Code:
Read error at 4/2/7 (lba=294)
That sounds to me like a low level format. I will continue trying to fix the memory card so it can be used again.
 
Posts: 2,101 | Thanked: 1,934 times | Joined on Sep 2008 @ Berlin, Germany
#17
In testdisk there is also [Advanced] Filesystem Utils. Maybe this can see the file system and offer an Undelete option.
Well if you have finished trying to recover files, you could guess it was a FAT32 file system and blindly write the copy of the superblock to the first sector, but this really is a wild guess and will, if it is not the correct block prevent further investigation. It should be the last resort. So do this only if desperate and after finishing anything else!
Code:
dd if=/dev/mmcblk1p1 of=/dev/mmcblk1p1 bs=512 count=1 skip=6
The above command might give you an error because it does not find the first partition, try then
Code:
dd if=/dev/mmcblk1 of=/dev/mmcblk1 bs=512 count=1 skip=6
Again, this is just a shot in the dark, it might work, but... who knows.
 
Posts: 45 | Thanked: 75 times | Joined on Dec 2010 @ India
#18
some one please help!!

i bought my n900 from saudi arabia..i need to flash my n900....right now i live in india..which region should i select for downloading .bin file??India or middle east?

please help!!
 
Posts: 65 | Thanked: 8 times | Joined on Jul 2010
#19
Originally Posted by Electricgod View Post
some one please help!!

i bought my n900 from saudi arabia..i need to flash my n900....right now i live in india..which region should i select for downloading .bin file??India or middle east?

please help!!
Selection of image file is entirely up to you...I bought mine from India and have the Global version running on it currently (no pre-integrated Skype with Video Call/Chat support in indian version). Just make sure that you dowload the latest version (PR 1.3).

Cheers
AK
 

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:09.