Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

can't unmount Macintosh HD

I have started up my Macbook from a cloned external drive and can't unmount the internal "Macintosh HD" because it is in use. I have repaired permissions and started in safe mode but this doesn't help.


Thanks

MacBook, Mac OS X (10.7.4)

Posted on Sep 9, 2012 10:50 AM

Reply
Question marked as Best reply

Posted on Sep 9, 2012 2:23 PM

Run this in the Terminal app to determine which files are opened on the int HD precluding unmounting:


lsof /Volumes/"Macintosh HD"/

8 replies

Sep 9, 2012 4:57 PM in response to baltwo

I got this though not sure what to do with it:


lapbuk:~ appla$ lsof /Volumes/"Macintosh HD"/

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

Finder 171 appla 21r DIR 14,2 68 6518486 /Volumes/Macintosh HD/.Trashes/501

com.apple 183 appla txt REG 14,2 97728 6277267 /Volumes/Macintosh HD/Applications/BusyCal.app/Contents/PlugIns/BusyCalDockTile.docktileplugin/Con tents/MacOS/BusyCalDockTile

mdworker 212 appla 8r REG 14,2 6148 4622490 /Volumes/Macintosh HD/Users/appla/Library/Application Support/BusyCal/.DS_Store

Sep 9, 2012 10:40 PM in response to APPLEAL

In the Terminal, run this:


kill -9 171


That should kill the Finder process with PID 171. Then, run the lsof command again. I'm assuming you'll just see:



COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

com.apple 183 appla txt REG 14,2 97728 6277267 /Volumes/Macintosh HD/Applications/BusyCal.app/Contents/PlugIns/BusyCalDockTile.docktileplugin/Con tents/MacOS/BusyCalDockTile

mdworker 212 appla 8r REG 14,2 6148 4622490 /Volumes/Macintosh HD/Users/appla/Library/Application Support/BusyCal/.DS_Store


If so, then run these:


kill -9 183

kill -9 212


Then, the lsof one again. If nothing comes back, nothing's tying up the HD and you should be able to unmount the Macintosh HD.

Mar 25, 2013 3:09 AM in response to APPLEAL

Hello - I'm sure you've fixed this issue now but I thought I'd share with you how I fixed a similar scenario. I tried using baltwo's approach but the infringing application kept on re generating another PID...so I'd kill one, then run the lsof /Volumes/"Macintosh HD"/ in Terminal and another PID had replaced the original...


So - I saw that the infringing app was to do with Photo stream... Funny, as I was operating under an external boot disk and was trying to eject (unmount) the internal drive (Macintosh HD). I went into system preferences (on the boot drive) ----> iCloud -----> Unchecked Photo Streaming ----> and voila! I could unmount the Macintosh HD!


I guess the Boot drive was trying to get the Photo Stream and even though the System Preferences were changed in the Boot Drive, it allowed the HD to quit.


Cheers

can't unmount Macintosh HD

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.