A troca não funciona mesmo depois de seguir o conselho anterior

0

Eu já postei uma pergunta qual solsTiCe me mostrou como configurar uma troca em uma partição GPT. Funcionou por um tempo, mas agora estou tendo problemas novamente. A troca não foi detectada novamente. Eu segui exatamente o mesmo conselho, mas não funciona desta vez. Após a reinicialização, aparece uma mensagem cryptswap perguntando se eu quero pular a montagem, etc. Após o login, free não mostra nenhuma troca, sudo fdisk -l mostra 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

blkid tem exatamente a mesma saída da pergunta anterior, e o mesmo ocorre 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 são:

#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
    
por Jacques MALAPRADE 04.06.2015 / 10:00

1 resposta

1

Encontrou a resposta aqui :

/etc/crypttab alterado para incluir:

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

e /etc/fstab para incluir:

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

Agora, free -m mostra:

             total       used       free     shared    buffers     cached
Mem:          3377        543       2834         17         57        226
-/+ buffers/cache:        260       3117
Swap:         7628          0       7628
    
por Jacques MALAPRADE 05.06.2015 / 10:38