Active Topics

 


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#21
Working on a solution, just some more testing here. Will be back in an hour, hopefully.
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#22
ok .
thanks
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#23
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
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#24
okay . so should i enter an external memory card ??
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#25
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 ?
 
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#26
correct one is "sudo gainroot" not "sudo getroot"
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#27
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 #
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#28
wt else to do ??
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#29
No external card necessary that was just available here for testing and as freemangordon correctly notes:
Code:
sudo gainroot
 
Posts: 33 | Thanked: 0 times | Joined on Dec 2010
#30
Originally Posted by freemangordon View Post
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 ??
 
Reply

Thread Tools

 
Forum Jump


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