Proposal for change mount script
Денис Паук
0lvin at ukr.net
Sat Jan 19 16:47:14 CET 2008
Hello!
Existing script test file system very slowly on my pc. Approximately 180 seconds.
If it change to call fcsk with option -A speed up to approximately 6 seconds.
In man pages (FSCK(8) ) you can see:
/
-A Walk through the /etc/fstab file and try to check all file sys-
tems in one run. This option is typically used from the /etc/rc
system initialization file, instead of multiple commands for
checking a single file system.
/
This call using on lfs. May be this change needed on lunar script?
Yours faithfully, Denis.
Example patch:
-----
--- /etc/init.d/mount 2008-01-06 08:50:33.000000000 +0000
+++ /root/mount 2007-10-27 17:42:09.000000000 +0000
@@ -218,13 +218,16 @@
fi
# check filesystems
- FSCKLEVELS=$(sed 's/#.*$//g' /etc/fstab | awk '($6>0){print$6}' | sort -n | uniq)
- if [ -n "$FSCKLEVELS" ]; then
- echo "Checking file systems:"
- for FSCKLEVEL in $FSCKLEVELS; do
- for FS in $(sed 's/#.*$//g' /etc/fstab | awk "(\$6==$FSCKLEVEL){print\$1}"); do
-
- run_with_msg_and_exit_codes " * Checking $FS" "fsck -T -C -y -V $FORCE $FS" "0" "1" ""
+ #FSCKLEVELS=$(sed 's/#.*$//g' /etc/fstab | awk '($6>0){print$6}' | sort -n | uniq)
+ #if [ -n "$FSCKLEVELS" ]; then
+ # echo "Checking file systems:"
+ # for FSCKLEVEL in $FSCKLEVELS; do
+ # for FS in $(sed 's/#.*$//g' /etc/fstab | awk "(\$6==$FSCKLEVEL){print\$1}"); do
+ #
+ # run_with_msg_and_exit_codes " * Checking $FS" "fsck -T -C -y -V $FORCE $FS" "0" "1" ""
+ #lfs
+ fsck $(FORCE) -a -A -C -T 2>/dev/null
+ #/lfs
if [ $? -ge 2 ]; then
echo ""
echo " *** fsck failed! ***"
@@ -235,9 +238,9 @@
sulogin
reboot -f
fi
- done
- done
- fi
+ # done
+ # done
+ #fi
fi
-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://foo-projects.org/pipermail/lunar-dev/attachments/20080119/4bc706b9/attachment.html
More information about the Lunar-dev
mailing list