Mounting external drive encrypted with Luks

Hello guys,
since I'm using Luks for my whole system I'd like to backup it on my external hard drive that should be encrypted too.
So I used the following commands:
cryptsetup -c aes-xts-plain -s 512 luksFormat /dev/sdb
cryptsetup luksOpen /dev/sdb external
mkfs.ext4 /dev/mapper/external
I'm then able to mount it with
mount -t ext4 /dev/mapper/external /media/external
But I want to automise that, means my external drive should be mounted automatically by system (I guess it's only via udev possible?) after it was plugged in, without any passphrase scan and with complete user access, not just root.
How could I achieve that?
Thank you for your help.

2go drives are always bound to a user login when used with the "automatic unlock" option. That means, they get unlocked when you logon. As the server service starts before logon, the device is not ready to be shared, yet. Normal and expected.
You can only setup a scheduled task that restarts the server service after logon (trigger: "at logon"), that would work.

Similar Messages

  • How can I retrieve the password hint of an external drive encrypted with FileVault 2?

    Hi,
    I'm running on 10.7.3, I have an external HDD that is fully encrypted with FileVault 2.  When encrypting an external drive, FileVault 2 doesn't provide a recovery key, but it gives you the opportunity to give a hint at the time you enter the password.  My question is: how can I get this hint?
    I'm asking because I can't mount the drive anymore.  I keep getting prompted to enter the password, and although I believe I'm sure what the password is, it keeps getting refused.  The weird thing is that I have never been asked this password because the drive has always been automatically mounted after reboots, I guess because the password was in my Keychain.  I have no idea why it no longer auto-mounts and none of the passwords I tried worked.
    In Disk Utility, when I tried to "verify" the locked volume, Disk Utility logs an error in system.log with no other user visible action.  I filed a bug with Apple about this (#11286871) but I'm still waiting to hear back from them.  The error logged is:
    Apr 20 22:53:17 nowwhat Disk Utility[1508]: -[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: diskIdentifier)
    Apr 20 22:53:17 nowwhat Disk Utility[1508]: (
                        0   CoreFoundation                      0x00007fff915bffc6 __exceptionPreprocess + 198
                        1   libobjc.A.dylib                     0x00007fff87a37d5e objc_exception_throw + 43
                        2   CoreFoundation                      0x00007fff915bfdfa +[NSException raise:format:arguments:] + 106
                        3   CoreFoundation                      0x00007fff915bfd84 +[NSException raise:format:] + 116
                        4   CoreFoundation                      0x00007fff9157cf3b -[__NSCFDictionary setObject:forKey:] + 219
                        5   DFA                                 0x000000010a1aa1b8 DFA + 25016
                        6   DFA                                 0x000000010a1ad701 DFA + 38657
                        7   DFA                                 0x000000010a1a61de DFA + 8670
                        8   CoreFoundation                      0x00007fff915af75d -[NSObject performSelector:withObject:] + 61
                        9   AppKit                              0x00007fff8e507cb2 -[NSApplication sendAction:to:from:] + 139
                        10  AppKit                              0x00007fff8e507be6 -[NSControl sendAction:to:] + 88
                        11  AppKit                              0x00007fff8e507b11 -[NSCell _sendActionFrom:] + 137
                        12  AppKit                              0x00007fff8e506fd4 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2014
                        13  AppKit                              0x00007fff8e586d04 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 489
                        14  AppKit                              0x00007fff8e505bde -[NSControl mouseDown:] + 786
                        15  AppKit                              0x00007fff8e4d06e0 -[NSWindow sendEvent:] + 6306
                        16  AppKit                              0x00007fff8e46916d -[NSApplication sendEvent:] + 5593
                        17  AppKit                              0x00007fff8e3ff1f2 -[NSApplication run] + 555
                        18  AppKit                              0x00007fff8e67db88 NSApplicationMain + 867
                        19  Disk Utility                        0x0000000104c4e475 Disk Utility + 9333
                        20  Disk Utility                        0x0000000104c4e270 Disk Utility + 8816

    Even if you succeed with the difficult instructions to do this, if you are running Mavericks (10.9.x) on your Mac, count on it to start over with a whole new backup of your Mac, so you will have two separate backup files for the Mac on the Time Capsule.
    Realistically, few of us ever need to go back months or years to retrieve a file from Time Machine. My recommendation would be to keep the external hard drive around for a few months until you have a good backup history established for the Mac....and then delete the backups from the drive and use it as a spare hard drive.

  • How do I get my Mac to recognize external drive filled with 5 projects, created at Apple Store?

    How do I get my Mac to recognize external drive filled with 5 projects, created at Apple Store? I created 6 hrs worth of projects on computer in apple store with my external. came home my computer did not recognize it at all. went back to apple, they said oh click the news reel bottom left that will do it, came back home and nope....not recognizing it, in fact it says no events exist on this disc. I want to get the 5 projects and put up on vimeo tonight. ugh.

    Hi Tom,
    I'm so impressed with how you help everyone solve their problems. I will do my best here, but my husband will be home soon and knows how this large external is formatted.
    How late do you all work there? I'm on east coast. Is the screen shot you wanted? I opened up external and
    this is what I see.
    Drive is connected to usb in back of computer. N

  • Brand new iMac 23.GHz Intel Core i5.  Mounts external drive for time machine, then dismounts after backup is complete.

    brand new iMac 23.GHz Intel Core i5.  Mounts external drive for time machine, then dismounts after backup is complete.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.
    If you bought the product in the U.S. directly from Apple (not from a reseller), you have 14 days from the date of delivery in which to exchange or return it for a refund. In other countries, the return policy may be different. If you bought from a reseller, its return policy applies.

  • Mounting external drives with UID in Openbox?

    I've just changed my system from gnome to openbox as my main WM.
    In Gnome, my external drives were mounted as i connected them, with the UID.
    Now, in OpenBox with every filemanager (pcmanfm2, thunar + thunar  volman installed, nautilus) i tried, they are just being named
    "disk [insert number]" again. how do i change this behaviour? which terminal outputs do you need?
    Last edited by gpunkt (2010-05-30 11:11:55)

    I don't quite understand what behavior you got with Gnome. Is that the filemanager "names" the drives with their UUID?
    For me, the filemanager shows the drives with their label names.

  • Bug report with proposed solution for mounting external drives for ftp access

    Hello Guys,   I registered to inform you about something I would classify as a bug. I realized this when I used an external drive with my WD My Cloud and trying to access the drive via ftp. It simply was not visible on the ftp, but was accessible as samba share. I digged a bit in the scripts and found this:  /etc/init.d/mountDataVolume.sh   [...]
    ## initialze bind mount dir (/nfs)
    /usr/local/sbin/updateShareBindMntDir.sh --init
    [...]  /usr/local/sbin/updateShareBindMntDir.sh  [...]
    init_mounts()
    mount | grep -q "${SHARE_BIND_MNT_DIR}/"
    if [ $? -ne 0 ]; then
    # initial clean up of MNT dir
    rm -rvf ${SHARE_BIND_MNT_DIR}/*
    fi
    for D in `find /shares/ -maxdepth 1 -mindepth 1 -type d -not -name ".*"`; do
    share_name=$(basename $D)
    add_mount "${share_name}"
    done
    [...]   The init_mounts() function searches /shares for directories (find -type >d<) and bind mounts these to SHARE_BIND_MNT_DIR (default: /nfs) by calling add_mount(). This is the directory where ftp users will drop in after logging in. The problem: find -type d will not find symlinks and external drives are represented by a symlink from /shares to /var/media/EXTERNALDRIVE I propose adding the following code at the end of init_mounts()   for D in `find /shares/ -maxdepth 1 -mindepth 1 -type l -not -name ".*"`; do
    share_name=$(basename $D)
    add_mount "${share_name}"
    done That will look for symlinks in /shares and call add_mount() for each symlink to bind mount it to SHARE_BIND_MNT. I think this is not intended aka a bug because I found this comment for add_mount(): # - If <share_name> is a symlink to an external volume, then create the bind mount
    # directly to the external volume.As it seems from this comment add_mount() supports symlinks but init_mounts does not feed it any.   I tried this solution myself and it works flawlessly.   Yours sincerely,schnip

    Nice find!

  • Two form factor authentification for encryption with luks ?

    Hello arch forum'
    I plan to move to arch til' 2 weeks but i'am looking to do a 2 form factor authentification for a LUKS encrypted system.
    Actually, i have read the whole page at >https://wiki.archlinux.org/index.php/Dm-crypt_with_LUKS#Adding_Additional_Passphrases_or_Keyfiles_to_a_LUKS_Encrypted_Partition
    But i dont understand if its possible to do a passphrase + keyfile strategy, by the way, if one of the both condition are not completed, the partition is unreadable/stay encrypted.
    Keyfile only strategy is useless in my plan, since i need do have my laptop secured Even if someone have physical access to it.
    The ideal will be to have the passphrase to enter at boot + keyfile on a USB key
    Sincerely
    Sptnaz

    Yeah i will try on a Vmware vm before ..
    So after i read this > https://bbs.archlinux.org/viewtopic.php … 38#p943338
    Tell me if i'am wrong :
    1/ The drive/os is encrypted with AES256-XTS512
    2/ The "Keyfile" is  GPG/OpenSSL encrypted , can be stored on external media
    3/ After all the change done like in the how to, i will need to enter a passphrase (longer is better) FOR the KEYFILE , then the KEYFILE will be unlocked and the encrypted contant on the OS too.
    By the way, did ARCH need to put somes data to the MBR of the drive ? I'am using multi-boot system on a 940GB Crucial M5 ssd, with
    1/ Windows 7 os for home
    2/ Windows 7 os for work
    3/ Penetration testing live CD of BT5
    4/ > Encrypted OS (Arch)
    I think its more likely a clean-partitoning affair but tell me if i'am wrong.

  • How to recover data from non-mounting external drive?

    OK- here is the pinch:
    I have a Western Digital My Book 500GB Studio Edition which, though visible in Disk Utility, fails to mount, even when I try to do so via Disk Utility.  I have tried all the usual- unplugged, repowered-up, changed the order of Mac to external drive power-up/plug in etc etc.  It will not mount, end of.
    Then I changed the housing, in case the issue was with that.  No change.
    Then I had a friend use his PC's software to recover the data and he pulled off what appears to be ALL of it (it was close on being the 500GB as the drive was full) but it is not usuable and the Final Cut Pro and iMovie files I am needing to recover, appear to have been "downgraded" to MPEGs and MP4s (how IS that even possible?!) with a few MOVs of which the bulk are unreadable.  Oddly the clips are transitions only- no full three and a half minute (most of them are of music, songs of about that length) clips ever.
    So- is there any chance that I can get software which will let me recover the content of the drive in a format which my MacBook Pro can use/understand?  Or is it a lost cause?
    I had done some research on the topic here and found one thread which mentioned accessing the drive via the "Terminal" (sounds wonderful, if I knew what it was and how to use it) and correcting a read and write setting, copying its content over to the hard drive (well- that is not possible as I have a smaller internal than that drive is but no never mind) and getting the non-mounting drive to once more mount.
    Could that ^ be something worth pursuing?  I cannot ask on the thread as it is from 2006 and, obviously, archived.
    Hoping for some good news but am resigned almost.
    Thank you for reading!

    Did you try using a powered USB hub?
    Mac's now cut off port powered drives if they draw too much current.
    The external drive is a powered SATA, currently residing in a powered SATA to USB housing, no extensions.  No, the drive is actually just not supported anymore and was not mountable before.
    Also use the Mac version of Data Rescue for file recovery, it knows the Mac file formats better than PC file format recovery.
    I cannot recover anything with a Mac because the Mac will not read it.  It is not supported due to something my friend did with his PC:
    This is only since he had a go at recovery.  Before then it was supported and appeared fine- just not mountable.
    Obviously what happened is it took the MPEG portions of the Mac files as it understood that and discarded the rest.
    Yes, I gathered that and explained as much to him.  It discarded the entire 120GB FCPro project file I kind of would like to recover. 
    Not sure what now...
    You had mentioned cloning/imaging etc. which you edited out.  Could that be something which can be done with a PC (I am not a PC user but I guess I could have a go) and then I use said image on the Mac to copy the bits I need to transfer to the Mac-formatted storage device?  Or- with a different Mac?  Not sure why that would make a difference but I am happy to try anything! 
    Thank you to you both christopher rigby1 and ds store- means a lot not to be completely up the creek without a paddle.  I just wish that I had not been overwhelmed by the offer of assistance from a PC user and had had more of a go myself.  I suspect it would not be this difficult now.

  • External drive encryption lockout

    Hi,
    I am running time machine on an encrypted external drive.  Usually I have to log into the drive with a password upon connecting it.  The problem I experienced is that drive locked me out and would freeze upon entering my password.  I tried repairing drive with disk utility to no avail, the problem occured for about 24 hours.  I read numerous forum entries about this problem where there seemed to be no definitive answer. A lot of ppl had given up and reformatted there drives.
    When I tired diskutil cs list the drive I was getting,
    CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group ***
        =========================================================
        Name:         Big Kitty
        Status:       Online
        Size:         2000052772864 B (2.0 TB)
        Free Space:   0 B (0 B)
        |
        +-< Physical Volume ***
        |   ----------------------------------------------------
        |   Index:    0
        |   Disk:     disk1s2
        |   Status:   Online
        |   Size:     2000052772864 B (2.0 TB)
        |
        +-> Logical Volume Family ***
            Encryption Status:       Locked
            Encryption Type:         AES-XTS
            Conversion Status:       Complete
            Conversion Direction:    -none-
            Has Encrypted Extents:   Yes
            Fully Secure:            Yes
            Passphrase Required:     Yes
            |
            +-> Logical Volume ***
                Disk:                  -none-
                Status:                Locked
                Size (Total):          1999733997568 B (2.0 TB)
                Conversion Progress:   -none-
                Revertible:            No
                LV Name:               Big Kitty
                Content Hint:          Apple_HFS
    Magically today my drive started working again so I just wanted to know if anyone has experienced this problem and if so was it related to the HD failing or an OS/X problem.
    When I run diskutil cs list after it is working again I get;
    CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group ***
        =========================================================
        Name:         Big Kitty
        Status:       Online
        Size:         2000052772864 B (2.0 TB)
        Free Space:   0 B (0 B)
        |
        +-< Physical Volume ***
        |   ----------------------------------------------------
        |   Index:    0
        |   Disk:     disk1s2
        |   Status:   Online
        |   Size:     2000052772864 B (2.0 TB)
        |
        +-> Logical Volume Family ***
            Encryption Status:       Unlocked
            Encryption Type:         AES-XTS
            Conversion Status:       Complete
            Conversion Direction:    -none-
            Has Encrypted Extents:   Yes
            Fully Secure:            Yes
            Passphrase Required:     Yes
            |
            +-> Logical Volume ***
                Disk:               disk2
                Status:             Online
                Size (Total):       1999733997568 B (2.0 TB)
                Size (Converted):   -none-
                Revertible:         No
                LV Name:            Big Kitty
                Volume Name:        Big Kitty
                Content Hint:       Apple_HFS
    The difference you'll notice is the Disk is now disk2, and there is a volume name.
    Thanks Matt

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Click the Clear Display icon in the toolbar. Try the action that you're having trouble with again. Post any messages that appear in the Console window – the text, please, not a screenshot.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • External Drive Stolen with Time Machine Back Ups

    Hello,
    Sorry if this has been posted before. I scanned through a few pages of posts and didn't see anything.
    My home was burglarized and they took my G5, Cinema Display and my 500GB external drive with my Time Machine backup data. My question is: How secure is the data on the external drive? Can the theif just plug in the drive and see all of the files or does TM password protected? My G5 was password protected to log in to it. Does that log in transfer to the TM files?
    Thanks!
    DH

    As Donald says, the data can be accessed.
    Your backups are as secure (or insecure) as your Mac -- if someone steals either, they can get at your data fairly easily, if they know what they're doing, unless it's encrypted.
    It is harder to get at Time Machine backups on an external drive, because Windoze can't read it; you'd have to use a Mac (running Leopard or Snow Leopard) to access it.
    But most theft is not for your data; it's to resell the hardware.

  • How to mount external drives

    Being new to iMac and connecting four external drives I need to know how to mount and dismount them

    noondaywitch
    Thanks for your help and I've followed your reply and yes I can see how to mount and eject drives.
    Probably it would have helped if I had told you that my drives are all USB.
    All connected to a small four way hub which is then connected to one USB socket in back of computer.
    One - I use as a music drive and is a 160 gb iomega
    Two - is a partitioned drive for Photoshop use 340 gb WD
    Three - is a drive which has all my ex-Windows computer files and is one TB WD
    Four - is a Video and Film drive of one TB WD
    Five - is my dedicated auto backup drive which is of one TB WD and is connected directly to a USB socket of computer.
    I normally set my computer to sleep until the next time I'm using it, then when I do go to use it, I get the warning message regarding drive was not ejected. Didn't have problems like this on PC so I became worried that in time I'm going to loose files and or the complete drive. Which one is giving me this message is also a bit of trial and error problem. Like suck it and see.....lol.
    Anything else you can help me with this query would be most helpful and appreciated. Like do I have to eject all drives before leaving computer and then mount all the drives again for next session.
    Regards
    John

  • Cannot mount external drives

    Hi all!
    I have an 2010 imac i5 32GB RAM, running on 10.9.2.
    All of a sudden my machine does not mount ANY extrenal hard drive. It recognises them in Disk Utility, but they appear greyed and cannot be mounted. Not even disk repair. Last week though the drives were mounting on the system without any problems.
    Yesterday I have upgraded the OS to 10.9.2. (from 10.6.8). Still the same problem, the drives are recognisable in DU but cannot be mounted.
    All of the disks I've tried are NTFS format (originally formatted on a pc). Funny thing is I have VMware Fusion on my mac runing a virtual Windows 7 pc. Windows do recognise the drives and mount them without problem, but not the mac.
    Also note that I'm using Tuxera NFS to work with these drives with no problem so far, until now.
    Also checked the cables, I'm connecting the drives though USB ports, they are ok.
    Any suggestions?

    just guessing you are using USB to mount the external. you may need to use two usb ports to mount the drive. that means a cable with two usb connectors which should provide enough power to the external.

  • Will this external drive work with my macbook?

    I'm thinking about investing in an external hard drive, is this one compatible with my original Macbook Pro?
    http://www.amazon.com/Iomega-Portable-External-Drive-34945/dp/B003D3NDD2
    (side question, I've never used an external HD before. Will it just mount on my desktop and I drag and drop files?)
    Thanks in advance.

    Yes it will work . Most HD are preformated for windows machines so I would definitely reformat. More info: http://db.tidbits.com/article/10307
    Might want to think bout partitioning if you have the space. Maybe one partiton is for making a bootable clone with carbon copy cloner. http://www.bombich.com/
    I do not believe 10.4 is time machine capable- otherwise I would recommend that as well.
    Backing up is a good strategy. Congratulations for making the step!
    Yes drag and drop into your empty partition.
    Hope this solves your problem
    Message was edited by: leroydouglas

  • Jaguar OS no longer is able to mount external drives

    I am using a PowerMac 7600 with a Sonnet G4 processor (OS 10.2.8) to download streaming audio to an external hard drive. This has served me very well for a number of years. All of a sudden, the 7600 can no longer mount an external drive, neither USB nor FW. The Drive shows up in Disk Utility but the name of the volume is grayed out. The problem exists with several different drives which mount OK to my MacBook. Using the Disk Utility to attempt to mount the drive has no effect. Neither Rebooting nor Repair of Permissions solves the problem.
    Suggestions please.

    USB and FireWire Quick Assist
    http://support.apple.com/kb/HT1151?viewlocale=en_US
    What to do if your computer won't recognize a FireWire device
    http://docs.info.apple.com/article.html?artnum=88338
    Dealing with FireWire problems (drives not mounting, devices unrecognized, etc.)
    http://www.macfixit.com/article.php?story=20041221081432908
    Common fixes for USB device issues (unrecognized, etc.)
    http://www.macfixit.com/article.php?story=20070824012114701
     Cheers, Tom

  • Another external drive issue with Frontrow

    I've already looked at these treads,
    http://discussions.apple.com/thread.jspa?threadID=1511877&tstart=2
    http://discussions.apple.com/thread.jspa?messageID=8593111&#8593111
    But they aren't really everything. I have an external drive that I have my Movies, TV Shows, and Music on. I changed the location in iTunes, and everything imported fine. My AppleTV sees all of them just fine. However Frontrow won't. I can put an alias in the Movies folder as described, but then I don't see anything in the TV Shows menu option in FR. Sure they are listed under the movies, if I put a shortcut in there for them. I want Frontrow to work just as it did when all my media was on the local drive, how do I do that?

    Hello Brett!,
    A rule i usually live by when purchasing externals, is to firstly check the file format (many are factory formatted in NTFS or FAT32) and if that is the case then change them to HFS+ using disk utility. That is of course if you intend to only use it with your mac, for example i use an external formatted in FAT32 and it works on Windows and Mac.
    Secondly its a good code of practice to make sure the drive spins up, as that is the easiest way to check for a dodgy powersupply.
    Thirdly and hopefully finally, if those tips don't work then try mounting it on another mac or pc and see if it is detected in any form, that'll tell you if there is a connection issue.
    Regards,

Maybe you are looking for

  • How can I Send a fax directly with HP Officejet Pro 8500

    Hello I have a printer of the type hp officejet 7100 series When I want to send a fax directly, a text document, for example, type it on the printer hp officejet 7100 series fax And converts it to a fax machine directly. Now I buy a new printer HP Of

  • DVI Input

    Hi, Bought a flat panel...very nice. It doesn't have a digital output. My starforce 4200 has a digital in and it came with an adaptor that allows me to hook the analog monitor output to the digital in on the videocard. So, What's the point? Thanks Ah

  • Does moving your MB around in sleep mode (lid closed) ruin your harddrive?

    ive heard from some people that their harddrive has been screwed over after doing this, is it true?

  • Does the Pages update include linking text boxes?

    Does the Pages update include linking text boxes? This was a great feature in the previous iWork: Pages version.

  • Help needed on WebServices

    hi guys!! please help asap!! this is regarding my academic project!!!!! I have to develop web service. I have downloaded j2ee1.4+sun's server+jwsdp1.5 from sun's website. I have set all the variables as stated in tutorial (like j2ee.home, build.prope