|
|
overly complicated
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 hfsthe -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 2and 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.
overly complicated
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)
overly complicated
looks like GeekLog has garbled the patch, the should be a backslash preceding both the '/' surrounding the dev:
awk '/^\/dev\// && |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.13 seconds |
|