Encrypted Disk Image - Eject on Sleep?

Is it possible to setup my computer so that an "open" password-protected Encrypted Disk Image will automatically eject itself on shutdown, sleep or logout. If so,how?

Disk image files are dismounted when the computer shuts down or restarts. In the "Security" system preference, you can set the computer to require a password to wake from sleep or screensaver.

Similar Messages

  • Encrypted disk image on external drive prevents that drive from ejecting

    I've tested this a few different ways, and it seems to be a rather consistent problem.
    I have an external USB hard drive (seagate) and on that drive I use encrypted disk images to store my data.
    (because it's a portable drive, I'm nervous I'll lose it and then someone will have access to my stuff).
    So anyway, whenever I mount the sparse bundle disk image, when it comes time to eject the drive (after ejecting the disk image of course), it hangs for a while and then the Finder says it can't eject, but that I can Force Eject the drive.  When I chose to Force Eject, it works, but I don't like having to force it every time.
    Anyone know what's up?
    Thanks,
    Brian.,

    Open Disk Utility > File > New >Blank Disk Image...
    or use the "Option-⌘-N" Key combo (with Disk Utlity open).
    Kj

  • Encrypting Disk Images

    Hi,
    I've followed several guides to create an encrypted disk image so i can hide some private files on my Mac - All the guides said the same way and one was the one here on Apples site and still i have no luck.
    I create the disk image and when i put the files in it, eject the disk and try to mount the disk again from the DMG file it doesn't ask for a password. The only solution i can see is that it is because this does not work as i am admin and trying to password a file in my on account? Does this only work for shared folders with other users or is there another explanation as to why this won't work?
    Thanks

    Well Keychain is really there for your convenience. It remembers your passwords so that you don't have to enter them when they are needed but it is sort of a security risk of you just leave your mac sitting there and your keychain unlocked. However, these passwords can only be used while the keychain is unlocked. An admin password is needed to actually view the password.
    You can lock an unlock the keychain manually or have it lock automatically after a certain amount of time (in keychain access go to Edit -> Change settings for keychain "login") or when your mac sleeps. But you might want to consider the security of your mac as a whole instead of just the keychain. For example: is it easier to keep the keychain locked or is it easier to prevent access to your computer as a whole (like disabling automatic login and requiring a password from waking from sleep?).
    Steve

  • Encrypted disk image sometimes mounts without password

    I have an encrypted sparsebundle disk image containing sensitive information.  On occasion (maybe one time out of ten), I'm able to mount it without being prompted for the password.
    The password for the image is not stored in my keychain.  Can anyone offer advice on this issue?

    I was having exactly this same problem!
    I keep a small encrypted disk image storing sensitive banking information. I do NOT have the option to store passwords in Keychain checked, and I verified that the password is not being stored in Keychain.
    Yet, when I double-clicked the supposedly encrypted sparsebundle disk image, it opened right up and mounted - no password required! Unbelievable, right? So I started to investigate.
    I first noticed this behaviour in Mountain Lion, I'm running 10.8.4 on a 2.7 GHz 15" MBPr.
    In past versions of OS X I would mount the volume to work on it by double-clicking on the disk image, enter my passowrd, and then Eject the volume either by dragging to the trash or clicking the Eject button on the Sidebar. The next time I would try to access the disk image by double-clicking it, it would again prompt for a password. All good.
    What seems to be happening in ML is, using the same workflow, even though the volume is disappearing from Finder, the disk image is not actually being unmounted!
    When I go to Disk Utility, the disk image is still mounted, but the volume is grayed out. When I Eject the disk image in Disk Utility, it then reverts to the expected bahaviour, and double-clicking on the disk prompts for a password.
    So the workaround seems to be when finished working on the volume, go to Disk Utility and manually Eject the disk image (as opposed to just the volume it mounts) to ensure it has unmounted and is thus again encrypted. The reason for it sometimes requiring a password, sometimes not is probably because after a restart of the computer it would unmount all disks, and then be unable to re-mount it until the password is entered. But in between, unless you were aware of this behaviour anyone with access to the disk image can view its contents.
    What a terrible security flaw IMO, as there is no visual indication in Finder that the disk image is still unprotected after you unmount its volume and that icon disappears! I'm surprised this hasn't gotten more attention.
    Incidentally brian_c, I tried to look at your linked videos but it returns the message that the videos violated the TOS of the site...?

  • Encrypted Disk Image to Password Protect Folder Not Working!

    I have followed the instructions exactly for creating a Disk Image in order to password protect a folder.  Folder contains multiple types of files including images, pdfs, etc.  Here is what I've done and what happens:
    In Disk Utility I created a New Disk Image from Folder.  I chose the folder, which I have on my Desktop, and clicked Image.  I gave the Disk Image a new name, placed in on my Desktop, indicated the image format as read/write and chose the 128-bit encryption.  I chose a very strong password and unchecked the remember password box.  At this point, all seems to have gone well.
    Now, back to my Desktop.  I have two things going on.
    1. The initial folder that I wanted password protected is still present.  Am I supposed to just send this to the Trash?
    2. When I double click on the the new .dmg file that I've created, I am asked for my password, which I put in.  Then, nothing.  I mean, nothing happens.  It doesn't open, it doesn't do anything.  I can click on it and choose Open with DickImageMounter, and nothing happens.  I can open with Disk Utility, but this just gives me the normal options to eject, burn, restore, etc.
    I don't know why I can't get this to work properly, and I'm a little annoyed that Apple can't make it as simple as selecting a folder and having the option to password protect it, just like you can a normal file.  PLEASE HELP!
    Thanks.

    As of OS X 10.7.4, Disk Utility had a bug that prevented it from creating an encrypted disk image with a password of more than 10 characters. I haven't checked recently to see whether that bug has been fixed, but from your report it seems not to have been. There is a workaround, but it's complicated.

  • Alias to open a file in an encrypted disk image

    Deleted.

    There is a quick and simple test, could someone with Lion installed be so kind as to do this:
    1. Use Disk Utility (or Knox if they own the app) to create an encrypted disk image on the Desktop called Test
    2. Mount the image, open TextEdit and paste a page of text into the window, then save the file in the mounted disk image
    3. Paste another page of text into the TextEdit window
    Open Terminal, navigate to /Volumes/Test, view the hidden files in the directory & post the results here.
    All you need to do to clean up is eject the disk image then drag the .sparsebundle file to the Trash.
    Cheers

  • Creating a LARGE Encrypted Disk Image

    Hello,
    I have to encrypt a LARGE external Hard Drive for my work (a 1 Terabyte external drive, which comes to about 930 gigs to encrypt).
    I have to do one of the regular encrypted disk images, not one of those expandable ones.
    I know that encrypted disk images take a long time to create, as I’ve created smaller ones in the past and they take hours.
    Does anyone know how long it will take to create an encrypted disk image of this size?
    AND, since it will probably take quite a while, I was wondering if it is BAD for my MacBook Pro or the external drive itself to write information for this long of a period. I just want to make sure I don’t damage anything.
    Thanks for any help.

    I did a 400 GB one and it must have taken an hour to get the password prompt, a couple more for the creation, and another for formatting and mounting.
    If you have a bed and sleep daily, as I suspect you do, start an hour before bed, enter the password and it should be done by morning.
    You don't need a 900 GB image unless you have one 900 GB file which I doubt. Make one smaller one say 300, then copy it twice. The password will be the same in all 3 copies.
    If you look at activity monitor not much is going on during all this so don't think the house will burn down (or your pants - see other question posted today).

  • Encrypted Disk Image - Can't find it

    I just created a 1GB encrypted disk image using the Disk Utility program on my macbook (Macintosh HD). After I created it, I put some files in it. Then I "ejected" it, logged off, and then logged back on. It is no longer on my desktop. I tried doing a search and still can't find it.
    So...how did I find it and how do I create a short cut so I don't run into this again?
    Regards,
    New Apple User

    To expand a little on Steve Sherriff1's answer: when you created the encrypted disk image in Disk Utility, it created a file with a .dmg extension, saving it wherever you specified (if you open Disk Utility and again select 'New -> Blank Disk Image' from the File menu, it should still be pointing to the last location you save to). That .dmg (disk image) file is opened as a virtual disk on the desktop when first created. When you eject it, it won't automatically reappear on the desktop; you need to find the .dmg file (using Steve's tip) and double-click the .dmg to mount the disk image. For easier mounting, you can put an alias to the .dmg file on the Desktop, in the Dock, or in the lower-left pane of your Home folder.

  • Encrypted disk image mount error

    When I try to open one particular encrypted disk image, a Warning dialog box opens with the following message:
    The disk image you are opening may be
    damaged and could damage your system.
    Are you sure you want to open this disk image?
    If I answer yes, the image mounts and I can see at least the one file I tried.
    I don't want to risk ruining the contents of the disk image, so I am not using
    it anymore, and have run Disk Utility/First Aid on it.
    By running this script while Disk Utility "Repairs Disk":
    { while [ 1 ]; do ps axlwww >> psout; sleep 1; done; }
    I can see that Disk Utility runs:
    /sbin/fsck_hfs -y -f -g /dev/disk1s2
    to check a mounted disk image. This works fine on a good encrypted disk image,
    but Disk Utility shows these errors for the broken one:
    A Warning dialog box opens with the following message:
    First Aid failed
    Disk Utility stopped repairing "Safe" because the
    following error was encountered:
    The underlying task reported failure on exit
    and the first aid window shows:
    Verify and Repair disk "Safe"
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Invalid sibling link
    Volume check failed.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    1 volume could not be repaired because of an error
    Any ideas how to fix this? I tried running
    /sbin/fsck_hfs -y -f -r /dev/disk1s2
    from the terminal, but it complains:
    ** /dev/rdisk1s2
    ** Checking HFS Plus volume.
    ** Checking Extents Overflow file.
    ** Checking Catalog file.
    ** Cannot repair volume when it is mounted with write access.
    ** The volume Safe could not be repaired.
    and running it on the parent .dmg file doesn't work at all.
    Thanks,
    Scott

    Well, I wish you luck, but haven't seen many people fix busted images.

  • Unable to create an encrypted disk image in Lion

    disk utility gives the error Unable to create "Volume.dmg." (error - 60008) when creating an encrypted disk image. I am using the following steps:
        1.    Open disk utility
        2.    Select the disk (internal or external) to create the image on
        3.    Select File>New>Blank Disk Image…
        4.    Save As: 'Volume'
        5.    Name: Volume
        6.    Size: 50GB
        7.    Format: Mac OS Extended (Journaled)
        8.    Encryption: 128-bit AES encryption
        9.    Image Format: read/write disk image
        10.    Click the Create button
        11.    Password dialog appears
        12.    When I enter a password the dialog closes after entering only a few characters i.e. before I've finished typing, and the following error message displays:
    Unable to create "Volume.dmg." (error - 60008)
    I have previously, successfully, created encrypted disk images in Snow Leopard, and I don't know why I can't in Lion
    Does anyone have any ideas?

    Thanks for this Thomas.
    I've tried naming the image differently, but still received the error, I did however try different permutations for the password.
    The error seems to happen if I use a purely numerical password string and occurs on input of the 10th numerical character, if I start with numerical character but use an alpha before the 9th number I can continue and create a password, and I can create a password  if I start with an alpha and switch to numerals after the first alpha character, purely alphabetical passwords are fine too.
    It seems that Lion doesn't like purely numerical passwords greater than 9 characters, whereas Snow Leopard wasn't so fussy. Seems it's a bit of a bug.
    Thanks for your help

  • Unable to create an encrypted disk image with Disk Utility

    Hi:
    With our upgrade to Lion a few weeks ago, we're now unable to create an encrypted disk image of any type using Disk Utility any more. This problem occurs on 3 different machines, and is reproducible whether one is using an internal HD or an external FW HD. We can successfully create nonencrypted disk images.
    This is a duplicate post with all the details here: https://discussions.apple.com/message/18469359#18469359
    We haven't had any luck with a solution trying various permissions fixes as helpfully suggested by other readers in response to the error message # (-60008 error), so I'm hoping that someone else has run across a solution from the encrypted disk image perspective and that this tag line will generate some help.
    Thank you!

    Save As: 01 (on Desktop)
    Name: 01
    Size: 100 MB
    Format: Mac OS Encrypted (Journaled)
    Encryption: 256-bit AES
    Partitions: Single partition- Apple Partition Map
    Image Format: read/write disk image
    At the password window that pops up I enter: 1234567890
    This says password strength is "Weak"
    All works fine
    Then I repeated this using:
    Save As: 02 (on Desktop)
    Name: 02
    Size: 100 MB
    Format: Mac OS Encypted (Journaled)
    Encryption: 256-bit AES
    Partitions: Single partition- Apple Partition Map
    Image Format: read/write disk image
    At the password window that pops up I enter: 1234567890 and when I start to enter the next "1" I get the "Unable to create "02.dmg." (error -60008)
    OS 10.7.4
    Disk Utility Version 12.1.1 (353)

  • Create encrypted disk image with OS install disk utility.

    I thought to make a full backup of Macintosh HD, and followed instructions in /kb/ht1553.  However, every time I tried to creae an encrypted disk image, it barfed with "Failed - User interaction required". I assume it needed the encryption password, but for some reason was unable to display a prompt for this. Anyone know how to fix this?  Thanks, Stephen.

    Create an encrypted sparse disk image instead of from folder, mount it, and then drag & drop your files into ii.

  • Disk Utility - Create encrypted disk images super sloooow

    Trying to create encrypted disk images via Disk Utility on my iMac (i7 8GB) is super-slow in 10.8.   It worked quite fast in 10.7, but now it's super-slow and doesn't even seem to ever finish.
    I've tried re-installing 10.8 with no difference.
    Anyone else having trouble with this?  Even a small dmg (~200MB) doesn't seem to work.
    Unencrypted images seem to work OK (if not a little slow).
    I realize that the encryption process will be slower but something is definately wrong with 10.8 disk utility in this regard.  I have 1TB+ free space.  I have tried with another user account as well.
    My task was: (new disk image, read-write, 128bit encryption)
    2012-09-03 08:59:59 -0400: Initializing…
    2012-09-03 09:00:00 -0400: Creating…
    2012-09-03 09:03:28 -0400: Copying…  <<< seems to be stuck here...

    Good morning,
    Have you tried using Disk Utility from within the recovery mode? (Hold down CMD and R when booting)
    I used to have this problem but creating them this way really improved the time.
    Give it a go...
    Rob

  • Creating an Encrypted Disk Image on an External (USB) Drive

    I have an external 600 GB drive (2x 300 GB SATA 3.5" disks in a Thecus N2050 RAID0 external enclosure connected to iMac by USB2) onto which I would like to backup a large amount of data (500 GB).
    I store this external drive away from my home (in the office) and since I cannot guarantee physically locking away the drive I would like to logically lock the drive by placing all the backup data into an encrypted disk image created on that volume.
    I have tried creating an encrypted disk image on my USB volume in Disk Utility (Apple's instructions here) but I experience a number of issues not documented in the Apple article:
    1) I am not presented with a drop-down option for the size of the disk image.
    2) When I go ahead and try to creat the image I am told that the creation was impossible "file or folder does not exist".
    Is it possible to create disk images on USB volumes (I cannot create such a large disk image on my iMac HDD as I do not have sufficient space).
    thanks in advance
    Raf

    I realised that in Disk Utility you must not have any of your mounted drives highlighted in the left hand pane.

  • Corrupted files within encrypted disk images

    Greetings Apple Hivemind:
    I've run across a repeatable problem when using encrypted disk images from Disk Utility.  Essentially, I'll create an image using settings like are shown below:
    The disk image is then used for storing data.  In my case, this is usually data for Adobe Lightroom.
    At first, this worked very well, and I housed the disk images on my household NAS, connecting via samba (smb) to it on my Mac.  Over time, however, something odd started happening:  Files on those encrypted images began getting corrupted whenever I tried writing new data to them.
    My first incident was where Lightroom informed me that the catalog it was trying to open was corrupted.  I  tried to create a new one on the same encrypted volume, and it too was instantly flagged as corrupted.  I opened the individual image files on the volume with no problem, so I wasn't thinking that the volume was the culprit.  That is, until I tried dragging new image files to it manually.  The new files were immediately either completely unreadable, or a mish-mash of the content of random OTHER files on the volume!
    The result was that all old data seemed intact, but I could no longer write new data to the volumes without major data corruption issues.  I thought that this was isolated to one volume in particular, but it soon started happening on ALL of my encrypted volumes eventually.  Including those which were not, and never had been, housed on my NAS, but were on my local hard drives.
    I've since "evacuated" all my data from these images, since the ones created by Disk Utility appear to be useless, and am seeking an alternative.
    Is this something that anyone else has encountered when using encrypted disk images?  It seems like this is something I should really open a support ticket for, but I can't say I've ever tried it, so I don't know how successful it would be to do so.

    bbonn wrote:
    I should add that I've tried using the "Repair" and "Verify" functions of Disk Utility on the volumes, and despite the obvious issues that exist in them, the utility doesn't find (or fix) any inconsistencies.
    Are you repairing/verifying the actual disk images, or just the partition they're on?  If the partition, it won't look inside them.
    Drag one to Disk Utility's sidebar, select it, then use Verify or Repair.  Note: the usual messages may not appear on the DU window.  Click the Log icon in the toolbar or select Window > Show Log from the menubar to see them.

Maybe you are looking for

  • Mail.app- 'Remove Attachments' corrupting mails

    I have a weird issue that I've not seen mentioned anywhere. Wondering if anyone can give me any debugging tips. I'm using Mail 5.0 in Lion 10.6.1 (issue was occurring in 10.6.0 as well). I have Mail connected to Exchange Server 2010. I have a fairly

  • IPAD Movie Sync Extremely Slow

    Everytime I sync a movie to my IPAD it takes about 45 minutes to sync. Please help !!!!!!!!!!!1

  • Saturation/Calibration Cinema Display

    Hi everybody, Just switched to Mac, bought a MacBook and a 23" Cinema Display, very happy! Aside from getting used to Mac/OSX, I have a problem with my Cinema Display. With a (borrowed but out of the box) Spyder2 I've been trying to set it up. The di

  • How does one mount a VESA mount on a iMac 27"

    How does one install a VESA mount on a 27" iMac and how long does it take to install it on the computer?

  • HT204053 where is my wish list?

    I had songs I wanted and then put them as add to my wish list so I could buy them later but I don't know how to get to them now.  Please help.