Reply
Thread Tools
Posts: 80 | Thanked: 1 time | Joined on Aug 2011 @ Egypt
#1
Hi There!
I have problem seems like to the last problems i'v posted here in this forum.
Firstly.... I would thank mr.michaaa so much... he was the most helpful person here in this forum.. and he helped me a lot
i want to explain that i'v problem with internal memory like "read only file system", but it's not in read only mode... it's strange!
No need to explain it again.. just read the given command line
I could use my N900 through android now.. with 5GB Mass storage and 2GB internal storage.. the 27GB is unusable now.. in any OS

My friend have nokia N900, and he had problem with "mmcblk0p2" and app manager,,, I wrote in his terminal "fsck.ext3 -vvv /dev/mmcblk0p2" after unmount the device... and it gave me that the device had many problems and it's fixable, just accept with "y" i accepted most of them, restarted.. and everything went well!
The device came to the normal state and worked perfectly!
I tried the same code with my N900 And it gave me "unable to set superblock flags on /dev/mmcblk0p2"
I searched on Google.. but i didn't find any problem like my one!
Sorry for lengthy and annoying... but i really think that i could find solution for my problem!
Please help me in that...
Thanks again to Mr/Michaaa
And thanks in advance!

Regards....

Last edited by nourgomaa; 2011-10-11 at 20:31.
 
Posts: 159 | Thanked: 68 times | Joined on Sep 2011 @ India
#2
boot to maemo and try this...
sudo gainroot
umount /home/user/MyDocs
fsck -a /home /user/MyDocs

and reboot...

hope this helps..
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#3
Hu hu nourgomaa!
Here is some interesting bit for you http://nerdbynature.de/s9y/?82
May you try to get things going again with an alternative superblock. Although the second command runs mkfs.ext2, it is actually a simulation with the '-n' option to get the backups of the superblock.
 
Posts: 80 | Thanked: 1 time | Joined on Aug 2011 @ Egypt
#4
Originally Posted by michaaa62 View Post
Hu hu nourgomaa!
Here is some interesting bit for you http://nerdbynature.de/s9y/?82
May you try to get things going again with an alternative superblock. Although the second command runs mkfs.ext2, it is actually a simulation with the '-n' option to get the backups of the superblock.
Thanks a lot for your quick answer!
Unfortunately! It gave me the same error!
What's that???
I'll explain the behavior of the file manager...
E.G when i try to delete file... deleted!
close file manager, open it again.. i always find non-type file with the same name of deleted file but with "-1KB" next to the name.. and no options to edit this file.. except details option.
When i try to click on details.. file manager closes and give me the message "internal error. Application "file manager" closed"
I always have to restart the phone to avoid this error... after rebooting i always find the old file not deleted!
This is an example
Thanks in advance!

"Thx mr knobby for your help! "but nothing "
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#5
There seems to be no way to fsck those partitions. The emmc might be broken(corrupt) or the filesystems are in an unusable state. Two ways to try to proceed

A: Do you now want to recover data from the partitions?
B: Do you want to try to get the partitions to work and wipe all the data that is right now on it?

A or B?
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 80 | Thanked: 1 time | Joined on Aug 2011 @ Egypt
#6
Originally Posted by michaaa62 View Post
There seems to be no way to fsck those partitions. The emmc might be broken(corrupt) or the filesystems are in an unusable state. Two ways to try to proceed

A: Do you now want to recover data from the partitions?
B: Do you want to try to get the partitions to work and wipe all the data that is right now on it?

A or B?
No need for the data on it!
Just fix it.. and use the N900 in the normal state again
I am really so depressed
I used to like this phone.. if i found device like N900 supports everything like changing OS's i'll buy it...
Thanks for your answer.. if it's corrupted tell me if i could buy new one from abroad and ship it to Egypt here.. or if not.. i'll sell it
Thanks in advance..Let me thank u!
Regards...
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#7
Lets see if we can breath any life back into your emmc. In the process your settings and configs will get wiped, please start the built-in Backup application and create a backup on your external card. For safeties reason pull your external card to make sure the kernel has other ideas than we have about the devices!
To get around errors of a missing optfs, please flash the .fiasco image fresh or remove anything that might have installed into /opt.

After the reboot we start by installing rootsh from extras repository, if you flashed the device.
Then delete My Docs partition by making it unknown and then reformat it
Code:
sudo gainroot
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 50339840, Id=0
> /dev/mmcblk0p2 : start= 50339904, size= 10485760, Id=0
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > partitiontable
sfdisk --no-reread /dev/mmcblk0 < partitiontable
Note: These 5 lines are one command, better copy and paste it from the browser to the X-Terminal
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 50339840, Id=0
> /dev/mmcblk0p2 : start= 50339904, size= 10485760, Id=0
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > partitiontable
Shut your phone down (no reboot, shutdown please), pull the battery and disconnect from charger, then after a couple of seconds start it up.
Open X-Terminal
Code:
sudo gainroot
sfdisk -c /dev/mmcblk0 1 c
sfdisk -c /dev/mmcblk0 2 83
mkfs.vfat -n MyDocs -F32 -s64 /dev/mmcblk0p1
mkfs.ext3 -L optfs /dev/mmcblk0p2
mount /dev/mmcblk0p2 /mnt
cp -a /home/* /mnt
rm -rf /home
This make the partitions usable and formats them, mounts optfs and transfers anything from /home to the new partition and deletes the stuff in /home to save some space in NAND later. The last step has one disadvantage, if the whole procedure does not fully work, you might have to flash the device again .(

If there are no errors during the mkfs commands, you could now speak your best prayers, reboot and hope to have a working device
Good luck! And keep asking if any confusion arises.

Last edited by michaaa62; 2011-10-13 at 10:00.
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 391 | Thanked: 912 times | Joined on Aug 2011 @ suncity
#8
Originally Posted by michaaa62 View Post
There seems to be no way to fsck those partitions. The emmc might be broken(corrupt) or the filesystems are in an unusable state. Two ways to try to proceed

A: Do you now want to recover data from the partitions?
B: Do you want to try to get the partitions to work and wipe all the data that is right now on it?

A or B?
Dear michaaa62!

I searched a lot, including maemo talk, and I found that your suggestions were very useful for everyone, so maybe you can help.
here is the deal: I lost my .documents, .sounds and .videos data. on my n900. now I'm trying to save them with testdisk, but I run into this problem: when I choose "Intel" partition table, it does not finds the FAT32 partiotion. when I choose "None" - Non-partitioned table, it finds the partition, and says, it is maybe damaged. but it also says, that writing on it is not available because "None" was selected. so I'm facing that I do have the lost files, but they can not be restored... is this really the situation...?

thanks in advance
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#9
You cannot recover data with testdisk from and to the same device.
I assume you are running testdisk from within the N900, so you will need an external microSD card to save the files to.

What is the error you are getting, if you try to fsck the partition
Code:
sudo gainroot
umount /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs
Do you get any errors if you want to read the partition table
Code:
sudo gainroot
sfdisk -l
 
Posts: 391 | Thanked: 912 times | Joined on Aug 2011 @ suncity
#10
Originally Posted by michaaa62 View Post
You cannot recover data with testdisk from and to the same device.
I assume you are running testdisk from within the N900, so you will need an external microSD card to save the files to.

What is the error you are getting, if you try to fsck the partition
Code:
sudo gainroot
umount /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs
Do you get any errors if you want to read the partition table
Code:
sudo gainroot
sfdisk -l
hmm... yes, I wasn't precise enough. my mistake, sorry.

so, I had memory problems (transmission said "read only memory") with my device, so I tried to fix it with fsck. during that process I accidentally (or because of my stupidity to be more precise) deleted some data. I realized this after using fsck. but only . documents, .videos and . sounds were lost. I'm interested in restoring .documents, the others are replaceable...
I ran fsck after the deletion was done, but it created an other partition, named totally something different than "n900"("ot boot d" - or something like this), and it has an intact .documents, .videos and .sounds folrders, but they are empty.
I tried to run testdisk right on my device, using a separate folder to save datas, but it always switched itself off (battery was full). so now I'm trying to run testdisk on a windows laptop, attached the n900 with the USB cable to it. after running testdisk in this way it found the new partition, I looked into the files and folders with the key "p", but testdisk did not showed .documents as deleted (with red characters), they were intact. after a deeper search, testdisk found an other partition named "N900" (I guess this is the old one, that I lost), but I cannot access to it, because it says it is probably damaged... so I guess I have write this partition back, but I can't...

but I experience one interesting thing: the ringtone and alarm sound are still working (I mean the ringtone and alarm that I set - mp3s)... I don't know if this has to do something with the problem...

Last edited by justmemory; 2012-02-02 at 14:05.
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:13.