Tagged: system administration

Arch Linux & Crypt Root FS

The Problem

My last install of arch did not include the cryptsetup tool in the initrd.img


  • Kernel Boot Parameters
    • dm-crypt
    • arch linux bbs post
      • linux /vmlinuz26 root=/dev/mapper/your-encrypted-device cryptdevice=/dev/sdaX:your-encrypted-device
    • linuxmint forum
      • cd /dev; MAKEDEV generic (outside of chroot)
      • echo ‘CRYPTOPTS=target=sda5_crypt,source=/dev/sda5’ > /etc/initramfs-tools/conf.d/cryptroot
      • (sda5 is my encrypted volume)
      • cp /usr/share/initramfs-tools/hooks/cryptroot /etc/initramfs-tools/hooks/cryptroot
      • cp /usr/share/initramfs-tools/scripts/local-top/cryptroot /etc/initramfs-tools/scripts/local-top/cryptroot
      • update-grub
      • update-initramfs -u (of course)
  • Backup the Crypt Header