Encrypted SWAP partition seems not to be enabled in Trusty

Asked by Star Man

My recently installed Trusty system has hanged-out twice yet. I had to hard-reset it. I think it has to do with RAM reaching it's limit and not being able to page to SWAP.

When I check the resources tab in System Monitor, the SWAP indicator always says "not available".

On the terminal, using the "sudo blkid | grep swap" returns absolutely nothing.

When I installed the system, I tried to enable a 4GB SWAP partition, then asked to encrypt my /home folder. I used the "mac" version of the installer, by the way. This is exacly what I did before for Precise, and I never had these issues then.

What is going on?

This is my system:
Linux 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
...on a MacBook with 2GB RAM Intel Core 2 Duo @ 2.4GHz

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Star Man
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

sudo parted -l; swap -l; free -m

Thanks

Revision history for this message
Star Man (starman-deactivatedaccount) said :
#2

This is the output (in spanish) for:

sudo parted -l; swap -l; free -m

Modelo: ATA FUJITSU MHY2160B (scsi)
Disco /dev/sda: 160GB
Tamaño de sector (lógico/físico): 512B/512B
Tabla de particiones. gpt

Numero Inicio Fin Tamaño Sistema de archivos Nombre Banderas
 1 20,5kB 210MB 210MB fat32 EFI System Partition arranque
 2 210MB 30,2GB 30,0GB hfs+ Macintosh HD
 3 30,2GB 72,1GB 41,8GB ext4 msftdata
 4 72,1GB 156GB 83,7GB ext4 msftdata
 5 156GB 160GB 4294MB msftdata

No se ha encontrado la orden «swap», quizás quiso decir:
 La orden «snap» del paquete «snap» (universe)
 La orden «szap» del paquete «dvb-apps» (universe)
 La orden «swab» del paquete «odin» (universe)
 La orden «smap» del paquete «slurm-llnl» (universe)
 La orden «sswap» del paquete «secure-delete» (universe)
 La orden «swarp» del paquete «suckless-tools» (universe)
 La orden «stap» del paquete «systemtap» (universe)
swap: no se encontró la orden
             total usado libre compart. búffers almac.
Mem: 1967 1561 405 125 54 713
-/+ buffers/cache: 794 1172
Intercambio: 0 0 0

Revision history for this message
Star Man (starman-deactivatedaccount) said :
#3

I intended to provide a 4GB swap partition in /dev/sda5

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Looks like you need to format the swap space to swapfs then add it to /etc/fstab

Revision history for this message
Star Man (starman-deactivatedaccount) said :
#5

Thanks man!

Should I file this issue as a bug on Launchpad? Being a problem of the installer, which package would it be?

Revision history for this message
luciano rinetti (l-rinetti) said :
#6

Hello Actionparsnip,
whar exactly means "format the swap space to swapfs then add it to /etc/fstab" ?
I have some diffivult to follow your suggestion, can you step-by-step me in your solution ?

Regards,

Revision history for this message
Simon Bateman (batemans-25) said :
#7

I have the same problem, when installing 'trusty' from an ISO to upgrade my 32bit Laptop from 'saucy', I formatted dev/sda5 as SWAP and got the "swap not available" in System Montor/Rescources and frequent system halts!

1. I booted a Rescue CD and found that the dev/sda5 was UnFormatted - so re-Formatted, with Gparted as - linux-swap.
2. Re-booted 'trusty' - STILL "swap not available"!
3 Checked with Gparted and dev/sda5 was properly formatted as swap

output of /etc/fstab
-----------------------------
# /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>
# / was on /dev/sda1 during installation
UUID=9f65bc5e-fb6a-4ea6-9d8c-efd79117f599 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
#UUID=67e64351-6657-4cab-90d1-9961cf6a5e09 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0