Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Disc image wont eject

Disc image wont eject
Thread Tools
kevs
Mac Elite
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jun 3, 2005, 05:41 PM
 
Says my disc image is in use. But it's closed and not in use. what gives?
     
hoopz
Forum Regular
Join Date: Jan 2001
Location: NYC
Status: Offline
Reply With Quote
Jun 3, 2005, 06:14 PM
 
Are there any apps open that were launched when clicking on anything in the disc image (eg, TextEdit if you clicked a Read Me file)? If so, you may need to quit them.
     
kevs  (op)
Mac Elite
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jun 3, 2005, 09:19 PM
 
Yes, I use apps to lauch the photos in there. thanks. Just dont get though why an app that was used for that would tie up ejecting it, since I'm don't with the photo. the photo is closed out.
     
Dog Like Nature
Dedicated MacNNer
Join Date: May 2004
Status: Offline
Reply With Quote
Jun 4, 2005, 12:37 AM
 
Fire up Terminal and do the following:
Code:
mount
Find the /Volumes entry for the volume you wish to quit, and make a note of the /dev/disk value (for example /dev/disk1s2).
Now type
Code:
lsof /dev/disk1s2
to determine any programs that may still be using the volume. You can now kill the processes that are using it, and then be able to unmount it.

Here's an example:
Code:
$ mount /dev/disk0s3 on / (local, journaled) devfs on /dev (local) fdesc on /dev (union) <volfs> on /.vol automount -nsl [184] on /Network (automounted) automount -fstab [200] on /automount/Servers (automounted) automount -static [200] on /automount/static (automounted) /dev/disk1s2 on /Volumes/Skype (local, nodev, nosuid, read-only, journaled, mounted by me)
Code:
$ lsof /dev/disk1s2 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME Finder 10497 me 15r VDIR 14,5 102 40132 /Volumes/Skype/Skype.app ksh 12707 me cwd VDIR 14,5 204 40133 /Volumes/Skype/Skype.app/Contents vim 12728 me cwd VDIR 14,5 204 40133 /Volumes/Skype/Skype.app/Contents
The offending processes (in this case, vim & ksh) can be killed with:
Code:
kill 12728 kill 12707
or, if they fail to go quietly into the night use:
Code:
kill -KILL 12728 kill -KILL 12707
The volume can now be unmounted.
╭1.5GHz G4 15" PB, 2.0GB RAM, 128MB VRAM, 100GB 7200rpm HD, AEBS, BT kbd
╰2.0GHz T2500 20" iMac, 1.5GB RAM, 128MB VRAM, 250GB 7200rpm HD

http://www.DogLikeNature.com/
     
Phil Sherry
Dedicated MacNNer
Join Date: Nov 2004
Location: Stockholm, Sweden
Status: Offline
Reply With Quote
Jun 4, 2005, 08:00 AM
 
...or just log out/in.
     
Appleman
Mac Elite
Join Date: Feb 2001
Location: France
Status: Offline
Reply With Quote
Jun 4, 2005, 09:56 AM
 
Just quit all open apps.
     
kevs  (op)
Mac Elite
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jun 4, 2005, 10:50 PM
 
Ok, I get it, but just curious: again:
why quit all apps, when everything is closed out. just curious thats all. thanks!
case solved.
     
Appleman
Mac Elite
Join Date: Feb 2001
Location: France
Status: Offline
Reply With Quote
Jun 5, 2005, 05:17 AM
 
Originally Posted by kevs
Ok, I get it, but just curious: again:
why quit all apps, when everything is closed out. just curious thats all. thanks!
case solved.
If all apps are closed, items cannot be in use so the disc should be ejectable.
     
kevs  (op)
Mac Elite
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jun 5, 2005, 10:00 PM
 
right got that.
but what I'm saying is that I think everything is closed out. unless I'm wrong.
     
hoopz
Forum Regular
Join Date: Jan 2001
Location: NYC
Status: Offline
Reply With Quote
Jun 6, 2005, 02:14 AM
 
Just to be clear about this, kevs: did quitting the applications in question solve your problem?

If so, and in answer to your most recent question, I might hazard a guess that when an app is opened as a result of double-clicking on a mounted volume, that app might be somehow bound to that document--perhaps memory space might be continued to be allocated to it?

I dunno; I don't really know about these things so much as know of them, so a correction or clarification by someone more knowledgeable than me would be most welcome.
     
hoopz
Forum Regular
Join Date: Jan 2001
Location: NYC
Status: Offline
Reply With Quote
Jun 6, 2005, 02:29 AM
 
In any event, I wish the dialog box could be more informative/powerfull, eg:

This file is still in use by (App in question)

[quit and delete]

[show Application}

[cancel]
     
Appleman
Mac Elite
Join Date: Feb 2001
Location: France
Status: Offline
Reply With Quote
Jun 6, 2005, 05:12 AM
 
Originally Posted by kevs
right got that.
but what I'm saying is that I think everything is closed out. unless I'm wrong.
Have a look with Activity Monitor in Applications -> Utitlities.
You can see exactly what is running and what is not.
     
kevs  (op)
Mac Elite
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jun 6, 2005, 10:18 PM
 
Thanks yes, problem solved.
     
Appleman
Mac Elite
Join Date: Feb 2001
Location: France
Status: Offline
Reply With Quote
Jun 7, 2005, 02:58 AM
 
Originally Posted by kevs
Thanks yes, problem solved.
And what was the problem? (lessons to be learned for the rest of us???)
     
alphasubzero949
Mac Elite
Join Date: Jan 2003
Location: 127.0.0.1
Status: Offline
Reply With Quote
Jun 7, 2005, 03:09 AM
 
Probably an app using the image was open.
     
kevs  (op)
Mac Elite
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jun 7, 2005, 10:48 PM
 
"using" is the key word. It's not using it anymore. yOU know, I definitely think I'm seeing this lot more than before.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:52 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,