/etc/crpyttab
/etc/fstab
ELLENŐRZÉSE - SDA vagy SDB valtozik ha a lemezek valtoznak!
root UUID=00000000-1111-2222-3333-444444444444 none luks
home UUID=00000000-1111-2222-3333-555555555555 none luks
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda5 during installation
UUID=ABC00000-1111-2222-3333-444444444444 /boot ext2 defaults 0 2
/dev/mapper/home /home ext4 defaults 0 2
/sbin/cryptsetup not found
device-mapper: table ioctl on sda6_crypt failed: No such device or address
Command failed
cryptsetup: WARNING: failed to determine cipher modules to load for sda6_crypt
sudo -i
echo "raid1" >> /etc/initramfs-tools/modules
echo "raid456" >> /etc/initramfs-tools/modules
echo "aes-x86_64" >> /etc/initramfs-tools/modules
echo "aes" >> /etc/initramfs-tools/modules
echo "sha512-ssse3" >> /etc/initramfs-tools/modules
echo "xts" >> /etc/initramfs-tools/modules
echo "dm-mod" >> /etc/initramfs-tools/modules
echo "dm-crypt" >> /etc/initramfs-tools/modules
#------
sudo cryptsetup luksOpen /dev/sda6 sda6_crypt
sudo mkdir /media/sda6_crypt
sudo mount /dev/mapper/sda6_crypt /media/sda6_crypt
sudo mount --bind /dev /media/sda6_crypt/dev/
sudo mount /dev/sda5 /media/sda6_crypt/boot/
sudo chroot /media/sda6_crypt/
mount -t proc proc /proc
mount -t sysfs sys /sys
update-initramfs -u -k all
update-grub
umount /proc
umount /sys
exit
umount /media/sda6_crypt/boot/
umount /media/sda6_crypt/dev/
umount /media/sda6_crypt/proc
umount /media/sda6_crypt/sys
umount /media/sda6_crypt
https://answers.launchpad.net/ubuntu/+source/cryptsetup/+question/293750
Nincsenek megjegyzések:
Megjegyzés küldése