Page 1 of 1

[Q] Alternative to rc.local for unmounting Boot Camp?

Posted: 31. Oct 2014, 20:17
by MrBrady
In Mac OS < 10.9, I was able to run Boot Camp (Win7 64bit) in VirtualBox.

Apple's latest OS release, 10.10 Yosemite has removed the ability to use rc.local to unmount and set permissions on a Boot Camp partition. This means that if you're using Boot Camp with Virtualbox, you'll have to manually tweak it after every reboot.

I see that the "proper" way to unmount and set permissions after every boot is with a .plist / launchd, however I have no idea how to do that. Does anyone know how to create a boot script for the following?

Code: Select all

# grant VBox permissions to Bootcamp
sudo chmod 777 /dev/disk0s4
diskutil unmount /dev/disk0s4
EDIT: Just saw a similar post down the page from this one. Yes, it's a Yosemite question, but I also figured somebody on this forum may have a solution.

Re: [Q] Alternative to rc.local for unmounting Boot Camp?

Posted: 1. Nov 2014, 03:29
by ChipMcK
Gleaned from internet:
See man launchd and man launchctl for tips like where to put your plist.
~/Library/LaunchAgents Per-user agents provided by the user.

/Library/LaunchAgents Per-user agents provided by the administrator.

/Library/LaunchDaemons System wide daemons provided by the administrator.

/System/Library/LaunchAgents Mac OS X Per-user agents.

/System/Library/LaunchDaemons Mac OS X System wide daemons.
Also, application Lingon in MAC store

Best