maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   memory corrupt (https://talk.maemo.org/showthread.php?t=67208)

michaaa62 2010-12-20 19:12

Re: memory corrupt
 
Working on a solution, just some more testing here. Will be back in an hour, hopefully.

awahmohamad 2010-12-20 19:44

Re: memory corrupt
 
ok .
thanks

michaaa62 2010-12-20 19:50

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
fsck -f /dev/mmcblk0p1
mount /home/user/MyDocs


awahmohamad 2010-12-20 20:41

Re: memory corrupt
 
okay . so should i enter an external memory card ??

awahmohamad 2010-12-20 20:49

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 ?

freemangordon 2010-12-20 20:52

Re: memory corrupt
 
correct one is "sudo gainroot" not "sudo getroot"

awahmohamad 2010-12-20 20:55

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 #

awahmohamad 2010-12-20 20:58

Re: memory corrupt
 
wt else to do ??

michaaa62 2010-12-20 20:58

Re: memory corrupt
 
No external card necessary that was just available here for testing and as freemangordon correctly notes:
Code:

sudo gainroot

awahmohamad 2010-12-20 21:07

Re: memory corrupt
 
Quote:

Originally Posted by freemangordon (Post 900822)
correct one is "sudo gainroot" not "sudo getroot"

owww . yea . i am sorry , i dont know anything about these comands . i corrected it and i wrote the output . is it showing that everything is going fine ??


All times are GMT. The time now is 05:42.

vBulletin® Version 3.8.8