Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: warning: /etc/fstab doesn't do what you think
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning: /etc/fstab doesn't do what you think



Am Mittwoch, 27. Juni 2001 um 09:00 schrieb Peter Bierman:

[...] Put simply, /dev/disk2s5 for example, might not be the same partition two boots in a row. It usually will be, but isn't required to be. [...]

Here's a snippet which deals with this issue:

--- begin code snippet ---
##
# Handling special swap partition (Markus Hitter).
# Won't hurt if no partition is found/successful mounted.
##

ConsoleMessage "Handling special swap partition"

SWAPDETECTOR="Apple_UFS swap"
rm -rf /private/var/vm/* /private/var/vm/.*
for DISK in /dev/disk[0-9]; do
if pdisk ${DISK} -dump | grep -F "${SWAPDETECTOR}" | read P DUMMY; then
P=${P%:}
mount ${DISK}s${P} /private/var/vm
fi
done
unset SWAPDETECTOR DISK P DUMMY
--- end code snippet ---

Put it before "Mount essential local filesystems" into /etc/rc. Modify SWAPDETECTOR to whatever makes your swap partition unique.

Unfortunatly, the Volume still appears on the OS X Desktop -> either no fully satisfying solution.


Markus


- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/


References: 
 >warning: /etc/fstab doesn't do what you think (From: Peter Bierman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.