checkfs bootscript error
lfs17 at home.com
Mon Oct 15 20:59:25 PDT 2001
I am getting the following booting error:
/etc/rcS.d/S200checkfs: line 96: syntax error: unexpected end of file
Script started on Mon Oct 15 22:37:33 2001
root:~# cat /etc/init.d/checkfs
# Begin /etc/init.d/checkfs
# Include the functions declared in the /etc/init.d/functions file
# Activate all the swap partitions declared in the /etc/fstab file
echo -n "Activating swap..."
# If the /fastboot file exists we don't want to run the partition checks
if [ -f /fastboot ]
echo "Fast boot, no file system check"
# Mount the root partition read-only (just in case the kernel mounts it
# read-write and we don't want to run fsck on a read-write mounted
/bin/mount -n -o remount,ro /
if [ $? = 0 ]
# If the /forcefsck file exists we want to force a partition check even
# if the partition was unmounted cleanly the last time
if [ -f /forcefsck ]
echo -n "/forcefsck exists, forcing "
echo "file system check"
# Check all the file systems mentioned in /etc/fstab that have the
# fs_passno value set to 1 or 2 (the 6th field. See man fstab for more
echo "Checking file systems..."
/sbin/fsck $force -a -A -C -T
# If something went wrong during the checks of one of the partitions,
# fsck will exit with a return value greater than 1. If this is
# the case we start sulogin so you can repair the damage manually
if [ $? -gt 1 ]
echo -n "fsck failed. Please repair your file "
echo "systems manually by running /sbin/fsck"
echo "without the -a option"
echo -n "Please note that the root file system "
echo "is currently mounted in read-only mode."
echo -n "I will start sulogin now. When you "
echo "logout I will reboot your system."
# If the remount to read-only mode didn't work abort the fsck and print
# an error
echo -n "Cannot check root file system because it "
echo "could not be mounted in read-only mode."
# End /etc/init.d/checkfs
Script done on Mon Oct 15 22:37:52 2001
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message
More information about the lfs-support