Anyone? Hylton Conacher (ZR1HPC) wrote:
Hi,
Running SuSE 9.0 here.
I have had a couple of fsck failures on booting my machine and whilst this is not many, I would like to prevent data loss as much as possible until I can implement a thorough backup solution.
I therefore want to test the harddrives for impending failure and also check the filesystem a disk that is OK as without an error free fs the disk is mostly useless as the fs allows data to be written to and stored on the disk. Should an fsck error occur on boot in future I plan to run #e2fsck -pcv -C fd /dev/hd<faulty partition number> as opposed to plain #fsck /dev/hd<faulty partition number>
I am aware of the SMARTCTL(courtesy of Carlos), and TUNE2FS programs to complete the above task but do not know how to implement them so that these programs are run at various intervals when the machine is powered on. I have run #smartctl -a on both the hard drives and saw that SMARTCTL was enabled on both.
My personal feeling is that TUNE2FS is adequate for my system but I set the fsck parameters a long time ago on all of my partitions with the tune2fsck command and now would like to change the settings.
I would like to run a fsck at varying times on the different partitions so that, while the disk might fail, the fs on it would be correct.
Looking at the tune2fsck man page I have decided given the advice that, I should stick to the latter of either mount_count or time dependency checking.
So I figured I needed the following:
#tune2fs -c0 -id<days between checks> /dev/hdd<partition number>
This would disable to mount_count checking and run a check on ? no of days on the given device. However no matter how I have tried to amend it to work each time I run the command it just gives me the syntax help(Which really isn't any help).
Would someone help please with the syntax and my thought process.
Tnx
-- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================