Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

/etc/crypttab option

  • 08-04-2011 10:35AM
    #1
    Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭


    Ok...I've encrypted my home partition. I used the "Disk Utility" to do so. Worked out grand. Now if I run

    cryptsetup luksOpen /dev/md1 home

    it asks me for a passphrase and the device appears for mounting. Grand.

    So now I want it to ask for my passphrase at boot time. My /etc/crypttab looks like this:

    # <target name> <source device> <key file> <options>
    home /dev/md1 none luks


    No dice. When I run

    cryptdisks_start home

    I get this:
    * Starting crypto disk...                                                       * home (starting)..
    /usr/sbin/cryptdisks_start: 1: /lib/udev/watershed: not found
    /usr/sbin/cryptdisks_start: 1: /lib/udev/watershed: not found
    /usr/sbin/cryptdisks_start: 1: /lib/udev/watershed: not found
     * home (failed)...                                                      [fail] 
    

    Can someone tell me what I'm doing wrong there?


Comments

  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    I'll leave this here in case it happens to someone else....it prompts for the password at reboot. Looks like cryptdisks_start is just broken.

    Encrypted home partition. \o/


  • Registered Users, Registered Users 2 Posts: 201 ✭✭jonathan11


    Was playing around with this a few weeks ago,
    I scribblled down these notes.... might be some help...

    [HTML]parted -s /dev/sda mkpart logical ext2 15800 15900
    mkfs -t ext2 /dev/sda4

    cryptsetup --verbose --verify-passphrase luksFormat /dev/sda4
    cryptsetup luksOpen /dev/sda4 sda4
    ls -l /dev/mapper
    mkfs -t ext3 /dev/mapper/sda4

    mkdir /secure
    mount /dev/mapper/sda4 /secure

    echo "sda4 /dev/sda4 none" >> /etc/crypttab
    echo "/dev/mapper/sda4 /secure ext3 defaults 1 2" >> /etc/fstab
    shutdown -r now[/HTML]


Advertisement