Wednesday, August 28, 2019

encryption - Swap partition get damaged when encrypted

I upgraded my system to Ubuntu 14.04LTS, I encrypted the home & the swap partition during the installation since it was already encrypted in the old version.



But later I noticed swap partition is not used & using the gparted I found the swaps is damaged, I re-formatted the swap partition as Linux-swap & fixed the UUID in the fstab then cleared the crypttab, then swap was working fine but without the encryption. As soon as I run the ecryptfs-setup-swap to encrypt the swap partition then reboot the system it gets damaged.



This link shows the steps I followed




Any idea how to fix this?






@muru this is the output, & sda6 is the swap part.



sudo blkid

/dev/sda1: SEC_TYPE="msdos" UUID="5450-4444" TYPE="vfat"

/dev/sda2: LABEL="RECOVERY" UUID="DAAC6031AC600A79" TYPE="ntfs"
/dev/sda3: LABEL="WinSys" UUID="E2D0647AD0645737" TYPE="ntfs"
/dev/sda5: UUID="96e501a8-40ee-4d08-bcb2-2396a99abd94" TYPE="ext4"
/dev/sda7: UUID="348874d5-f654-4640-bbad-0b377e545334" TYPE="ext4"


sudo lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 698.7G 0 disk

├─sda1 8:1 0 39.2M 0 part
├─sda2 8:2 0 13.2G 0 part
├─sda3 8:3 0 100G 0 part
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 42.9G 0 part /
├─sda6 8:6 0 14.3G 0 part
└─sda7 8:7 0 528.2G 0 part /home
sr0 11:0 1 1024M 0 rom



Hope its readable now.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...