![]() |
memory corrupt
hey people
this is my first post here. well, my n900 memory is corrupt and in the country where i am now, they dont know how to solve my problem . i have got a lot of posts about this problem, but i didnt fealy understand anything. they were using words like emmc and other sutff i dont know. please tell me how to do it step by step how to get back my stuff. and is it rely posible to repare my n900 internal memory card ?? |
Re: memory corrupt
right now i can access to my contacts, my apps .
|
Re: memory corrupt
Can you take photo's with the camera and video anything?
|
Re: memory corrupt
First : It is possible to repair some things from the device itself before trying to reflash and therefore remove your files. You need rootsh installed to become root in a X-Terminal. So install it from Application Manager. Open X-Terminal and become root
Code:
sudo gainroot Code:
umount /home/user/MyDocs Code:
mount MyDocs |
Re: memory corrupt
thanks alot
i have got an error . here it is everything . BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # umount /home/user/MyDocs umount: cannot umount ��/home/user/MyDocs: No such file or directory /home/user # fsck -f /dev/mmcblk0p1 fsck 1.41.3.maemo0 (12-Oct-2008) dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN Logical sector size is zero. /home/user # mount MyDocs mount: mounting /dev/mmcblk0p1 on /home/user/MyDocs failed: Invalid argument /home/user # |
Re: memory corrupt
Did you change the partition setup? This looks really fishy.
Please paste the output of Code:
ls -al /home/user/ |
Re: memory corrupt
do you mean i just copy and paste the code ??
i copied and pasted the code and this is the output : BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ ls -al /home/user/ drwxr-xr-x 47 user users 4096 Dec 20 13:51 . drwxr-xr-x 6 user users 4096 Dec 20 13:58 .. drwx------ 4 user users 4096 Dec 18 01:19 .Skype drwxr-xr-x 3 root root 4096 Jan 1 2009 .activesync drwx------ 3 user users 4096 Mar 10 2010 .adobe -rw-r--r-- 1 user users 1 Oct 21 15:07 .ash_history drwxr-xr-x 2 user users 4096 Dec 4 01:16 .backgrounds drwxr-xr-x 3 user users 4096 Dec 14 01:35 .bookmarks -rw------- 1 user users 313 Dec 20 15:29 .browser -rw-r--r-- 1 user users 417 Dec 20 13:26 .browser_typed_urls drwxr-xr-x 6 user users 4096 Dec 20 13:59 .cache drwxr-xr-x 2 user users 4096 Dec 20 14:01 .calendar drwxr-xr-x 2 user users 4096 Sep 24 21:31 .clock -rw-r--r-- 1 user users 74 Dec 20 13:51 .clockd.conf drwx------ 2 user users 4096 Mar 24 2010 .conboy drwxr-xr-x 6 user users 4096 Dec 20 2010 .config drwx------ 3 user users 4096 Jan 1 2000 .dbus drwxr-xr-x 4 user users 4096 Mar 24 2010 .feedservice drwxr-xr-x 2 user users 4096 Nov 2 10:11 .fmp_pause_thumbnail drwx------ 2 user users 4096 Jan 1 2000 .gnome2 drwx------ 2 root root 4096 Mar 10 2010 .gnupg drwxr-xr-x 2 user users 4096 Jan 1 2000 .gstreamer-0.10 drwxr-xr-x 2 user users 4096 Dec 20 02:03 .hildon-application-manager drwxr-xr-x 4 user root 4096 Dec 20 17:00 .intellisyncd drwx------ 2 user users 4096 Mar 10 2010 .lgames -rw-r--r-- 1 user users 112 Nov 2 09:42 .lmarbles_profile -rw-r--r-- 1 user users 2 Nov 2 09:42 .lmarbles_state drwxr-xr-x 3 user users 4096 Oct 8 2009 .local drwx------ 3 user users 4096 Mar 10 2010 .macromedia drwx------ 8 user users 4096 Mar 12 2010 .maemosec-certs drwx------ 3 user users 4096 Jan 1 2009 .maemosec-secure drwxr-xr-x 2 user users 4096 Mar 10 2010 .maesync drwx------ 2 user users 4096 Dec 20 2010 .mafw-playlists -rw-r--r-- 1 user users 11264 Oct 10 16:34 .mafw.db drwxr-xr-x 6 user users 4096 Mar 17 2010 .modest drwxr-xr-x 9 user users 4096 Dec 20 12:24 .mozilla drwxr-xr-x 2 user users 4096 Jan 1 2009 .nokia-maps drwx------ 3 user users 4096 Mar 11 2010 .nspeed dr-xr-x--- 2 user users 4096 Jan 1 2009 .obex-root drwxr-xr-x 6 user users 4096 Dec 20 18:22 .opera drwxr-xr-x 4 user users 4096 Dec 20 13:15 .osso drwxr-xr-x 4 user users 4096 Mar 11 2010 .osso-abook drwxr-xr-x 2 user users 4096 Sep 24 21:32 .osso-backup drwxr-xr-x 2 user users 4096 Aug 28 2009 .osso-cud-scripts drwxr-xr-x 3 user users 4096 Mar 24 2010 .osso_rss_feed_reader drwxr-xr-x 2 user users 4096 Dec 20 13:50 .profiled drwx------ 2 user users 4096 Dec 20 13:50 .pulse -rw------- 1 user users 256 Jan 1 2000 .pulse-cookie drwxr-xr-x 4 user users 4096 Dec 20 16:40 .rtcom-accounts drwx------ 3 user users 4096 Dec 20 14:02 .rtcom-eventlogger drwxr-xr-x 2 user users 4096 Dec 1 23:30 .rtcom-messaging-ui drwx------ 3 user users 4096 Mar 24 2010 .sharing drwxrwxrwx 2 root root 4096 Dec 18 01:19 .signon drwxr-xr-x 6 user users 4096 Dec 20 02:03 .thumbnails -rw-r--r-- 1 user users 20480 Jan 1 2009 .topos.db -rw-r--r-- 1 user users 363 Mar 19 2010 Fingerprint.jad drwxr-xr-x 4 user users 4096 Dec 13 21:07 MyDocs ~ $ sfdisk -l -sh: sfdisk: not found ~ $ mount rootfs on / type rootfs (rw) ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) tmpfs on /tmp type tmpfs (rw,noatime,size=1024k) tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755) none on /dev type tmpfs (rw,noatime,size=10240k,mode=755) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k) /dev/mmcblk0p2 on /home type ext3 (rw,noatime,errors=continue,commit=1,data=writebac k) ~ $ df -k |
Re: memory corrupt
Okay, the content of your /home/user is fine, even MyDocs is there and fine(permissions et al.)
Please become root (missed to mention it, sorry) to have the output of Code:
sfdisk -l df -k is irrelavant if /dev/mmcblk0p1 is not mounted properly |
Re: memory corrupt
i posted the fisrt code ( the ne u forgot ) and here is the output :
~ $ sfdisk -l -sh: sfdisk: not found ~ $ sfdisk -1 -sh: sfdisk: not found ~ $ wt else should i do . |
Re: memory corrupt
sorry . i wrote it again
here is the output BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # sfdisk -1 sfdisk version 3.08 (aeb@cwi.nl, 040824) from util-linux-2.12r Usage: sfdisk [options] device ... device: something like /dev/hda or /dev/sda useful options: -s [or --show-size]: list size of a partition -c [or --id]: print or change partition Id -l [or --list]: list partitions of each device -d [or --dump]: idem, but in a format suitable for later input -i [or --increment]: number cylinders etc. from 1 instead of from 0 -uS, -uB, -uC, -uM: accept/report in units of sectors/blocks/cylinders/MB -T [or --list-types]:list the known partition types -D [or --DOS]: for DOS-compatibility: waste a little space -R [or --re-read]: make kernel reread partition table -N# : change only the partition with number # -n : do not actually write to disk -O file : save the sectors that will be overwritten to file -I file : restore these sectors again -v [or --version]: print version -? [or --help]: print this message dangerous options: -g [or --show-geometry]: print the kernel's idea of the geometry -G [or --show-pt-geometry]: print geometry guessed from the partition table -x [or --show-extended]: also list extended partitions on output or expect descriptors for them on input -L [or --Linux]: do not complain about things irrelevant for Linux -q [or --quiet]: suppress warning messages You can override the detected geometry using: -C# [or --cylinders #]:set the number of cylinders to use -H# [or --heads #]: set the number of heads to use -S# [or --sectors #]: set the number of sectors to use You can disable all consistency checking with: -f [or --force]: do what I say, even if it is stupid /home/user # |
Re: memory corrupt
sorry . i wrote df -k
and here is the output /home/user # df -k Filesystem 1k-blocks Used Available Use% Mounted on rootfs 233344 152984 76080 67% / ubi0:rootfs 233344 152984 76080 67% / tmpfs 1024 60 964 6% /tmp tmpfs 256 72 184 28% /var/run none 10240 72 10168 1% /dev tmpfs 65536 4 65532 0% /dev/shm /dev/mmcblk0p2 2064208 213008 1746344 11% /home /home/user # |
Re: memory corrupt
sorry . i also added the df -k and here is the total code :
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # sfdisk -1 sfdisk version 3.08 (aeb@cwi.nl, 040824) from util-linux-2.12r Usage: sfdisk [options] device ... device: something like /dev/hda or /dev/sda useful options: -s [or --show-size]: list size of a partition -c [or --id]: print or change partition Id -l [or --list]: list partitions of each device -d [or --dump]: idem, but in a format suitable for later input -i [or --increment]: number cylinders etc. from 1 instead of from 0 -uS, -uB, -uC, -uM: accept/report in units of sectors/blocks/cylinders/MB -T [or --list-types]:list the known partition types -D [or --DOS]: for DOS-compatibility: waste a little space -R [or --re-read]: make kernel reread partition table -N# : change only the partition with number # -n : do not actually write to disk -O file : save the sectors that will be overwritten to file -I file : restore these sectors again -v [or --version]: print version -? [or --help]: print this message dangerous options: -g [or --show-geometry]: print the kernel's idea of the geometry -G [or --show-pt-geometry]: print geometry guessed from the partition table -x [or --show-extended]: also list extended partitions on output or expect descriptors for them on input -L [or --Linux]: do not complain about things irrelevant for Linux -q [or --quiet]: suppress warning messages You can override the detected geometry using: -C# [or --cylinders #]:set the number of cylinders to use -H# [or --heads #]: set the number of heads to use -S# [or --sectors #]: set the number of sectors to use You can disable all consistency checking with: -f [or --force]: do what I say, even if it is stupid /home/user # df -k Filesystem 1k-blocks Used Available Use% Mounted on rootfs 233344 152984 76080 67% / ubi0:rootfs 233344 152984 76080 67% / tmpfs 1024 60 964 6% /tmp tmpfs 256 72 184 28% /var/run none 10240 72 10168 1% /dev tmpfs 65536 4 65532 0% /dev/shm /dev/mmcblk0p2 2064208 213008 1746344 11% /home /home/user # |
Re: memory corrupt
Code:
sudo gainroot |
Re: memory corrupt
here is the output
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # sfdisk --list 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 # |
Re: memory corrupt
Okay, now try to mount the partition after checking the filesystem
Code:
fsck -f /dev/mmcblk0p1 Then mount MyDocs Code:
mount MyDocs All must be done by root (sudo gainroot) |
Re: memory corrupt
Is this a 'read only file system' error?
Were you downloading anything large or using transmission by any chance when this first occurred? |
Re: memory corrupt
i dont know if it is read only or anythin.i dont remember exactly wt i was doing but i think i was sending a movie from my laptop .
here is the out put of michaaa62's code /home/user # fsck -f /dev/mmcblk0p1 fsck 1.41.3.maemo0 (12-Oct-2008) dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN Logical sector size is zero. /home/user # mount MyDocs mount: mounting /dev/mmcblk0p1 on /home/user/MyDocs failed: Invalid argument /home/user # mount MyDocs mount: mounting /dev/mmcblk0p1 on /home/user/MyDocs failed: Invalid argument /home/user # |
Re: memory corrupt
i tried fsck -r but online one line is given
wt else should i do ?? . |
Re: memory corrupt
by the way. when i connect it to the computer it shows the drive but when i click on it it says , please enter Drive (E) .
|
Re: memory corrupt
Quote:
please tell if it is going to be fine . please . i realy want to get it back |
Re: memory corrupt
Working on a solution, just some more testing here. Will be back in an hour, hopefully.
|
Re: memory corrupt
ok .
thanks |
Re: memory corrupt
Hope this will work:
To simulate your situation i just zero'ed the first sector of my external card to reproduce the error message, then copied the backup sector of the filesystem to the first sector. This made a filesystem check possible and all of my data readable again. Code:
dd if=/dev/mmcblk0p1 of=/dev/mmcblk0p1 bs=512 count=1 skip=6 |
Re: memory corrupt
okay . so should i enter an external memory card ??
|
Re: memory corrupt
i pasted ur code . before i enter a memory card .
now when ever i enter sudo getroot it says : password : and i cant write anything else wt should i do ? |
Re: memory corrupt
correct one is "sudo gainroot" not "sudo getroot"
|
Re: memory corrupt
here is the output of the code : there is an error :
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo getroot Password: Sorry, try again. Password: Sorry, try again. Password: Sorry, try again. sudo: 3 incorrect password attempts ~ $ sudo usage: sudo -K | -L | -V | -h | -k | -l | -v usage: sudo [-HPSb] [-p prompt] [-u username|#uid] { -e file [...] | -i | -s | <command> } ~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # dd if=/dev/mmcblk0p1 of=/dev/mmcblk0p1 bs=512 count=1 skip=6 1+0 records in 1+0 records out /home/user # fsck -f /dev/mmcblk0p1 fsck 1.41.3.maemo0 (12-Oct-2008) dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN alleged total clusters: 442377 FATs differ - using second FAT. 4424 8848 13272 17696 22120 26544 30968 35392 39816 44240 48664 53088 57512 61936 66360 70784 75208 79632 84056 88480 92904 97328 101752 106176 110600 115024 119448 123872 128296 132720 137144 141568 145992 150416 154840 159264 163688 168112 172536 176960 181384 185808 190232 194656 199080 203504 207928 212352 216776 221200 225624 230048 234472 238896 243320 247744 252168 256592 261016 265440 269864 274288 278712 283136 287560 291984 296408 300832 305256 309680 314104 318528 322952 327376 331800 336224 340648 345072 349496 353920 358344 362768 367192 371616 376040 380464 checked clusters: 381842 Leaving file system unchanged. /dev/mmcblk0p1: 9878 files, 381842/442377 clusters /home/user # mount /home/user/MyDocs mount: mounting /dev/mmcblk0p1 on /home/user/MyDocs failed: Input/output error /home/user # |
Re: memory corrupt
wt else to do ??
|
Re: memory corrupt
No external card necessary that was just available here for testing and as freemangordon correctly notes:
Code:
sudo gainroot |
Re: memory corrupt
Quote:
|
Re: memory corrupt
Quote:
Code:
sudo gainroot |
Re: memory corrupt
Quote:
|
Re: memory corrupt
Looks like you're almost there.... try this:
Code:
sudo gainroot If the I/O error is an indication, it may be your are having flash failure. It's unlikely, but possible. If so, a reformat (with bad cluster check) may solve it and make it usable again, but that will erase all data. |
Re: memory corrupt
nothing has happened . i still cant access my folders.
i retarted my phone and nothing has happened . from the output . wt did u realize . is everything going ok or there is something wrong ?? |
Re: memory corrupt
I would not think something is lost.
What is the error of the above fsck commands please? |
Re: memory corrupt
sorry i didnt see ur last post .
ok . does it usually takes time to mount ?? couz i didnt see any error |
Re: memory corrupt
thanks alot . now it is working !!!!!!!!!!!!!!!!!!!!!!!!
|
Re: memory corrupt
Can you run this code and show the output? (Don't need the column of numbers from fsck, but otherwise output is desired.)
Code:
sudo gainroot Edit: Lol... Never mind, see it's working now! Do make a backup as quick as you can. Also, you may want to post the answer to this: Code:
sudo gainroot |
Re: memory corrupt
here is the output of the first code
checked clusters: 330880 /dev/mmcblk0p1: 3908 files, 330880/442377 clusters /home/user # mount /home/user/MyDocs /home/user # dmesg | tail -1 [ 1638.872711] slide (GPIO 71) is now open /home/user # and here is the output of the second code : BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # dmesg | tail -15 [ 810.099273] proximity (GPIO 89) is now open [ 810.575775] proximity (GPIO 89) is now closed [ 810.740570] proximity (GPIO 89) is now open [ 836.364837] proximity (GPIO 89) is now closed [ 836.850189] proximity (GPIO 89) is now open [ 913.732025] cam_shutter (GPIO 110) is now closed [ 1137.349151] slide (GPIO 71) is now closed [ 1138.021087] kb_lock (GPIO 113) is now closed [ 1138.356994] kb_lock (GPIO 113) is now open [ 1231.708618] slide (GPIO 71) is now open [ 1255.263519] slide (GPIO 71) is now closed [ 1268.919921] musb_hdrc periph: enabled ep1in for bulk IN, maxpacket 512 [ 1268.919952] musb_hdrc periph: enabled ep1out for bulk OUT, maxpacket 512 [ 1268.919982] g_file_storage gadget: high speed config #1 [ 1638.872711] slide (GPIO 71) is now open /home/user # |
Re: memory corrupt
but can u please tell me how exactly u solved it ??
i want to learn how to do it so that if it happened again i solve it without doing the same as i have done today. and if u know any where where i can learn x-terminal comads and how to use it please tell me . |
All times are GMT. The time now is 18:18. |
vBulletin® Version 3.8.8