FS#11295 - SWAP keyword in /etc/crypttab doesn't create /dev/mapper/swap
Attached to Project:
Arch Linux
Opened by Manuel C. (ekerazha) - Saturday, 23 August 2008, 16:43 GMT
Last edited by Thomas Bächler (brain0) - Friday, 29 August 2008, 13:29 GMT
Opened by Manuel C. (ekerazha) - Saturday, 23 August 2008, 16:43 GMT
Last edited by Thomas Bächler (brain0) - Friday, 29 August 2008, 13:29 GMT
|
Details
If you put (example)
swap /dev/sda3 SWAP -c aes-xts-plain -h whirlpool -s 512 into /etc/crypttab and reboot, it doesn't create any /dev/mapper/swap device (and it can't "swapon"). It seems like the "SWAP" keywork doesn't work as expected. Other users have this issue too: http://bbs.archlinux.org/viewtopic.php?id=53808 |
This task depends upon
# cat /etc/crypttab | grep /dev/sda2
swap /dev/sda2 SWAP -c aes-xts-plain -h whirlpool -s 512
# ls -l /dev/mapper/swap
brw------- 1 root disk 254, 2 сер 28 19:16 /dev/mapper/swap
Bernhard (dw), can you still confirm this one too?
However, other sanity checks are not in place, although they should be. Try overwriting the first few sectors of the partition with dd and see if it helps.-
i can reproduce this using up to date installation media in a fully updated system (both with and without testing enabled)
it seems to me that the check in /etc/sysinit.rc wheter the partition is as luks-partition seems to have something to do with the problem. my swap partition was ONCE a luks partition but in the meantime i have formatted this quite a few times. so i don't really understand why overwriting the first sectors could help to solve the problem. but i will try and report back here.
# echo $?
If this returns 0, then /dev/something is recognized as a LUKS partition.