You are not logged in.

#1 2017-07-21 05:19:05

kalle
Member
Registered: 2016-04-09
Posts: 22

encrypted swap not useable, system freeze

Hi there,

I have an encrypted swap residing on a ssd. The setup is that from the wiki for encrypted swap with special regard to device naming. Thus, a small ext2 system with a label and then the swap. however, everthing is in lvm system.

The problem is that when the system needs the swap it totally freezes such that I have to do a hard reset. Thus, it must be somehow that the systems "thinks" the swap is there, but in fact it isn't.

part of lvdisplay gives:

--- Logical volume ---
  LV Path                /dev/systems/swap
  LV Name                swap
  VG Name                systems
  LV UUID                XtDffE-zYPA-3SGk-13Li-HpkU-U5Kc-P4XKt6
  LV Write Access        read/write
  LV Creation host, time archiso, 2016-06-21 11:32:54 +1000
  LV Status              available
  # open                 1
  LV Size                32.00 GiB
  Current LE             8192
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0

blkid gives:

/dev/mapper/systems-swap: LABEL="cryptswap" UUID="2806657e-9a32-4998-af3d-d0625a979128" TYPE="ext2"

and

/dev/mapper/swap: UUID="d4ba3866-01c2-4673-adbf-557ccc372e09" TYPE="swap"

crypttab is:

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

fstab is:

/dev/mapper/swap        none            swap            defaults        0 0

top gives:

GiB Swap:  0.0/31.999

Since I couldn't find any help via google I guess I made a very specific set up mistake.

Any help is much appreciated.

Cheers

Last edited by kalle (2017-07-21 06:18:38)

Offline

#2 2017-07-21 05:32:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: encrypted swap not useable, system freeze

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-07-21 06:18:47

kalle
Member
Registered: 2016-04-09
Posts: 22

Re: encrypted swap not useable, system freeze

changed.

Offline

Board footer

Powered by FluxBB