Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: alan on May 28, 2003, 05:24:10 AM

Title: fsck
Post by: alan on May 28, 2003, 05:24:10 AM
What are the parameters for fsck file checking at the root level. My error message is ;
repair filesystem 1 #

repair filesystem 2 #
etc
thanks
Title: Re: fsck
Post by: Nathan Fowler on May 28, 2003, 08:28:20 AM
What version, 5.6 is ext3, while 5.5 and below are ext2.  It should be as easy as fsck.ext2/ext3 /dev/hdXY where X is the drive letter and Y is the partition number.  You can pass --help with fsck for more options, but I think you want -a -y -c
Title: Re: fsck
Post by: alan on May 29, 2003, 08:24:10 PM
Thanks very much it worked. Do u have advice about rebooting  and automatically load a redirect port 25 program
Title: Re: fsck
Post by: Nathan Fowler on May 29, 2003, 08:30:57 PM
Sure, add the command to the bottom of /etc/rc.d/rc.local

I'm assuming you may want to use ipmasqadm portfw or you may also try redir from http://www.stickit.nu/utils

If you have questions about the syntax rules let me know and I can construct one for you.
Title: Re: fsck
Post by: Michiel on May 29, 2003, 09:24:55 PM
Rather than using rc.local, it's better to put a script or symlink in /etc/e-smith/events/local. It has the same effect and will not be overwritten next time you performe an update or upgrade.
Michiel