Results 1 to 2 of 2

Thread: Raspberry Pi Disk Encryption issues

  1. #1
    Join Date
    2016-Mar
    Posts
    1

    Raspberry Pi Disk Encryption issues

    Hi everyone,

    I have an issue with my image of ARM Kali (kali-2.1-rpi2). I am following the instructions on https://www.offensive-security.com/k...sk-encryption/ to encrypt my kali image but when I get to this step mkinitramfs -o /boot/initramfs.g 3.18.16-v7 I get the following error

    Code:
    root@kali:~# ls -l /lib/modules/ |awk -F" " '{print $9}'
    
    3.18.16-v7
    root@kali:~# mkinitramfs -o /boot/initramfs.g 3.18.16-v7
    cryptsetup: WARNING: failed to detect canonical device of /dev/mmcblk0p2
    cryptsetup: WARNING: could not determine root device from /etc/fstab
    dropbear: WARNING: Invalid authorized_keys file, remote unlocking of cryptroot via ssh won't work!
    root@kali:~#
    Can someone assist me in figuring out what I am doing wrong? i am following the instructions verbatim as I cannot carry on with the remaining sections in that link.

  2. #2
    Join Date
    2013-Mar
    Location
    montreal
    Posts
    2
    I had the same problem, you have to change the nick name /dev/blablabla to the real name meaning the uuid in the file /etc/fstab
    Code:
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc /proc proc nodev,noexec,nosuid 0  0
    #/dev/mmcblk0p2 / ext4 errors=remount-ro 0 1
    UUID=5000bb00-3581-4f00-b858-dd4110f0a0bb / ext4 errors=remount-ro 0 1
    # Change this if you add a swap partition or file
    #/dev/SWAP none swap sw 0 0
    #/dev/mmcblk0p1 /boot vfat noauto 0 0
    UUID=2CBE-0EF0 /boot vfat noauto 0 0
    blkid will give your the uuid that you need.
    I think you sould ignore the error: Unsupported ioctl: cmd=0x5331

    make an ssh key rename the public key to authorized_keys and copy it to /etc/dropper-initramfs
    Last edited by soroush731; 2016-05-07 at 18:04.

Similar Threads

  1. NetHunter Disk Encryption
    By muts in forum NetHunter How-Tos
    Replies: 10
    Last Post: 2020-11-21, 01:28
  2. Disk encryption password won't type
    By inferno5000 in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2017-09-06, 07:58
  3. Cannot type in disk encryption password at boot
    By eeuan in forum General Archive
    Replies: 0
    Last Post: 2016-09-09, 17:31
  4. Replies: 15
    Last Post: 2016-08-04, 06:33
  5. Lvm Hard DIsk Encryption?
    By Cubuss in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2014-05-25, 01:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •