Active Topics

 


Reply
Thread Tools
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#1
Hey everyone,

Has anyone figured out a clean way to e2fsck the /home filesystem? I noticed in my kernel log that it mounted with errors, but it never runs e2fsck on bootup.

For now I suspended maemo-launcher (kill -STOP) and killed all the subprocesses, as well as the thumbnailer daemon, and anything else that looked like it may write. However, if you kill anything dsme related, it seems to trigger a watchdog that immediately reboots.

I couldn't remount r/o at that point, but it seemed all I/O was quiescent. After a sync, I fsck'd with /home mounted r/w (yeah, yeah, I know .. that's why I'm asking the question! ). Quick reboot -f, and everything seems fine now; filesystem is not in error.

There must be a cleaner way to do this.
 

The Following User Says Thank You to nightfire For This Useful Post:
Posts: 163 | Thanked: 96 times | Joined on Feb 2010 @ Israel
#2
I haven't tried it, but how about adding an init script to do it for you, and remove it when your done?
 
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#3
I suppose it could be done, but I'm wary of inserting anything into the boot process; one mistake and it's time for a reflash. There's no way to see the console at the moment, which is quite annoying.
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#4
Maybe remount it read-only, run e2fsck on it and reboot immediately?
 
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#5
Yeah, but in order to do that you have to kill all processes that have files open in rw mode. One of these processes seem to be monitored by a watchdog that reboots the host.
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#6
In some linux you can create the file "forcefsck" in the root of your partition and it will force fsck on the next reboot. For example "sudo touch /home/forcefsck"

I haven't tried it on N900 so I don't know if it will work. Let us know
 
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#7
Interesting .. didn't know that.

Well, I searched through /etc and /sbin for any mention of forcefsck and found nothing, so I'm guessing that's a no-go. Good idea, though.
 
Posts: 946 | Thanked: 1,650 times | Joined on Oct 2009 @ Germany
#8
Originally Posted by nightfire View Post
Yeah, but in order to do that you have to kill all processes that have files open in rw mode. One of these processes seem to be monitored by a watchdog that reboots the host.
at startup script for that is the way to go.
the first step could be move the script out of event.d/ so that it runs only once.

It would be nice to have such a script installed permanently
(fsck only runs when it is necessary) and let it change the LED while fscking so that you know what its doing.

an alternative is to temporarily disable mounting /home in event.d/rcS-late.
it creates a new /home in rootfs and you can fsck the home partition from there.
then rm -rf /home and reboot.
 

The Following User Says Thank You to titan For This Useful Post:
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#9
Well when I get a chance I guess I'll write something that can execute on bootup and see if I can get it into the repository. Sure would be nice to have a real console instead of that silent boot. :/
 

The Following User Says Thank You to nightfire For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#10
What program, exactly, causes your N900 to reboot when you kill it? Try stopping it with "dsmetool -k".
 
Reply


 
Forum Jump


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