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 13, '03 01:16:00PM
actually you don't need to modify /etc/rc nearly as much on Panther, since it already contains the followin line (which will also check volumes in case of a force reboot)
mount -vat hfs
the -a flag mounts any filesystems in /etc/fstab referenced via /dev/disk* directly, i.e. put the following in /etc/fstab:
/dev/disk0s7 /Volumes/Swap hfs rw 1 2
and make sure /Volumes/Swap exists (BTW, it doesn't matter if a directory used as a mountpoint contains anything, no need to remove it).

the newer reference forms LABEL= and UUID= in /etc/fstab are only understood by autodiskmount which I have been unable to get to run in /etc/rc in Panther (used to work in Jaguar).

With this, the only changes necessary in /etc/rc are then to swapdir and appprofiledir as above.

[ Reply to This | # ]

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
          0)
            # No problems
+            awk '/^\/dev\// && $4=="rw" && $6>0 {
+                 if($3=="hfs") system("fsck_hfs -dp "$1)
+                 else system("fsck -p "$1)}' /etc/fstab
            ;;
          2) 
            # 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 | # ]