Description: 
    I encrypt my root system, then i create /etc/crypttab and modify 
/etc/fstab, But i don't know what should i boot my encrypt system.
this is  my step to encrypt my root system:
   1, create two partition , sda1 is used boot, sda2 is root system
   2,encrypt sda2:
      2.1, dd if=/dev/random of=/etc/root-key bs=1c count=32
      2.2, cryptsetup -d /etc/root-key create root /dev/sda1
      2.3, mkfs.ext4 /dev/mapper/root
      2.4, mount /dev/mapper/root /mnt & cp -avx / /mnt
   3, create /etc/crypttab ' root /dev/sda3 /etc/root-key cipher=aes'
   4, modify /etc/fstab  '#UUID ... ' replace to '/dev/mapper/root / ext3 
defaults 1 1'
   5, make initrd 'mkinitramfs' & mv ***.img to initrd.img 
   6, setting grub.cfg: linux ... root=/dev/mapper/root  initrd /boot/initrd.img


reference:
   https://www.linuxjournal.com/article/7743
   http://www.linuxfromscratch.org/blfs/view/svn/postlfs/initramfs.html

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to