Active Topics

 


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#11
Please try to use some other option for the fsck command. The error message just states that interactive use is required.
First try the '-r' option instead of '-af'
Code:
fsck -r /dev/mmcblk0p1
 

The Following 3 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 3 | Thanked: 2 times | Joined on Jun 2012 @ Poland
#12
Success ! Thank You for help.
Code:
/home/user # umount /dev/mmcblk0p1
/home/user # fsck -r /dev/mmcblk0p1
fsck 1.42.5 (29-Jul-2012)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
  65:01/00
1) Copy original to backup
2) Copy backup to original
3) No action
? 1
/.sounds
 Start does point to root directory. Deleting dir. 
/.videos
 Start does point to root directory. Deleting dir. 
/.documents
 Start does point to root directory. Deleting dir. 
/.images
 Start does point to root directory. Deleting dir. 
/.apt-archive-cache
 Start does point to root directory. Deleting dir. 
Reclaimed 6180 unused clusters (405012480 bytes).
Free cluster summary wrong (339905 vs. really 346085)
1) Correct
2) Don't correct
? 1
Perform changes ? (y/n) y
/dev/mmcblk0p1: 18538 files, 96292/442377 clusters
/home/user # fsck -af /dev/mmcblk0p1
fsck 1.42.5 (29-Jul-2012)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Orphaned long file name part ".sounds"
  Auto-deleting.
Orphaned long file name part ".videos"
  Auto-deleting.
Orphaned long file name part ".documents"
  Auto-deleting.
Orphaned long file name part ".images"
  Auto-deleting.
Orphaned long file name part ".apt-archive-cache"
  Auto-deleting.
Performing changes.
/dev/mmcblk0p1: 18533 files, 96292/442377 clusters
/home/user # fsck /dev/mmcblk0p1    
fsck 1.42.5 (29-Jul-2012)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
/dev/mmcblk0p1: 18533 files, 96292/442377 clusters
/home/user # mount /dev/mmcblk0p1
I must manually add this deleted dirs and everything is OK
 

The Following User Says Thank You to kowalski For This Useful Post:
Posts: 65 | Thanked: 42 times | Joined on Jun 2014
#13
Originally Posted by michaaa62 View Post
You need 'rootsh' package installed via Hildon Application Manager for these X-Terminal commands to perform the file system check.
Code:
sudo gainroot
umount /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1
Yes, do the fsck command twice!
For best results better copy and paste the commands to prevent typos.
If any persistent error is put out, please post the full error message for further investigation here.
here is the result
home/user # umount /dev/mmcblk0p1
/home/user # fsck -af /dev/mmcblk0p1
fsck 1.42.5 (29-Jul-2012)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offsetriginal/backup)
65:01/00
Not automatically fixing this.
/dev/mmcblk0p1: 4307 files, 191219/442377 clusters
/home/user # fsck -af /dev/mmcblk0p1
fsck 1.42.5 (29-Jul-2012)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offsetriginal/backup)
65:01/00
Not automatically fixing this.
/dev/mmcblk0p1: 4307 files, 191219/442377 clusters
/home/user # mount /dev/mmcblk0p1
 

The Following User Says Thank You to abdel_95 For This Useful Post:
Posts: 65 | Thanked: 42 times | Joined on Jun 2014
#14
please help me to solve this problem
 

The Following User Says Thank You to abdel_95 For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#15
Originally Posted by abdel_95 View Post
please help me to solve this problem
What about this one?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 65 | Thanked: 42 times | Joined on Jun 2014
#16
Originally Posted by michaaa62 View Post
Please try to use some other option for the fsck command. The error message just states that interactive use is required.
First try the '-r' option instead of '-af'
Code:
fsck -r /dev/mmcblk0p1
here is what i get when i type it Nokia-N900:~# fsck -r /dev/mmcblk0pq
fsck 1.42.5 (29-Jul-2012)
e2fsck 1.42.5 (29-Jul-2012)
fsck.ext2: No such file or directory while trying to open /dev/mmcblk0pq
Possibly non-existent device?
Nokia-N900:~# fsck -r /dev/mmcblk0p1
fsck 1.42.5 (29-Jul-2012)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offsetriginal/backup)
65:01/00
1) Copy original to backup
2) Copy backup to original
3) No action
?
what should i do?
 

The Following User Says Thank You to abdel_95 For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#17
Originally Posted by abdel_95 View Post
here is what i get when i type it Nokia-N900:~# fsck -r /dev/mmcblk0pq

what should i do?
At first type correctly (or copy/paste) ...

--
Oops, sorry.
Missed the middle part.

Iirc I once ran into that, but can not remember which option I used. For sure I made backups of those sectors (dd).
Run (as root):
Code:
dd if=/dev/mmcblk0p1 of=/home/user/boot.sector bs=512 count=1
dd if=/dev/mmcblk0p1 of=/home/user/backup.sector bs=512 count=1 skip=6
Now you will have save backups of both sectors and may try the variant 2 (copy backup to boot).

If that does not work do (it should, so post/ask before doing):
Code:
dd if=/home/user/boot.sector of=/dev/mmcblk0p1 bs=512 count=1
dd of=/home/user/boot.sector of=/dev/mmcblk0p1 bs=512 count=1 seek=6
And maybe you should follow michaaa62's advice below.
And read about testdisk.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2014-10-01 at 13:54.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#18
First make a backup of everything, that is important for you to some other location, just in case something bad happens along the way!!!

Because you cannot write to the file system since the file system corruption forces the read-only, you could safely copy the backup to the original, solution 2 from fsck. This backup represents the fully working state, but there might still be more questions to solve for fsck.

Last edited by michaaa62; 2014-10-01 at 13:47.
 

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

Tags
maemo 5, nokia n900


 
Forum Jump


All times are GMT. The time now is 16:20.