Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'overly complicated' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
overly complicated
Authored by: daniel_steffen on Nov 14, '03 07:32:22AM
one additional detail: if your filesystems in /etc/fstab are not all HFS journaled, you need to ensure fsck is run on them in before the mount -vat in /etc/rc; as, unfortunately, unlike mount, fsck has still not been fixed to respect /etc/fstab, even though its manpage says it does...

For instance the following will emulate the advertised behaviour of fsck:

--- /etc/rc.boot.orig   Thu Sep 18 14:29:41 2003
+++ /etc/rc.boot        Fri Nov 14 18:12:24 2003
@@ -113,6 +113,9 @@
        case $? in
            # No problems
+            awk '/^\/dev\// && $4=="rw" && $6>0 {
+                 if($3=="hfs") system("fsck_hfs -dp "$1)
+                 else system("fsck -p "$1)}' /etc/fstab
            # Request was made (via SIGQUIT, ^\) to complete fsck
with this change, any read-write volumes referenced via /dev/disk* in /etc/fstab (and with a fs_passno field > 0) will get mounted at startup in /etc/rc regardless of whether they have been unmounted cleanly. (with _no_ changes required to /etc/rc)

[ Reply to This | # ]
overly complicated
Authored by: daniel_steffen on Nov 14, '03 08:33:59PM
looks like GeekLog has garbled the patch, the should be a backslash preceding both the '/' surrounding the dev:
awk '/^\/dev\// &&

[ Reply to This | # ]