Much to my surprise I recently found myself to lack a swap partition.
Since (as is evident from the output of df
, which I hereby repost) that I am running off a single encrypted volume, I was wondering how I can safely go about resizing everything and creating an 8 GB partition for use as a swap (and enabling it's use). I seem to remember that the scheme I opted for during installation is LUKS.
user@host:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root 237978256 14144120 211722472 7% /
none 4 0 4 0% /sys/fs/cgroup
udev 3829132 4 3829128 1% /dev
tmpfs 3844736 2060 3842676 1% /tmp
tmpfs 768948 1324 767624 1% /run
none 5120 0 5120 0% /run/lock
none 3844736 32312 3812424 1% /run/shm
none 102400 28 102372 1% /run/user
tmpfs 3844736 0 3844736 0% /var/spool
tmpfs 3844736 24 3844712 1% /var/tmp
tmpfs 3844736 936 3843800 1% /var/log
/dev/sda1 240972 84550 143981 37% /boot
/home/user/.Private 237978256 14144120 211722472 7% /home/user
user@host:~$
I'm a little out of my depth and I intuit that there's ample opportunity for disaster so I'd much appreciate some assistance. (And, though I would be disappointed if I accidentally nuked the drive, this is just a personal laptop with nothing criticcal on it, so I could always start over).