View Full Version : HOWTO - Fix any filesystem errors found on boot automatically
dcstar
January 16th, 2006, 06:46 PM
Edit /etc/default/rcS to have:
FSCKFIX=yes
Then any errors found will be fixed automatically.
(This really should be a default setting for a distro like Ubuntu so "Ordinary" users don't have to manually run fsck and answer "Y" to any fix prompts they encounter - any "Propeller head" users concerned about losing data after a non-clean exit can set it back to "No". If someone passes idea this onto the Ubuntu developers it may help a lot of people using future releases.......)
UbunT00L
January 30th, 2006, 10:51 AM
I totally agree. My cousin let his computer sit idle for a week because of filesystem errors on boot, and waited until I came over. I simply ran fsck and said yes to fix the errors, and thought to myself.....why isn't this automated? Thanks for the FSCKFIX=yes suggestion, I'll change that the next time I'm over at his house.
magnusbb
January 30th, 2006, 12:49 PM
I agree. Thanks for a great tip.
BLTicklemonster
January 30th, 2006, 10:03 PM
Wait a minute, fix what kind of errors? All errors? Graphics card drivers installed wrong errors? Mouse settings set wrong while trying to set up an internet mouse errors? (like who do you know who doesn't have a mouse with forward and back buttons on their mouse... and ubuntu doesn't load up with them working already... )
I'm interested in hearing more, because this sounds like a really neat trick.
UbunT00L
January 31st, 2006, 12:02 PM
Umm, we're talking about filesystem errors only....
fsck would be the equivilant to windows' scandisk or chkdsk.
sal
January 31st, 2006, 04:25 PM
after using this method this is what i saw on my last reboot:
Tue Jan 31 15:20:01 2006: * Checking root file system e2fsck 1.38 (30-Jun-2005)
Tue Jan 31 15:20:01 2006: /: clean, 104724/1221600 files, 719542/2441880 blocks
Tue Jan 31 15:20:14 2006: /home: clean, 1177/1028160 files, 166497/2054311 blocks
Tue Jan 31 15:20:14 2006: e2fsck 1.38 (30-Jun-2005)
is this normal because i have never seen the "e2fsck 1.38 (30-Jun-2005)" in the boot log before.
any help thanks.
dcstar
February 1st, 2006, 11:17 PM
after using this method this is what i saw on my last reboot:
Tue Jan 31 15:20:01 2006: * Checking root file system e2fsck 1.38 (30-Jun-2005)
Tue Jan 31 15:20:01 2006: /: clean, 104724/1221600 files, 719542/2441880 blocks
Tue Jan 31 15:20:14 2006: /home: clean, 1177/1028160 files, 166497/2054311 blocks
Tue Jan 31 15:20:14 2006: e2fsck 1.38 (30-Jun-2005)
is this normal because i have never seen the "e2fsck 1.38 (30-Jun-2005)" in the boot log before.
any help thanks.
That's exactly what you want to see - if there were any errors you would see the reports of that.
sal
February 2nd, 2006, 09:26 AM
That's exactly what you want to see - if there were any errors you would see the reports of that.
ok, cool. thanks. i just wanted to make sure nothing got screwed up.
BLTicklemonster
February 2nd, 2006, 11:55 AM
Umm, we're talking about filesystem errors only....
fsck would be the equivilant to windows' scandisk or chkdsk.
Good enough, thanks!
captainron042
June 15th, 2008, 05:29 PM
OK, I assume this will fix my startup problem. Unfortunately, I'm a newer Linux user and need a bit more instruction.
Where do I go to edit this? thanks in advance.
BTW, here is a "screenshot" of my error
http://img99.imageshack.us/my.php?image=errordy2.jpg
http://img99.imageshack.us/img99/4029/errordy2.jpg
Cato2
June 28th, 2008, 04:12 AM
Yes, this should fix this error - however you might need to manually fix the error mentioned before you can edit the config file, e.g. type 'fsck /dev/sda3' if that's the filesystem in error.
HunterThomson
July 6th, 2008, 09:09 PM
Where is this in Archlinux? I only have passwd and useradd in /etc/default...
Well I was looking in etc and found rc.sysinit and am thinking this is the same file as the rcs in ubuntu??? Anyway there dosen't seem to be a way to do that in Archlinux.... Could I just add it??? This is just a bash script so I guess I could just wright it my self:)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.