Sponsored in part by... Smith Micro StuffIt Deluxe 12: breakthrough compression of MP3 files, PDFs,
iWork and MS Office files! Reduce JPEG file sizes with no loss in
quality, burn to CD/DVD, back up archives to iDisk and more. Buy
today for only $59.99! <http://www.stuffit.com/mac/deluxe/tb/>

 [F] TidBITS  / TidBITS  / TidBITS Talk  /

Encrypted disk image won't close

[simbrowne0]simbrowne0 - 11:30am May 9, 2007 PST
Simon

The security one gets from encrypted disk images is just great (Tidbits last June?) but my G5 iMac has started acting strange.

When using the protected files, there’s a simulated disc image/icon on the desktop and another in the top of the sidebar. Until recently, when I wanted to put the file away and protect the contents, I’d close the disk image by hitting the eject button beside the icon in the sidebar. But this no longer works.

Now a window appears saying “The disk (name) is in use and could not be ejected. Try quitting applications and try again.” So I close all the applications shown as open in the dock and get the same message. The only way to close the file seems to be to restart or shut down.


Mark as Read
  OutlineAll MessagesOlder MessagesOldest MessagesNewest MessagesNewer Messages

Chris Pepper (apparently) - May 10, 2007 12:09 pm (#1 Total: 6)  

Reply to this message
via email  

Photo of Author
Posts: 843
Re: Encrypted disk image won't close

At 11:30 AM -0700 2007/05/09, simbrowne0 wrote:
>The security one gets from encrypted disk images
>is just great (Tidbits last June?) but my G5
>iMac has started acting strange.
>
>When using the protected files, there’s a
>simulated disc image/icon on the desktop and
>another in the top of the sidebar. Until
>recently, when I wanted to put the file away and
>protect the contents, I’d close the disk image
>by hitting the eject button beside the icon in
>the sidebar. But this no longer works.
>
>Now a window appears saying “The disk (name) is
>in use and could not be ejected. Try quitting
>applications and try again.” So I close all the
>applications shown as open in the dock and get
>the same message. The only way to close the file
>seems to be to restart or shut down.

        To find out what's using that filesystem,
use "lsof | protectedvolume", where
"protectedvolume" is the name that shows up on
the Desktop when it's mounted. You should see the
name of the process which is using the
filesystem. You could probably do the equivalent
with Open Files in Activity monitor.

--
Chris Pepper: <http://www.reppep.com/~pepper/>
                              <http://www.extrapepperoni.com/>
The Rockefeller University: <http://www.rockefeller.edu/>

evanssl21 (apparently) - May 10, 2007 12:09 pm (#2 Total: 6)  

Reply to this message
via email  

Photo of Author
Posts: 30
Re: Encrypted disk image won't close

>I’d close the disk image by hitting the eject button beside the icon
>in the sidebar. But this no longer works.
>
>Now a window appears saying “The disk (name) is in use and could not
>be ejected. Try quitting applications and try again.” So I close all
>the applications shown as open in the dock and get the same message.
>The only way to close the file seems to be to restart or shut down.

I've had this problem and finally found that if any file in the
volume has been opened in Classic, it's necessary to stop or restart
Classic. Give it a try.

Art Evans

kish (apparently) - May 10, 2007 12:09 pm (#3 Total: 6)  

Reply to this message
via email  

Photo of Author
Posts: 16
Re: Encrypted disk image won't close

On 09.05.2007, at 20:30, simbrowne0 wrote:
> Now a window appears saying “The disk (name) is in use and could
> not be ejected. Try quitting applications and try again.” So I
> close all the applications shown as open in the dock and get the
> same message. The only way to close the file seems to be to restart
> or shut down.

Did you try to relaunch the finder?

I have the same phenomenon when I am starting a slideshow of pictures
inside a disk image via the context menu (i.e., finder slideshow
function). The finder then often leaves some of the files open so
that the application finder still 'uses' these files.

Haven't found a way around other than relaunching the finder: ctrl-
alt-click the finder icon in the dock, and choose "relaunch" in the
menu. Caution: any unsaved window states etc. may be deleted by this
way.

HTH, Kei.

Chris Page (apparently) - May 10, 2007 12:09 pm (#4 Total: 6)  

Reply to this message
via email  

Photo of Author
Posts: 63
Re: Encrypted disk image won't close

On May 9, 2007, at 11:30 AM, simbrowne0 wrote:

> Now a window appears saying “The disk (name) is in use and could
> not be ejected. Try quitting applications and try again.” So I
> close all the applications shown as open in the dock and get the
> same message. The only way to close the file seems to be to restart
> or shut down.

If you quit everything else and it doesn't help, try quitting Finder.
You can do this by pressing Option while bringing up the menu for the
Finder dock icon. A "Relaunch" command will appear in the menu.

If that fails, logging out/in should do the trick, saving you the
added overhead of a restart, at least.

You can find out exactly which file(s) are open by which processes
using the "lsof" command in Terminal:

   lsof /Volumes/<volume to eject>

If that doesn't reveal anything useful, invoke lsof with the "sudo"
command to see more processes:

   sudo lsof /Volumes/<volume to eject>

That should show you any processes that have files (or directories)
open within that volume.

--
Chris Page - Software Wrangler

  That’s “Chris” with a silent *and* invisible “3”.



Chris Page (apparently) - May 12, 2007 11:40 am (#5 Total: 6)  

Reply to this message
via email  

Photo of Author
Posts: 63
Re: Encrypted disk image won't close

On May 10, 2007, at 12:09 PM, Chris Page wrote:

> You can find out exactly which file(s) are open by which processes
> using the "lsof" command in Terminal:
>
> lsof /Volumes/<volume to eject>

Make that:

   lsof +D /Volumes/<volume to eject>

"+D" tells it to look for open files and directories within the given
directory.

--
Chris Page - Software Wrangler

  That’s “Chris” with a silent *and* invisible “3”.



barefootguru (apparently) - May 14, 2007 5:14 am (#6 Total: 6)  

Reply to this message
via email  

Photo of Author
Posts: 112
Re: Encrypted disk image won't close

On 2007-05-13, at 06:40, Chris Page wrote:

> Make that:
>
> lsof +D /Volumes/<volume to eject>
>
> "+D" tells it to look for open files and directories within the given
> directory.

 From reading the man page, +D actually checks every file and
directory on that tree, which can use a significant amount of resources.

I use:

lsof | grep <volume/file name>

which has always worked for me, and a listing just now includes both
REGular files and DIRectories.

Cheers



  OutlineAll MessagesOlder MessagesOldest MessagesNewest MessagesNewer Messages


 [F] TidBITS  / TidBITS  / TidBITS Talk  / Encrypted disk image won't close




Add a message

To add a message to this discussion, you must be a registered user. Enter your email address below. If you have an account associated with the email address you enter, you will be prompted for your password. If not, you'll be able to create a new account with no fuss.

Enter your email address:

Submit