10.3: A fix for local drives not mounting until user login

Nov 11, '03 10:17:00AM

Contributed by: Anonymous

I was running into a problem where non-IDE drives would not mount at startup until a user logged in at the GUI. In an all-SCSI system, this meant that I couldn't ssh into the machine and access my volumes (outside of /), and startup scripts that required a separate volume (like moving swap to a different partition/disk) wouldn't run. A solution is to create a file at /Library -> Preferences -> SystemConfiguration -> autodiskmount.plist, with contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
<plist version="1.0">
NOTE: The !DOCTYPE entry is shown on two lines; enter it as one with a space between the sets of quotes.

This tells autodiskmount to mount all local volumes at startup regardless of whether they are potentially removable (or whether the user has logged in yet). This was the issue, by the way. Apple decided to mount (potentially) removable volumes only while a user was logged in at the GUI. Users were assuming that removable volumes got unmounted when they logged out, and were causing file system corruption by disconnecting them while they were still live mounted file systems.

This works in Panther. I'm pretty sure that it also works for Jaguar, if this was even an issue. I don't remember anymore since I've been running Panther on my SCSI machine since the developer preview.

Comments (21)

Mac OS X Hints