Debian randomly encrypted swap partition
mouse 177 · person cloud · link
Last update
2018-02-22
2018
02-22
« — »
1
2
3
4
5
6
7
8
9
10
11
12
13
14
swapoff -a

# blank current partition header
dd if=/dev/zero of=/dev/sdXY bs=1M count=100
# if you are on an SSD use this:
blkdiscard /dev/sdXY

# /etc/fstab
/dev/mapper/cswap none swap sw 0 0

# /etc/crypttab
cswap /dev/disk/by-id/xxx-part6 /dev/urandom swap

shutdown -r 0