Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'autodiskmount does work in Panther rc script... BUT don't use it!!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
autodiskmount does work in Panther rc script... BUT don't use it!!
Authored by: EatingPie on Nov 13, '03 10:46:10PM

To get autodiskmount to work in Panther, you need to sleep after the call. IE

/sbin/autodiskmount -d
sleep 1

In Panther, a lot of stuff in the /etc/rc script runs in parallel. The /etc/rc script executes it, but does not wait for it to return before going on to the next step. Doing the sleep ensures that autodiskmount completes before the /etc/rc script gets too far afield.

Note that my original version of this hint used autodiskmount rather than mount_hfs. But once my swap overflowed the partition (ooh bad!), that method never worked again without intervention on my part... and was flakey from then on.

I still overflowed my swap after implementing the mount_hfs method, and much to my surprise it did recover... without any intervention on my part. And still works!

So I do not recommend using autodiskmount in Panther's /etc/rc script! And I say this as one of the original people who suggested it for use in Jaguar, so I'm not making this statement lightly.


[ Reply to This | # ]