Jump to content

Launch and Use Any Mac OS X App When Booted from OS X Lion Recovery HD Drive


Recommended Posts

Posted

<div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/08/launch-terminal-from-recovery-hd.jpg" alt="Launch Terminal from the Recovery Disk in Mac OS X Lion" title="launch-terminal-from-recovery-hd" width="615" height="228" class="aligncenter size-full wp-image-20127" /></p>

<p>Whether you made a Lion recovery drive with <a href="http://osxdaily.com/2011/08/08/lion-recovery-disk-assistant-tool-makes-external-lion-boot-recovery-drives/">Apple’s Lion Recovery Disk Assistant Tool</a> and you’re booting from that or you’re just relying on the Recovery HD partition, this technique works.</p>

<h2 style="font-size:1.2em;">1) Boot from a Recovery Disk and Launch Terminal</h2>

<p>First things first, regardless of which boot device you use, you have to open the Terminal. </p>

<ul>

<li>Boot from Recovery HD or the external Recovery Drive by holding Option at startup and selecting the disk, boot is completed when you see the “Mac OS X Utilities” window</li>

<li>Click on the “Utilities” menu and pull down to “Terminal”</li>

</ul>

<p>You’ll be confronted with the command line, which is where you can launch other apps. Now is also where it matters whether you’re booting from the internal Recovery HD partition, or an external Lion recovery drive you made with Apple’s assistant tool.</p>

<h2 style="font-size:1.2em;">2) Launch Apps from Macintosh HD While Booted from an External Recovery Disk</h2>

<p>As long as the built-in drive is still functioning and Macintosh HD is mounted, you can still access your full app library while booted from an external recovery disk. All you need to do is use the proper full path to the mounted volume, the default is Macintosh HD but you can find what it is with this command:</p>

<p><code>ls /Volumes/</code></p>

<p>We’ll continue to assume “Macintosh HD” is your hard disk name for this walkthrough. Now here’s the interesting part, typically you can <a href="http://osxdaily.com/2007/02/01/how-to-launch-gui-applications-from-the-terminal/">launch applications from the Terminal</a> with the ‘open’ command, but the Lion Recovery drives have a stripped down set of commands available to them, so that doesn’t work. What to do? Point to full path of the app itself, inside the .app container. I found that important little tidbit on <a href="http://reviews.cnet.com/8301-13727_7-20087663-263/how-to-multitask-in-os-x-lions-recovery-partition/">MacFixIt</a> (screenshot source too), so the format we’ll want to use for launching apps from the external boot disk is:</p>

<p><code>/Volumes/Macintosh HD/Applications/APPNAME.app/Contents/MacOS/APPNAME</code></p>

<p>For example, we can launch Network Utility with:

<code style="font-size:90%;">/Volumes/Macintosh HD/Applications/Utilities/Network Utility.app/Contents/MacOS/Network Utility</code></p>

<p>Be sure to escape any spaces in the path with the backslash for proper execution. You can also set apps to run in the background so that you can continue to use the Terminal by ending the command string with an ampersand:</p>

<p><code style="font-size:90%;">/Volumes/Macintosh HD/Applications/Utilities/Twitter.app/Contents/MacOS/Twitter &</code></p>

<p>Using this method you can actually run <a href="http://osxdaily.com/2011/05/11/multiple-instances-application-mac/">concurrent instances</a> of apps without using the traditional ‘open -n’ command method.</p>

<h2 style="font-size:1.2em;">3) Launch Apps While Booted from Internal Recovery HD Partition</h2>

<p>If you are booting from the internal Recovery HD partition rather than an external recovery drive, the command syntax is shorter and thus slightly easier, because you don’t have to specify which volume to launch the app from.</p>

<p>This time to launch Twitter, it would be:

<code style="font-size:90%;">/Applications/Utilities/Twitter.app/Contents/MacOS/Twitter &</code></p>

<p>And Network Utility would be:

<code style="font-size:90%;">/Applications/Utilities/Network Utility.app/Contents/MacOS/Network Utility</code></p>

<p>Because you don’t have to specify a volume, you can peck around in your /Applications/ directory, just be sure to point the path beyond the .app and into the contents, following this general syntax:</p>

<p><code>/Applications/AppName.app/Contents/MacOS/AppName</code></p>

<p>Some apps are minimally useful in a situation like this, but others are undoubtedly useful. For example, launching Keychain Access could be an easy way to recover app or website specific passwords, although you’d still need the administrator password to unlock the keychain.</p>

<p>However you find a use, this is a great troubleshooting technique because it allows you to branch out from the limited selection of apps available to you when booted from Recovery HD or an <a href="http://osxdaily.com/2011/07/08/make-a-bootable-mac-os-x-10-7-lion-installer-from-a-usb-flash-drive/">OS X Lion install drive</a>.</p>

</div>

<p><a href="http://feedads.g.doubleclick.net/~a/42yNRoR6agJUzTFxlx-aVIvPPRI/0/da"><img src="http://feedads.g.doubleclick.net/~a/42yNRoR6agJUzTFxlx-aVIvPPRI/0/di" border="0" ismap="true"></img></a><br/>

<a href="http://feedads.g.doubleclick.net/~a/42yNRoR6agJUzTFxlx-aVIvPPRI/1/da"><img src="http://feedads.g.doubleclick.net/~a/42yNRoR6agJUzTFxlx-aVIvPPRI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">

<a href="http://feeds.feedburner.com/~ff/osxdaily?a=Kur0tc2dgFI:ESJ4PEmZHgE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Kur0tc2dgFI:ESJ4PEmZHgE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=Kur0tc2dgFI:ESJ4PEmZHgE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Kur0tc2dgFI:ESJ4PEmZHgE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=Kur0tc2dgFI:ESJ4PEmZHgE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Kur0tc2dgFI:ESJ4PEmZHgE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Kur0tc2dgFI:ESJ4PEmZHgE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a>

</div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/Kur0tc2dgFI" height="1" width="1"/>

 

View the full article

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic


×
×
  • Create New...