Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] udev-120 and dmcrypt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jakeluck
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2003
Posts: 84

PostPosted: Sun Apr 20, 2008 5:41 am    Post subject: [SOLVED] udev-120 and dmcrypt Reply with quote

just did a update world today and I noticed that my encrypted swap that was
working previously had stopped loading. i have already unmasked and upgraded
to newest udev-120, same kernel 2.6.23-gentoo-r3 on amd64

CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_CRYPTOLOOP=y
CONFIG_BLK_DEV_NBD=y
CONFIG_MD=y
CONFIG_BLK_DEV_DM=y
CONFIG_DM_CRYPT=y
CONFIG_CRYPTO=y
and most of the CONFIG_CRYPTO_* are on

/etc/conf.d/cryptfs
swap=csb source='/dev/sdb5'
swap=csc source='/dev/sdc5'

/etc/fstab
#/dev/sdb5 none swap sw,pri=3 0 0
#/dev/sdc5 none swap sw,pri=3 0 0
/dev/mapper/csb none swap sw,pri=3 0 0
/dev/mapper/csc none swap sw,pri=3 0 0

# swapon -a
swapon: cannot canonicalize /dev/mapper/csb: No such file or directory
swapon: cannot stat /dev/mapper/csb: No such file or directory
swapon: cannot canonicalize /dev/mapper/csc: No such file or directory
swapon: cannot stat /dev/mapper/csc: No such file or directory

suggestions?


Last edited by jakeluck on Sun Apr 20, 2008 9:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
electronvolt
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2007
Posts: 83

PostPosted: Sun Apr 20, 2008 4:33 pm    Post subject: Reply with quote

This is more then likely caused by an upgrade of cryptsetup. You need to copy the contents of /etc/conf.d/cryptfs to /etc/conf.d/dmcrypt as the config file for cryptsetup has changed name.
ie
swap=csb source='/dev/sdb5'
swap=csc source='/dev/sdc5'
should be in /etc/conf.d/dmcrypt and not /etc/conf.d/cryptfs

If this works then you can delete /etc/conf.d/cryptfs.
HTH
Back to top
View user's profile Send private message
jakeluck
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2003
Posts: 84

PostPosted: Sun Apr 20, 2008 9:03 pm    Post subject: Reply with quote

yup, that was it, thank you for the tip!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum