Re: exhausting read requested

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

 



On 29/04/2007 Simon Morgan wrote:
> I am trying to get encrypted swap working. Can somebody please tell me
> why I get "Warning: exhausting read requested, but key file is not a
> regular file, function might never return." even though I created a
> non-LUKS partition and specified a key size?
> 
> I do the following:
> 
> cryptsetup -c aes -s 256 -d /dev/urandom create swap /dev/hda2
> 
> which works fine. Then I do:
> 
> mkswap /dev/mapper/swap
> swapon /dev/mapper/swap
> 
> which also works fine. I add the following to /etc/crypttab:
> 
> swap  /dev/hda2  /dev/urandom  -c aes -s 256

I don't know which distribution you're using, but if it's debian or
ubuntu, you should change the crypttab to:

swap  /dev/hda2  /dev/urandom  swap,cipher=aes,size=256

> mkswap /dev/mapper/swap

this one is done by /etc/init.d/cryptdisks if you add the "swap" option
to /etc/crypttab.

...
 jonas

---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux