Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9h_lnN_RrJ24 for ; Sun, 3 Nov 2013 19:03:05 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Sun, 3 Nov 2013 19:03:05 +0100 (CET) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 9073D21030 for ; Sun, 3 Nov 2013 12:55:07 -0500 (EST) Message-Id: <1383501307.32451.42353805.51A02D4A@webmail.messagingengine.com> From: merc1984@f-m.fm MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Date: Sun, 03 Nov 2013 09:55:07 -0800 Subject: [dm-crypt] Can't boot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de I can't figure out how to subscribe to the list, so I hope that just sending is OK. I've installed SolydX (Debian), but it won't boot. It never asks me for sda3's password, and after a bit always drops me to (initramfs), saying that no root disk was found. Indeed there is no /dev/mapper/sda3_crypt. For some reason, on boot it is not setting up the luks disk. My method below works just fine for a SolydK install (KDE), but not for a SolydX install (XFCE). The installer does not support encryption, so I installed it to partitions: /boot /dev/sda1 200MB ext3 / /dev/sda4 1.8TB jfs While still in the SolydX live DVD: # cryptsetup luksFormat /dev/sda3 # cryptsetup luksOpen /dev/sda3 sda3_crypt # mkfs.jfs /dev/mapper/sda3_crypt # mkdir /media/3 # mount /dev/mapper/sda3_crypt /media/3 Now I copied everything from sda4 (the / install) to sda3 # rsync --archive --hard-links --numeric-ids --progress /media/solydxk/???/* 3 # cd /media/3/etc In /etc/crypttab (which doesn't exist in SolydX until I create it, in contrast with SolydK which has one): sda3_crypt /dev/sda3 none luks In fstab: /dev/mapper/sda3_crypt / jfs errors=remount-ro,noatime 0 1 # mount /dev/sda1 /media/3/boot # cd /media/3 # mount -t proc proc proc/ # mount -t sysfs sys sys/ # mount -o bind /dev dev/ # mount -t devpts pts dev/pts/ # chroot /media/3 /bin/bash In /etc/initramfs-tools/modules: dm_mod dm_crypt aes_x86_64 Then # which cryptsetup /usr/bin/cryptsetup # update-initramfs -k all -u # nano /etc/default/grub and add to GRUB_CMDLINE_LINUX_DEFAULT ipv6-disable=1 # update-grub -- http://www.fastmail.fm - Same, same, but different...