I've got some scripts here that should allow an SME server using ext2
to boot up unattended in the case of ext2 file system corruption.
I'm aware that there could be some data loss issues associated with
this.
Does anybody have idea on a better method for allowing systems to boot
up without user intervention in the case of file system errors?
This is based upon SME Server 5.1.2. I'm not sure whether it would be
applicable to newer versions.
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
failure "$STRING"
echo
echo
echo "*** An error occurred during the file system
check."
echo "Unmounting file systems"
umount -a
mount -n -o remount,ro /
initlog -c "fsck -T -R -A -s -a -y $fsckoptions"
echo "Automatic reboot in progress."
reboot
--
James Robertson
System Administrator
http://www.d2p.com.au
--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org