A troca não funciona mesmo depois de seguir os conselhos anteriores

A troca não funciona mesmo depois de seguir os conselhos anteriores

Eu já postei umperguntaem que solsTiCe me mostrou como configurar um swap em uma partição GPT. Funcionou por um tempo, mas agora estou tendo problemas novamente. A troca não foi detectada novamente. Segui exatamente o mesmo conselho, mas não funciona desta vez. Após a reinicialização, aparece uma mensagem cryptswap perguntando se desejo pular a montagem, etc. Após o login, freenão mostra nenhuma troca, sudo fdisk -lmostra a seguinte saída:

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x055144b6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  1953525167   976762583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/cryptswap: 7999 MB, 7999586304 bytes
255 heads, 63 sectors/track, 972 cylinders, total 15624192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xe001aed0

Disk /dev/mapper/cryptswap doesn't contain a valid partition table

blkidtem exatamente a mesma saída da pergunta anterior, e o mesmo acontece com sudo gdisk /dev/sda.

A saída de /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/sda8 during installation
UUID=775b2ce6-e738-40e5-828f-eccdf49cd63a /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=B639-EA4B  /boot/efi       vfat    defaults        0       1
# /home was on /dev/sda10 during installation
UUID=22c6084f-1225-48eb-a295-5d1a0d3d8830 /home           ext4    defaults        0       2
# /windows was on /dev/sda7 during installation
UUID=6D02-3AEA  /windows        vfat    utf8,umask=007,gid=46 0       1
# swap was on /dev/sda9 during installation
#UUID=cfa1562c-1530-4bf6-85c0-babe65ae4e05 none            swap    sw              0       0
#/dev/mapper/cryptswap1 none swap sw 0 0
/dev/mapper/cryptswap        none            swap    defaults        0       0

e /etc/crypttabé:

#cryptswap1 UUID=cfa1562c-1530-4bf6-85c0-babe65ae4e05 /dev/urandom swap,cipher=aes-cbc-essiv:sha256
cryptswap   /dev/sda9    /dev/urandom     swap,cipher=aes-cbc-essiv:sha256,size=256

Responder1

Encontrei a respostaaqui:

Alterado /etc/crypttabpara incluir:

cryptswap   /dev/sda9    /dev/urandom     swap,cipher=aes-cbc-essiv:sha256,size=256

e /etc/fstabincluir:

cryptswap   /dev/sda9    /dev/urandom     swap,cipher=aes-cbc-essiv:sha256,size=256

Agora free -mmostra:

             total       used       free     shared    buffers     cached
Mem:          3377        543       2834         17         57        226
-/+ buffers/cache:        260       3117
Swap:         7628          0       7628

informação relacionada