Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



On mercredi, juin 27, 2001, at 09:00 , Peter Bierman wrote:

I've seen a bunch of messages here lately that describe using /etc/fstab to mount volumes at boot.

You don't want to use /etc/fstab on darwin.

Drives are detected and mounted asychronously, which means that the same physical disk might be assigned a different /dev/diskN node depending on how quickly other devices respond to bus probing.

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.


If you want to put your VM files on a dedicated partition, reorder the startup items dependencies so that VM is started after volumes are mounted. Have VM specify the swapfiles by the full path /Volumes/somedisk/somewhere.

It seems to not be in startup items dependencies, but in /etc/rc... And the problem is bigger than that...
Because if we launch SystemStarter before launching dynamix_pager, all startup services will launch before swap is activated, and if there is not enough RAM, it could be buggy...
The best way is then to create a StartupItem for dynamic_pager and play with dependencies...

Not too easy...

Or use the fstab, and hope that the drives always respond to bus probes in the same order.

Oh... Is it a bug or a feature ?.. :-)

It's problematic for others uses of fstab...
What about using another partition for /Applications, or for /Users ?
Is the only way to do this is to make a symbolic link from /Volumes/myApplicationPartition to /Applications ?
It's not a "beautiful" way... it's not "transparent"... :-///

--
Jayce Piel ( email@hidden )
************* MosX.net *************
Le premier site Web sur MacOS X (Server) en frangais :
<http://www.mosx.net/> email@hidden




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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.