[dm-crypt] Can't boot

merc1984 at f-m.fm merc1984 at f-m.fm
Sun Nov 3 18:55:07 CET 2013


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...



More information about the dm-crypt mailing list