Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

/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