Re: Disabling auto-mounting of CDROM
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.18 (Macintosh/20081105) Hello, The first thing I tried was removing disk arbitration: http://www.forensicswiki.org/wiki/Disabling_Macintosh_Disk_Arbitration_Daemo... Any suggestions would be appreciated. Thanks, Shayne Wissler ------------------------------------------------------------------------ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/jason%40sigio.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Shayne Wissler wrote: I'm trying to get OSX to stop automounting the CDROM. This is important for an application I'm writing that uses cdrecord--the automounting conflicts with cdrecord, and I don't need automounting. I work around this in a script that I wrote to run from the command line that uses cdrecord. The script checks for a mounted CDROM and unmounts it if necessary. The relevant bit is pasted below: mounted=$(mount | grep -E '/Volumes/[[:digit:]]{8}_[[:digit:]]{6}' | cut -f3 -d\ ) if [[ "${mounted}" != "" ]] ; then diskutil unmountDisk ${mounted} fi Granted that looks for a disc with a name identical to how my script formats the name of the ISO image, so it is a bit fragile in that respect. If you're already using NSTask or system() to run cdrecord, you could also use it to run diskutil to unmount the disc. Also, is there some reason that you are using cdrecord instead of Disc Recording framework or hdiutil? I am considering changing my script to use the Apple-provided tools instead of cdrecord/mkisofs. That caused repeated crashing of metadata.mds, and eventual kernel panic. So I disabled that daemon. The messages went away but my system still panics after 10min or so. This email sent to jason@sigio.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Jason Stephenson