Koozali.org: home of the SME Server

fsck

alan

fsck
« 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

Nathan Fowler

Re: fsck
« Reply #1 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

alan

Re: fsck
« Reply #2 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

Nathan Fowler

Re: fsck
« Reply #3 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.

Michiel

Re: fsck
« Reply #4 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