You are not logged in.
Pages: 1
Afternoon all, I am having some difficulty encrypting my swap partition.
Here is my /etc/fstab
GNU nano 2.2.6 File: /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=26882eb1-1601-49d7-9cc5-5b30b45a4338 /home ext4 defaults,user_xattr 0 1
/dev/mapper/swap swap swap defaults 0 0
#UUID=4f11f3a5-fa0b-4077-b4f8-e4ba086bee45 swap swap defaults 0 0
UUID=a1127842-f956-499f-bb64-ad9b496209d1 /boot ext2 defaults 0 1
UUID=fd6b16de-7940-4007-a788-12c6dbc29f9b / ext4 defaults 0 1
And here is my /etc/crypttab
# NAME SOURCE DEVICE PASSWORD OPTIONS
#home /dev/hda4 mypassword
#data1 /dev/hda3 "my \"password\""
#data2 /dev/hda5 /etc/cryptfs.key
#swap /dev/hdx4 SWAP -c aes-cbc-essi$
#vol /dev/hdb7 ASK
swap /dev/sda2 SWAP "-c aes-xts-plain -h whirlpool -s 512"
When I boot, I get 'Failed to load encypted swap' or something to that effect. Any ideas?
Cheers,
Wallsy
Offline
What do the logs (/var/log/messages.log) say? Also consider using persistent naming in your crypttab.
Burninate!
Offline
May 20 17:06:17 localhost kernel: [ 5.134512] device-mapper: uevent: version 1.0.3
May 20 17:06:17 localhost kernel: [ 5.134697] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
May 20 17:06:17 localhost kernel: [ 5.584045] EXT4-fs (sda3): re-mounted. Opts: (null)
May 20 17:06:17 localhost kernel: [ 5.740085] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: user_xattr
May 20 17:06:17 localhost kernel: [ 5.774080] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
May 20 17:06:17 localhost kernel: [ 5.775144] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
I was doing everything by UUID earlier, but the same problem was happening so I thought I would change it to see if it worked, which it didn't.
top returns no swap active.
Offline
Altered fstab and crypttab as follows respectively:
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=26882eb1-1601-49d7-9cc5-5b30b45a4338 /home ext4 defaults,user_xattr 0 1
#/dev/mapper/swap swap swap defaults 0 0
UUID=4f11f3a5-fa0b-4077-b4f8-e4ba086bee45 swap swap defaults 0 0
UUID=a1127842-f956-499f-bb64-ad9b496209d1 /boot ext2 defaults 0 1
UUID=fd6b16de-7940-4007-a788-12c6dbc29f9b / ext4 defaults 0 1
# NAME SOURCE DEVICE PASSWORD OPTIONS
#home /dev/hda4 mypassword
#data1 /dev/hda3 "my \"password\""
#data2 /dev/hda5 /etc/cryptfs.key
#swap /dev/hdx4 SWAP -c aes-cbc-essi$
#vol /dev/hdb7 ASK
swap UUID=4f11f3a5-fa0b-4077-b4f8-e4ba086bee45 "-c aes-xts-plain -h whirlpool -$
But to no avail
Offline
Pages: 1