maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   How to check partitions (fsck) (https://talk.maemo.org/showthread.php?t=43698)

maemo.it 2010-12-15 17:31

Re: How to check partitions (fsck)
 
hi guys, it's possible to schedule periodically fsck at boot time (eg: once a mounth) at start up, before maemo mounts partitions? like ubuntu..
it should be a great stuff!!

michaaa62 2010-12-15 19:37

Re: How to check partitions (fsck)
 
Please look into the options of tune2fs.
There is the -c for maximum mount count and there is -i for intervals between checks.

maemo.it 2010-12-15 20:59

Re: How to check partitions (fsck)
 
Thank you michaaa62 but I don't know if tune2fs works with ubifs (and, more general, if exists a tool for this filesystem!!).
I sought on internet about tune2fs and ubifs without success...
I opened a new thread to know it.
I hope no reflash one more time...
:(

michaaa62 2010-12-15 22:20

Re: How to check partitions (fsck)
 
Quote:

Originally Posted by maemo.it (Post 897636)
Thank you michaaa62 but I don't know if tune2fs works with ubifs (and, more general, if exists a tool for this filesystem!!).
I sought on internet about tune2fs and ubifs without success...
I opened a new thread to know it.
I hope no reflash one more time...
:(

Surely only appliable to /home partition, you are right

debernardis 2010-12-16 05:45

Re: How to check partitions (fsck)
 
Backupmenu by RobbieThe1st has fsck of everything except rootfs, and can expose also the /opt fs in mass storage mode to an external computer to fsck it.

maemo.it 2010-12-16 10:10

Re: How to check partitions (fsck)
 
Quote:

Originally Posted by debernardis (Post 897869)
Backupmenu by RobbieThe1st has fsck of everything except rootfs, and can expose also the /opt fs in mass storage mode to an external computer to fsck it.

Mydocs partition is easy to check without connect n900 to pc in mass storage mode.
from terminal:
root
umount /dev/mmcblk0p1
fsck /dev/mmcblk0p1

problems are with /dev/mmcblk0p2 and p3 partitions...
debernardis please, how to fsck /opt when n900 is connected to pc as mass storage?
I can see only /Mydocs (/dev/mmcblk0p1)
thank you

edit: i read your reply to my thread how to check ubifs. about /opt/ i had to install and use backupmenu application. thank you :)

maemo.it 2010-12-16 16:17

Re: How to check partitions (fsck)
 
ok thanks to backupmenu I checked and corrected /opt/ but I'm sure I've to check rootfs too. since it seems impossible to check it, maybe I can backup /opt/ and /Mydocs/ partitions, reflash device and restore its (so in this case I should correct just rootfs). what do you thik about it? Can I do that or after reflash I loose links from rootfs and /opt/?

debernardis 2010-12-16 17:36

Re: How to check partitions (fsck)
 
Well you could as well reflash rootfs and reinstall your apps without restoring /opt, because /opt contains the majority of apps files. You lose only the contents of /home, but a recent backup (with the stock backup app) should contain most of it. so the only thing you should take care to backup is MyDocs - and this especially if you intend to flash also the emmc, which erases MyDocs.

maemo.it 2010-12-16 18:05

Re: How to check partitions (fsck)
 
mmmhhh reflashing everytime there is a rootfs problem is too much a windows-like method! :D
I prefer use a tool like fsck using reflash mode just for extreme situations! ;)

N900Roger 2011-02-02 12:16

Re: How to check partitions (fsck)
 
Quote:

Originally Posted by debernardis (Post 897869)
Backupmenu by RobbieThe1st has fsck of everything except rootfs, and can expose also the /opt fs in mass storage mode to an external computer to fsck it.

Hi everybody.

My N900 is with custom kernel, over-clocked, a bunch of apps (incl. RobbieThe1st - latest ver - i think its 0.62-1) and it was working fine, till today. When i was cropping the picture on the phone, it restarted.

Few hours before that I fsck-ed all partitions with "RobbieThe1st" and they were OK. After crash, I checked them again and on "Checking the OptFS..." it gave me this prompt:

"Errors may have been encountered: code:4 /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY;
RUN fsck MANUALLY (i.e., without -a or -p options)"

I think this is /home path, so many things on the phone are not working (obviously :( )

I tried to fsck on tablet, but I cant unmount /home.
I was googling whole day, but just cant find a solution.

Now here comes the question:
How can I fsck /mmcblk0p2 via terminal on OSX?
I am a noob, so please explain in details :rolleyes:

A big thanks to one with an answer and I hope I would not need to reflash N900 again.


All times are GMT. The time now is 22:00.

vBulletin® Version 3.8.8