Encrypted Swap -- Loop Devices
I am having difficulty getting encrypted swap to enable on boot. Can anyone
offer any suggestions?
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda2 none swap sw,loop=/dev/loop0,encryption=AES256
0 0
After boot /dev/loop exists but /dev/loop0 to /dev/loop7 do not exist.
# ls /dev/loo*
0
# swapon -a
swapon: unable to open loop device /dev/loop0
After I execute "losetup -a", /dev/loop0 to /dev/loop7 then exist
and "swapon -a" mounts the swap.
# losetup -a
# ls /dev/loo*
/dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5 /dev/loop6 /dev/loop7
/dev/loop:
0
# swapon -a
Setting up swapspace version 1, size = 1077501 kB
no label, UUID=b9e78291-ebe5-41e9-8ed3-c65324260818
Sorry about not including boot error messages but I don't seem to be logging.
#more /var/log/boot
(Nothing has been logged yet.)
and the only reference to swap in /var/log/messages is its recreation after I
had scrubbed the partition.
May 10 22:54:32 localhost kernel: Adding 1052244k swap on /dev/loop0.
Priority:-1 extents:1 across:1052244k
Thankyou,
- Adam Wakerhauser
Reply to:
- References:
- Re: swap
- From: Roberto C. Sánchez <roberto@connexer.com>
- Re: swap
- From: Roberto C. Sánchez <roberto@connexer.com>
- Re: swap
- From: Celejar <celejar@gmail.com>