diff --git a/src/etc/rc b/src/etc/rc index d88319d7c..4b7ac09a2 100755 --- a/src/etc/rc +++ b/src/etc/rc @@ -45,13 +45,15 @@ while read FS_PART FS_MNT FS_TYPE FS_MORE; do fi done < /etc/fstab +fsck -C -y / + attempts=0 while [ ${attempts} -lt 3 ]; do + fsck -C -y / if mount -a 2>/dev/null; then # bail if all is well break fi - fsck -y / attempts=$((attempts+1)) done