|
|
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.09 seconds |
|