View Single Post
  #2  
Old November 28th, 2007, 09:30 PM
darrell888 darrell888 is offline
Registered User
 
Join Date: Nov 2007
Location: Toronto, ON, Canada
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
darrell888 is on a distinguished road
The Mac OS X is different from most UNIX/Linux systems. Rather than using the /etc/rc?.d script system it uses a command call launchd. Look at the man page for launchd. It will list the files it uses. It uses the plist files to launch daemons and services.

The launchctl command lets you interact with the launchd. Somewhere in the many plist files, e.g. /System/Library/LaunchDaemon/, is the command that does the automounting of hard drives. You'll need to understand how that works and modify it so it does not attempt to mount your other two partitions. I've only been looking at this for 2 days but it looks like the automounting just mounts everything by default. If your partitions are showing up in /dev then they probably get mounted.

You can also create a /etc/launchd.conf file. This will contain a set of launchctl commands. If you figure out the launchctl command to unmount the partitions this should help.
Reply With Quote