Re: problem: loop-aes swap partition isn't mounted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tobias Walkowiak wrote:
> On Mon, Sep 12, 2005 at 05:54:39PM +0300, Jari Ruusu wrote:
> > It should output "swapon: unable to open loop device %s".
> > If it doesn't output that, then you are running wrong swapon program.
> 
> but it _does_ output that. i'm using the loop-aes-utils package on debian
> which has version 2.12p-8

You have correct swapon program in there, good.

> the only error message is 'activating swap ... failed' during boot. even
> dmesg doesn't say anything about it. and after booting losetup -a doesn't
> show any loop.

Max Vozeler wrote:
> Indeed, I can reproduce this. I'll investigate and follow up later today.

Encrypted swap on stock kernel.org 2.6.13 works ok here, no udev.

# grep /dev/hda3 /etc/fstab
/dev/hda3  none  swap  sw,loop=/dev/loop6,encryption=AES128  0  0
# swapon -a -v
loop: loaded (max 8 devices)
Setting up swapspace version 1, size = 177012736 bytes
swapon on /dev/loop6
Adding 172860k swap on /dev/loop6.  Priority:-2 extents:1
# losetup -a
/dev/loop6: [0302]:77886 (/dev/hda3) offset=4096 encryption=AES128 multi-key-v3
# cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/loop6                              partition       172860  0       -2
# uname -r
2.6.13

Silly check: do you have swap enabled in your kernel config?
CONFIG_SWAP=y

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux