Decrypt multiple dm-crypt LUKS drives with a single password on start

Hi there,
This is a hook based on the encrypt hook that I use to decrypt multiple dm-crypt LUKS drives on startup for a btrfs raid 1. I thought someone might find it useful. I'd be willing to do some work to include this in the official mkinitcpio package if the developers are happy with it ? Constructive suggestions are welcome
Credit goes to the following:
https://bbs.archlinux.org/viewtopic.php?id=120243
https://wiki.gentoo.org/wiki/Custom_Initramfs/Examples
https://wiki.archlinux.org/index.php/Dm … iple_disks
The author(s) of the mkinitcpio hooks on which this hook is based
Edit: Thanks to frostschutz for pointing out that --keyfile-size and --keyfile-offset use bytes instead of bits. Therefore to use 4096 bit keys, 512 bytes should be specified. I have corrected the examples.
The idea is to have a dm-crypt LUKS password encrypted file /boot/multikeyfile. This file contains multiple 4096 bit keys to be used to decrypt the actual drives.
I created the file and encrypted volumes as follows:
$ dd if=/dev/zero of=multikeyfile bs=3M count=1 # I chose 3M because the LUKS header is around 2M
$ cryptsetup -v --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random luksFormat multikeyfile
# install -m644 -o root -g root multikeyfile /boot
# cryptsetup open --type luks /boot/multikeyfile multikeyfile
# dd if=/dev/zero of=/dev/mapper/multikeyfile
# I wanted keys for two drives (2 * 4096 / 8) = 1024 bytes
# dd iflag=fullblock if=/dev/random of=/dev/mapper/multikeyfile bs=1024 count=1
# Verify enough random content
# hexdump -C /dev/mapper/multikeyfile | less
# Create the containers
# cryptsetup --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random --key-file /dev/mapper/multikeyfile --keyfile-offset 0 --keyfile-size 512 luksFormat /dev/sdXY
# cryptsetup --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random --key-file /dev/mapper/multikeyfile --keyfile-offset 512 --keyfile-size 512 luksFormat /dev/sdAB
Next add a kernel parameter to identify the drives in the same sequence as their keys appear in the multikeyfile. I used PARTUUID:
multidecrypt=PARTUUID=<drive1>:PARTUUID=<drive2>
In /etc/mkinitcpio.conf add the multidecrypt hook in the HOOKS field in the same place you would normally place the encrypt hook.
Run mkinitcpio as you normally do to recreate your initramfs.
Here are the actual hook files:
/etc/initcpio/hooks/multidecrypt
#!/usr/bin/ash
run_hook() {
modprobe -a -q dm-crypt >/dev/null 2>&1
modprobe -a -q loop >/dev/null 2>&1
[ "${quiet}" = "y" ] && CSQUIET=">/dev/null"
if [ -z "${multidecrypt}" ]; then
err "No dm-crypt luks devices specified for multidecrypt, aborting..."
exit 1
fi
echo ""
echo "YOU SHALL NOT PASS !!!!!!!"
#loop until we get a real password
while ! eval cryptsetup open --type luks /multikeyfile multikeyfile ${CSQUIET}; do
sleep 2;
done
if [ ! -e "/dev/mapper/multikeyfile" ]; then
err "multikeyfile decryption failed, aborting..."
exit 1
fi
luksdevnum=1
for luksdev in ${multidecrypt//:/ }; do
if resolved=$(resolve_device "${luksdev}" ${rootdelay}); then
eval cryptsetup open --type luks --key-file /dev/mapper/multikeyfile --keyfile-offset $((($luksdevnum-1)*512)) --keyfile-size 512 ${resolved} container${luksdevnum} ${CSQUIET}
if [ ! -e "/dev/mapper/container${luksdevnum}" ]; then
err "container${luksdevnum} creation failed, continuing with other specified devices..."
fi
else
err "Could not resolve ${luksdev}, continuing with other specified devices..."
fi
let luksdevnum++
done
#clean up
cryptsetup close multikeyfile
# vim: set ft=sh ts=4 sw=4 et:
/etc/initcpio/install/multidecrypt
#!/bin/bash
build() {
local mod
add_module dm-crypt
if [[ $CRYPTO_MODULES ]]; then
for mod in $CRYPTO_MODULES; do
add_module "$mod"
done
else
add_all_modules '/crypto/'
fi
# add loop module for mounting of keyfile
add_module loop
add_binary "cryptsetup"
add_binary "dmsetup"
add_file "/usr/lib/udev/rules.d/10-dm.rules"
add_file "/usr/lib/udev/rules.d/13-dm-disk.rules"
add_file "/usr/lib/udev/rules.d/95-dm-notify.rules"
add_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.rules"
add_file "/boot/multikeyfile" "/multikeyfile"
add_runscript
help() {
cat <<HELPEOF
This hook allows for startup decryption of multiple dm-crypt luks encrypted
devices. Users should specify the devices to be unlocked using:
'multidecrypt=device[[:device]...]'
on the kernel command line, where 'device' is the path to the raw device,
specified using PARTUUID or some other means. Devices will be available as
/dev/mapper/container[1,2,3...] etc.
The hook expects a dm-crypt luks encrypted file called /boot/multikeyfile to
exist. This keyfile contains a concatenation of 4096 bit keys for each
encrypted device in the same order as specified in the multidecrypt kernel
command line argument.
If decryption of one of the devices fails, the hook will attempt to continue
to decrypt any other specified devices. This is useful for btrfs software
raid if a device has failed as an example.
You will be prompted for the password to the multikeyfile container at runtime.
This means you must have a keyboard available to input it, and you may need the
keymap hook as well to ensure that the keyboard is using the layout you expect.
HELPEOF
# vim: set ft=sh ts=4 sw=4 et:
Last edited by dude42 (2015-06-06 04:08:06)

frostschutz wrote:
--keyfile-size is not bits but bytes.
If you really set up your encryption the way you described, the key for your first container will be 1024 random bytes followed by zero bytes, and the key of your second container will be 4096 bytes of /dev/zero.
Thanks frostschutz !

Similar Messages

  • My hard drive with library crashed, can i start on new computer with music on my touch

    my hard drive with library crashed, can i start on new computer with music on my touch

    The easiest way to get back missing items?  Restore your whole hard drive with all your irreplaceable things like photos in about 20 minutes from the backup clone you make on a regular basis.
    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer is designed for you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is purchased content.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only media purchased from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software. Examples (check the web for others; this is not an exhaustive listing, nor do I have any idea if they are any good):
    - Senuti - http://www.fadingred.com/senuti/
    - Phoneview - http://www.ecamm.com/mac/phoneview/
    - MusicRescue - http://www.kennettnet.co.uk/products/musicrescue/ - Mac & Windows
    - Sharepod (free) - http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 - Windows
    - Snowfox/iMedia - http://www.mac-videoconverter.com/imedia-transfer-mac.html - Mac & PC
    - iexplorer (free) - http://www.macroplant.com/iexplorer/ - Mac&PC
    - Yamipod (free) - http://www.yamipod.com/main/modules/downloads/ - PC, Linux, Mac [Still updated for use on newer devices? No edits to site since 2010.]
    - 2010 Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive - https://discussions.apple.com/docs/DOC-3141 - dates from 2008 and some outdated information now.
    Copying Content from your iPod to your Computer - The Definitive Guide - http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/ - Information about use in disk mode pertains only to older model iPods.
    Get Your Music Off of Your iPod - http://howto.wired.com/wiki/Get_Your_Music_Off_of_Your_iPod - I am not sure but this may only work with some models and not newer Touch, iPhone, or iPad.
    Additional information here https://discussions.apple.com/message/18324797

  • Root on LVM lv on vg spanning multiple dm-crypt/LUKS-encrypted pvs

    Hi guys-
    I'm on an eeePc 901, with the (dumb) 4gb soldered drive along with the 16gb SSD.  I also have an 8gb SD card.  I would like to have the following setup:
    Physical Devices and Partitions
    /dev/sda - 4gb soldered
    -> /dev/sda1 - format as ext2, mount to /boot
    -> /dev/sda2 - encrypt with dm-crypt and LUKS to /dev/mapper/crypta
    /dev/sdb - 16gb SSD
    -> /dev/sdb1 - encrypt with dm-crypt and LUKS to /dev/mapper/cryptb
    /dev/sdc - 8gb SD
    -> /dev/sdc1 - encrypt with dm-crypt and LUKS to /dev/mapper/cryptc
    Unencrypted Partitions
    crypta - use as pv for vg "vga"
    cryptb - use as pv for vg "vga"
    cryptc - format as ext2, mount to /home
    VGs and LVs
    vga
    -> lva - format as ext2, mount to /
    -> lvb - format as ext2, mount to /usr
    -> lvc - use for /tmp
    My problem is, my grub menu.lst kernel line needs to have an additional "cryptdevice" parameter, but it does not seem to take two.  Thus:
    kernel /vmlinuz26 root=/dev/mapper/vga-lva cryptdevice=/dev/sda2:vga cryptdevice=/dev/sdb1:vga ro
    does not seem to unencrypt both sda2 and sdb1, the drives necessary for vga.  Is anybody familiar with a way to unencrypt both drives?
    EDIT:  It seems to work if I only use the second cryptdevice, as in:
    kernel /vmlinuz26 root=/dev/mapper/vga-lva cryptdevice=/dev/sdb1:vga ro
    Last edited by cprussin (2010-07-20 16:58:37)

    Hi I've managed to solve this problem. See my post https://bbs.archlinux.org/viewtopic.php … 95#p827495

  • The guide to bootcamp assistant states that bootcamp can only be installed on a drive with a single partition. New Macs with Lion preinstalled have two partitions - the second is a recovery partition.  How do I install Bootcamp?

    Late in August 2011 I took delivery of a new 27" iMac with Lion preinstalled.  I need to run Windows as well. Following Apple's written suggestion, I printed off the then current 12 pages of the document "Bootcamp Installation & Setup Guide" which clearly stated that the hard drive you were going to install on had to have on it, before install, a maximum of one partition.  Using finder and disk utility I determined that there was only one partition.  Unbeknownst to me, there was (is) an additional hidden (from those two pieces of software) partition on the disk.  As of machines delivered new with Lion preinstalled, Apple has begun to include a "recovery partition".  In that partition there is a copy of the software necessary to reinstall Lion via a download from the Apple App Store.  Not knowing the partition was there, I cranked up  "Bootcamp Assistant" which nicely offered to repartition my hard drive creating a "Bootcamp Partition" in addition to the existing.  I told it how big to make each and hit the do it button, subsequently destroying my operating system.  Oh, it very nicely told me, after the damage was done, how many partitions were REALLY on the disk and that I could not install Bootcamp cause there were too many partitions.
    Luckily the the Recovery Partition, which at that point I knew existed, was not harmed and after doing some research on another compter, I used it to once again download Lion from the App Store and reinstall. So, I have recovered but am still stuck with the problem:  how do I install Bootcamp in this new environment?

    First you need to seriously back up your Mac.
    A clone is an exact duplicate of your existing Mac HDD. Merely copying and pasting a drive will not make a bootable backup. In case of problems you can boot from an Ext HDD clone and use the utilities to repair, reformat, or clone the Ext HDD back to the internal Mac HDD.  While Time machine back ups are easy you can not boot from it. The best thing to have for any kind of problem is a bootable clone backup on an external drive. Some even have two external backup drives in case one fails. There are two good apps for cloning named SuperDuper and Carbon Copy Cloner.
    In dealing with the recovery partition a simple approach is to clone the Mac partition to an external disk then re-partition the Mac to a single partition (GUID partition table) . Then clone the external disk clone back to the Mac. You will now have only one Partition and Boot Camp assistant sould not object.
    Some have recommended getting rid of the recovery partition while others have advised not to do this. If you have the Lion USB Thumb Drive you do not need a recovery partition so can discard it without concern. There is another way to get rid of the recovery partition if you decide to do it but first be sure to have a backup of your Mac ( I know I sound like a nagging mom but many dead computers have been saved by this simple precaution).
    Use Disk Utility.
    1) Make the Recovery visible in Disk Utility by using a program like Secrets:http://www.macupdate.com/app/mac/27025/secrets or MacPilot:http://www.koingosw.com/products/macpilot.php (15 day free trial).
    2) Highlite the Recovery partition and Control click it and select Mount the partition.
    3) With the Recovery partition highlited, erase the partition, you'll get an error message, ignore it.
    4) Now highlite the top identity of the hard drive and select the partition tab.
    5) Highlite the Recovery partition and press the minus sign.
    6) Click and hold on the bottom edge of the partition above and drag it to the bottom, if it doesn't go there automatically, the press apply.

  • Is It Possible to Swap a HDD Protected Drive (with a KNOWN password) Between ThinkPads?

    Greetings,
    I spilled a sugary drink into my X200, toasting it beyond all repair.  The X200's hard drive has ONLY a bios HDD password that I created and know.  In an attempt to recover my files from the X200's hard drive, I removed the drive and inserted it into my T60.  When I powered on the T60, I recieved the usual HDD password prompt.  However, when I entered the password (all lower-case, no special or non-English characters, and which I know is absolutely correct), I got the incorrect password symbol.  I powered off the machine and repeated this process.  After the second attempt, I saw the password prompt with a crossed out hand.
    I later followed a procedure recommended by Lenovo to clear the password (don't think I'm allowed to post a link): enter the password followed by a space.  That didn't work.
    I'm wondering whether the X200's HDD pasword protected drive is somehow keyed to that particular machine, and cannot, as I had always assumed, be swapped into another machine and accessed by entering the correct password.
    I'm also wondering whether I may have permanantly locked myself out of the drive by making too many "invalid" attempts.
    (Edited to add additional info and make the subject more descriptive than it was originally).
    Solved!
    Go to Solution.

    LongtimeTPOwner, welcome to the forum,
    sorry to hear about your situation   Removing the password should definitely be possible in another X200 or even another ThinkPad system of the same era e.g. T400, T500..etc.
    One consideration you may like to take a look at is the Passphrase setting in the BIOS Password menu; if it is set differently on the T60 to how this was set on the X200 this could present problems depending on the password used, especially if it has "special characters".
    Edit; typo
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • Receiving multiple lines on a PO with a single receipt

    Hi,
    Unable to create a receipt with multiple PO lines against it.
    Here is the scenario:
    PO# 1000
    Line1: 1000 (Non-inventory)
    Line 2:2000 ((Non-inventory)
    Whie trying to create a receipt with both PO lines against it (Receipt R1: Line1 500, ine2:1000),
    I get the following message: "An error occurred while trying to split lot and serial lines."
    Can anyone please post the insert statements with the columns that need to be populated.
    I'm able to create a receipt against a single PO line.
    Thanks.

    Below is the script that I'm using........
    I'm able to create a receipt against a single line in a PO but when I try to receive multiple lines (use the 2nd and 3rd inserts again but change the po_line_id and quantity) it does not work.
    insert into rcv_headers_interface(header_interface_id,
    group_id,
    processing_status_code,
    receipt_source_code,
    transaction_type,
    auto_transact_code,
    last_update_date,
    last_updated_by,
    last_update_login,
    creation_date,
    created_by,
    vendor_id,
    vendor_site_id,
    ship_to_organization_id,
    expected_receipt_date,
    employee_id,
    validation_flag)
    values
    (rcv_shipment_headers_s.nextval,
    RCV_INTERFACE_GROUPS_S.Nextval,
    'PENDING',
    'VENDOR',
    'NEW',
    'DELIVER',
    sysdate,
    8938,
    8938,
    sysdate,
    8938,
    276747,
    322205,
    189,
    sysdate,
    2860,
    'Y');
    INSERT INTO rcv_transactions_interface
    (interface_transaction_id,GROUP_ID,
    last_update_date,last_updated_by,
    creation_date,created_by,last_update_login,
    transaction_type,transaction_date,
    processing_status_code,processing_mode_code,
    transaction_status_code,
    quantity,unit_of_measure,
    auto_transact_code,receipt_source_code,
    vendor_id,vendor_site_id,
    source_document_code,
    po_header_id,po_line_id,
    destination_type_code,
    --deliver_to_location_id,
    header_interface_id,validation_flag,
    to_organization_id
    VALUES (rcv_transactions_s.nextval,RCV_INTERFACE_GROUPS_S.currval,
    sysdate,8938,
    sysdate,8938,8938,
    'RECEIVE', SYSDATE,
    'PENDING', 'BATCH',
    'PENDING',
    5,'Each',
    'RECEIVE','VENDOR',
    276747,322205,
    'PO',
    100249,136970, --Both values to be changed
    'RECEIVING',
    --32387,
    rcv_shipment_headers_s.currval,'Y',
    189);
    insert into rcv_transactions_interface(interface_transaction_id,
    group_id,
    last_update_date,last_updated_by,
    creation_date,created_by,
    transaction_type,transaction_date,
    processing_status_code,processing_mode_code,
    transaction_status_code,po_line_id,
    receipt_source_code,source_document_code,
    validation_flag,quantity,
    unit_of_measure,
    po_header_id,vendor_id,vendor_site_id,
    employee_id,ship_to_location_id,to_organization_id,
    destination_type_code,
    --deliver_to_person_id,
    deliver_to_location_id,
    parent_interface_txn_id,
    subinventory)
    values
    (rcv_transactions_s.nextval,RCV_INTERFACE_GROUPS_S.currval,
    sysdate,8938,
    sysdate,8938,
    'DELIVER',sysdate,
    'PENDING','BATCH',
    'PENDING',136970,
    'VENDOR','PO',
    'Y',5,
    'Each',
    100249,276747,322205, --po_header_id  and po_line_id needs to be changed
    2860,9289931,189,
    'INVENTORY',
    --2860,
    9289931,
    rcv_transactions_s.currval-1,
    'BCU_SINV');
    Please tell me where I'm going wrong or if there is a script that I can use.
    Thanks.

  • Lost a hard drive with all photos, how to start over?

    Hi. Please help if you can.
    A while back, I plugged my external hard drive into my ibook and uploaded all my photos. A few months ago, that hard drive died. It no longer exists. But now, whenever I ope n Iphoto, I get a message that says, "could not mount drive [x]." I click OK, but it still won't do anything.
    I have tried to import all my photos again, and it will import a few but then gives me the same message: "could not mount drive [X]." I have to click OK after every couple of photos. Since I have a couple of thousand photos, this is impossible. And even when I try to mount just a few, it gives me that same message, and just freezes up. I have to force quit to make anything happen.
    Any ideas on what I should do next? I am open to uninstalling and starting from scratch, but I am not sure how to do that.

    mattcamera:
    Welcome to the Apple Discussions. Was your first library a referenced library, i.e. you didn't have the photos copied to the library when importing, or was it a managed library where the photos were copied into the library? It sounds like it might have been a referenced library.
    If it was a referenced library and you're starting over and importing your photos all over again, you should trash the old library and start with a new one so you're not trying to us a damaged database file.
    You don't have to uninstall iPhoto, just delete the old library package, create a new one and start importing again.
    Happy New Year
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Installing Lion clean on hard drive with multiple partitions

    I have a spring 2008 24" iMac running Snow Leopard.
    I am about to put a new 2TB hard drive in it and after I do that I want to do a clean install of Lion on it.
    I do not want to upgrade my Snow Leopard install to Lion. I will keep it on my back up drive as a fallback incase of serious workflow incompatiblities with the new OS.
    For my workflow I create and use multiple partitions (Mac OS,  Windows and multiple HFS+ for data) on my hard drive and I have seen that Lion creates it's own hidden recovery partition as well for the recovery functionality.
    My questions are:
    1) Will I have issues running Lion on a partition on a hard drive with multiple partitions that have different file systems?
    2) If I install Lion into one of these partitions will it create it's recovery partition within the space of the partition it is being installed into?
    3) I will be creating a clean install by downloading Lion using the App Store and then burning an installer DVD using instructions I found elsewhere and then using that to do the install on the new drive. Is that the best route to take?
    All my current data I will have on a backup external hard drive and after I complete the Lion install on the new larger drive I will manually reinstall all my software and move my data back from my backup drive to the new drive one partition at a time except of course for OS partition. I keep all my real user data outside of that partition anyway.

    I believe this article answers most of your questions.
    http://support.apple.com/kb/HT4718
    or possibly
    http://support.apple.com/kb/HT4649
    You will most likely run into the error message that "Some features of Mac OS X Lion are not supported for the disk" if you have multiple partitions set up, especially if they were not set up using Bootcamp and/or have serveral different file systems.
    You can confirm that the Recovery Partition will not be installed by checking Disk Utility for your current partition map scheme.
    This is most definitely not the end of the world as it is quite easy to create an external Recovery disk.
    1) No, you shouldn't have issues running Lion, but Recovery HD will not be created.
    2) No, and in your case it doesn't sound like it will be installed on your internal drive at all.
    3) Yes. If you begin with an empty partition, then install Lion that would be considered a clean install.
    Hope that helps.
    Autumn

  • How to use multiple hard drives with RnR??

    I am backing up my T61p's 500GB internal hard drives to an 750GB external USB. I just got a 1.5TB FreeAgent Seagate. I want to use that drive too to backup. I want to keep the backups that are currently on the 750GB. I simply want to *also* make a full backup to the 1.5TB. Is there an easy way to create multiple backups on multiple drives with Rescue & Recovery?
    Once you choose an initial destination (USB drive), there does not seem to be an easy way to start backing up to another drive. Did I miss something?
    Thanks,
    Michel

    Hello,
    Sorry you're having problems. Assuming you've already mounted the drive so that an external drive icon appeared on the desktop, what DO you see when you open it? ANY files?
    Did any of those "weird things" include okay/cancel windows?
    Is your external drive fat32, NTFS, or something else? OSX doesn't play nice with all types of partition types, so this information could help us help you.

  • How do I use an external hard drive with iMovie 10.0.1? I have run out of disk space on my Macbook Air.

    How do I use an external drive with iMovie 10.0.1?  It is not obvious and I have run out of space.

    If you want to move a complete iMovie 10 library (file with .imovielibrary extension) click on the library in the libraries pane and select  File - Consolidate Library Media.  This ensures that all media is copied to the library.  You can then move the library onto your external drive using Finder.  The first time to want to access it from iMovie you will have to tell it where it is by choosing  File - Open Library -Other and navigating to it.
    If you only want to transfer part of a library to another drive, create a new library a at the desired location  File - Open Library - New  and copy projects and events to it from within iMovie.
    Its all described in iMovie help - "Work with multiple libraries".
    Geoff.

  • I have multiple users on my computer with separate iTunes libraries.  can we share?

    I have multiple users on my computer with separate iTunes libraries.  Is it possible to share the libraries?  The "share library" preference doesn't seem to work.

    Hi b noir, I also have two users on one pc with two different iTunes libraries.  But I also want to put them onto an external hard drive so that I can free up some memory on the pc.  So I figure I need to consolidate the two users iTunes libraries first before moving to hard drive?  But not quite sure how to do that on the iTunes 11?  Thanking you in advance!!

  • Dismount multiple external hard disk drives

    I have multiple external hard disk drives and was wondering what the command line is that will dismount all of these at once? Note that there is also one external DVD unit as well which I would not want to dismount.
    Thanks,
    Lyman

    diskutil unmount "/path/to/disk";diskutil unmount "/path/to/disk";diskutil unmount "/path/to/disk"
    Just replace replace "/path/to/disk" with the path to the mount point, leaving the quotes.
    Good luck!

  • Partition an Advanced Format drive with 4KB sector (for Linux OS only)

    I got a brand new WD 1TB drive, model WD10EZEX, I'm upgrading from an old 500 GB drive with Arch running on it, and I'm going to make a fresh Arch install on it.
    I suddenly learned about all this Advanced Format issue, with the first units "lying" about physical sector size and all that stuff, which started like 2 years ago and I was not aware of.
    I couldn't find a step by step guide to perform the proper formatting for a fresh Linux OS install with 4KB-sector, despite the info is out there scattered in tons of blogs, forums, etc.
    I figured out the steps for my simple setup, and I'd like to know if everything is all right. For the ones who already know the steps, can you please go to the bottom of the post, and tell me if the final setup is all right to start the fresh install ??  I reproduce all the steps hoping that this will help other people in the future.
    I'll use the whole drive only for an Archlinux install, with one partition for the / and another for /home.
    Seems the GPT modern method is the way to go, and the gdisk tool will do the trick. If we are booting from this drive, with GRUB2 in a BIOS system, we must also create a BIOS Boot Partition.
    So, with the drive having no partitions at all, and sda being the device name
    # gdisk /dev/sda
    Command (? for help): p
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 1953525101 sectors (931.5 GiB)
    Number Start (sector) End (sector) Size Code Name
    we create the 2 MiB BIOS Boot Partition
    Command (? for help): n
    Partition number (1-128, default 1): 1
    First sector (34-1953525134, default = 2048) or {+-}size{KMGTP}: 2048
    Last sector (2048-1953525134, default = 1953525134) or {+-}size{KMGTP}: +2M
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): ef02
    a 45GB partition to use as /
    Command (? for help): n
    Partition number (2-128, default 2):
    First sector (34-1953525134, default = 6144) or {+-}size{KMGTP}:
    Last sector (6144-1953525134, default = 1953525134) or {+-}size{KMGTP}: +45G
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): 8300
    Changed type of partition to 'Linux filesystem'
    and the rest to use as /home
    Command (? for help): n
    Partition number (3-128, default 3): 3
    First sector (34-1953525134, default = 94377984) or {+-}size{KMGTP}:
    Last sector (94377984-1953525134, default = 1953525134) or {+-}size{KMGTP}:
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): 8300
    Changed type of partition to 'Linux filesystem'
    we can check the setup
    Command (? for help): p
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 2014 sectors (1007.0 KiB)
    Number Start (sector) End (sector) Size Code Name
    1 2048 6143 2.0 MiB EF02 BIOS boot partition
    2 6144 94377983 45.0 GiB 8300 Linux filesystem
    3 94377984 1953525134 886.5 GiB 8300 Linux filesystem
    and everything looks fine, we have the multiples of 8 starting sectors, so we write the changes
    Command (? for help): w
    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
    Do you want to proceed? (Y/N): y
    OK; writing new GUID partition table (GPT) to /dev/sda.
    The operation has completed successfully.
    now we need to give the / and /home partitions a format, I choose ext4 and ask for a 4096 block size just in case we have a "lying" unit (not my case but I prefer to write down the most general command)
    # mkfs.ext4 -b 4096 /dev/sda2
    mke2fs 1.42.6 (21-Sep-2012)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    2949120 inodes, 11796480 blocks
    589824 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=4294967296
    360 block groups
    32768 blocks per group, 32768 fragments per group
    8192 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424
    Allocating group tables: done
    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done
    and the same thing for /dev/sda3 .
    Check with gdisk and parted that everything is fine, is this all right to start the install ??
    # gdisk -l /dev/sda
    GPT fdisk (gdisk) version 0.8.5
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 2014 sectors (1007.0 KiB)
    Number Start (sector) End (sector) Size Code Name
    1 2048 6143 2.0 MiB EF02 BIOS boot partition
    2 6144 94377983 45.0 GiB 8300 Linux filesystem
    3 94377984 1953525134 886.5 GiB 8300 Linux filesystem
    # parted /dev/sda
    GNU Parted 3.1
    Using /dev/sda
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) print
    Model: ATA WDC WD10EZEX-00R (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:
    Number Start End Size File system Name Flags
    1 1049kB 3146kB 2097kB BIOS boot partition bios_grub
    2 3146kB 48.3GB 48.3GB ext4 Linux filesystem
    3 48.3GB 1000GB 952GB ext4 Linux filesystem
    Last edited by karamaz0v (2012-12-06 06:39:45)

    Your partitions look fine from an Advanced Format point of view. The test is simple: Are all your partitions' start points, as measured in sectors, divisible by 8? Yours are.
    karamaz0v wrote:what confused me a bit, was that I saw a lot of setups with the BIOS boot partition, and also a 200 MB EFI one. Having a BIOS system, I think I don't need the EFI one.
    Some people do this because they're unclear of their requirements. Others do it because they want to have the option of switching boot modes between BIOS/legacy and EFI. With both types of boot loader installed, you can choose on a boot-by-boot basis which way to start the computer, assuming it supports both boot modes.

  • Time Machine: Can I use a smaller external hard drive with larger internal?

    Can I use a 250G external hard drive with and 500G unfilled internal drive with time machine? Or will time machine require I a 500G? I don't plan on filling the internal drive for a long time and don't want to buy a new external drive right now.

    Yes, but you are very likely to get in trouble very quickly.
    The problem is that TimeMachine saves multiple versions of any file modified, and if that file happens to be large, you can quickly fill up your TimeMachine drive such that it is throwing away older versions faster than you would desire.
    Also if your boot drive's storage usage gets even close to the 250GB external drive's capacity, TimeMachine is likely to stop working.
    If possible, I would suggest an external drive that is twice as large as your boot drive, or at least 1.5 times larger.
    I guess you could repartition your boot drive so it is smaller than your external disk so you would be less likely to use more space than could fit on the external.
    Personally, my opinion about backups is that much of my data is impossible to replace (family pictures, etc...), and spending money on backup hardware is a small price to pay for securing those memories. I also try to have it backup in more than one location in more than one way.

  • Trying to free up space on hard drive, with an external hard drive, but don't want to lose the files!

    So I am really stressed out right now.
    I have a macbook pro, with a 750 gb hard drive in it. My internal hard drive filled up  a while back so I bought a 3TB external hard drive. I backed up my files onto my external a while ago, but I don't really remember how... There is a folder on my hard drive that is called " wd smartware.swstor" , and inside that folder is about 1.7 TB of files (when I click 'get info')... So I'm guessing that is where all my stuff is being backed up. But I also moved files from my computer onto that hard drive, like pictures and videos, that I wanted to delete off my internal... So I may have duplicates?
    But my 3TB hard drive is almost full, it has 400GB free on it. And my 750gb internal hard drive on my macbook pro, has filled up again so it only has 10gb free space. So basically I have almost 3TB of files on my external hard drive, and 740gb on my internal.. This can't be right. There is no way I have this many files. I am guessing I have some of the same files on my internal that I do on my external.. Most of my files are high quality HD video files that I imported through final cut pro x....
    So I bought another 3TB external hard drive that I haven't used yet. Basically, I just want to move all my files that are on my internal hard drive (roughly 750gb) onto my NEW external 3TB hard drive- and then delete the files off my internal so I have more free space. I just don't know if these files are already being backed up on my OLD external 3TB hard drive.
    Can someone please help? Thank you!

    craigbuckley wrote:
    If I get rid of my TIme Machine, will I lose all my files from the past?
    Yes it will unless you back it up first out of TM.
    TimeMachine is a self rotating image of your boot drive with saved states,  it manages itself based upon the available space on the drive. As new states are created, old ones are deleted along with older versions of your files.
    Also if you incur a drastic large change to your boot drive, TimeMachine will DELETE older versions of your files.
    TimeMachine is not a archival solution!
    To rescue yourself from TimeMachine, you will first need to save the recent copy of file(s) to the new 3TB, then restore the older version of the file from TimeMachine to the boot drive and then rename it/date it and save that older copy to the new 3TB drive.
    This way you have both the new copy and the old copy of the file pernamently archived on the new 3TB drive.
    Once you have exhausted all of TimeMachines older files, you can free yourself from it, erase the drive.
    For your needs, I suggest this.
    Internal drive and bootable clone
    1: Your internal 750GB boot drive contains active working files.
    2: You have another external drive that's either 750GB or 1TB, you use Carbon Copy Cloner to make a bootable clone of your boot drive, update it when you know you have a stable OS X system on your boot drive and before updates or changes, this way if the update goes bad and the machine will not boot. You can connect the clone, hold the option key down and boot the comptuer from the clone. You then can get online to get help, or simply reverse clone your software problems away.
    CCC has the ability like TimeMachine to save states between clones, it's on be default but you can turn this off as to maintain a pure clone, this is what I advise you do as to avoid confusion. You clone is a perfect copy since the last update of the clone, which you can setup to do nightly if you wish or every few days or every few weeks, whatever.
    Your bootable clone is your lifesaver if your boot hard drive dies or refuses to boot up, you can boot from the clone in seconds and only be slightly off since the last update of the clone. TM won't run the computer like a clone will.
    I highly adise keeping your clone in a very safe place, away from theft, fire, electrical, etc.
    http://www.bombich.com/
    External Storage Drives
    3: Your first external 3TB drive (sans TimeMachine) will be your storage drive, this will contain any files that you don't wish to have on the internal drive and as a result also not on the clone.
    You maintain folders that are dated, with older copies of files in those folders if you wish. This way you can control the space on the drive and not make multiple duplicates of all the large files like TM does.
    For instance if you work on a 100GB project for three days, instead of having three copies taking up 300GB like what TM does, you can rather choose to have just one older copy at 100GB. You can decide you don't need a particular older version of a file and remove it, thus managing your drive space yourself.
    4: Your other external 3TB is a Carbon Copy Cloner backup of the first 3TB, maintain a perfect clone of that as well and update it periodically as your needs change. Since CCC can be schedualed and works in the background, you can have it update your clones overnight or another time your not using the machine. This free's up performance as TM isn't running in the background while your trying to work.
    Also with no TM local cache file, that also will free up space on the boot drive.
    The general rule is you need both hardware AND software protection for your data, thus with too much data to fit on the boot drive, you need a external storage drive and then a backup of that as to maintain TWO hardware copies of your data at all times.
    This method is also scaleable, if you need more room than 3TB externally, you then get another 2 3TB drives, one for the new data and one for backup.
    The bootable clone of your bootdrive is kept in a very safe place, it's designed to protect your OS X investment in software etc. and espectially, to get your Mac booting in as short as a time as possible while you plan on a replacement boot hard drive/repair.
    Read more about the advanced options bootable clones give here.
    Most commonly used backup methods
    With your large storage needs, you basically have outgrown TimeMachine by hitting the hardware limit of drives.
    If there were 10-20TB drives, you likely could keep on going with TimeMachine, but you can't.
    Your clearly in the more "professional" catagory with your storage management needs, not in the TM "newbie to computers" where it's managed for you.
    If your finding your needs are going to exceed 6TB, you might want to consider a external hardware RAID 5 box with 5+ drives, they will self redundancy so if a drive dies you just switch it with a new one and the missing data is copied from the other drives.
    https://en.wikipedia.org/wiki/RAID
    http://www.macgurus.com/
    Good Luck

Maybe you are looking for

  • Not allowing to change the plants in me51n transaction

    hi all, my requirement is to not allow the user to use different plants at item level(10,20 etc) . for that i have used the user exit MEREQ001 in the function module EXIT_SAPLMEREQ_010 i have written following code DATA : WA_EBAN LIKE EBAN,        WA

  • Search help is not working at  variable

    Hi when i am aexecuting the report. at variable screen when i am selectiong like compy code , heer lot of company code are there, there in search tab i need to search perticual comp code, please let me know any note i need to apply?

  • Incorrect payment type - automatic payments Telepay in Norway

    Dear all, My customer have a problem (Norwegian company code). They normally transfer payments to their customer using payment method T - Telepay. Normally they log in to the system with a particular user id only when doing these kind of automatic pa

  • Page no Priniting prob - Forms

    Hi im using PAGE &PAGE& OF &SAPSCRIPT-FORMPAGES(C)& to print page no in footer But while printing more than 10 pages.. ex:if 15 pages are there its like Page 1 of 1 Page 2 of 1 Page 3 of 1 Page 4 of 1 Page 5 of 1 Page 6 of 1 Page 7 of 1 Page 8 of 1 P

  • I'm NEW to iTUNES, PLEASE HELP!

    hello- I'm new to iTunes. I'm making a playlist for a party to use on an iPod. I want to arrange the songs in the order I want them to play. From what I can see, songs in a playlist cannot be moved around to play in a certain order. This can't be cor