Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using dm_crypt and not finding /dev/mapper/root
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
westboy21
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2003
Posts: 135
Location: Raleigh, North Carolina

PostPosted: Sun Jan 23, 2005 7:27 am    Post subject: Using dm_crypt and not finding /dev/mapper/root Reply with quote

After great efforts I succeeded in encrypting my root filesystem using this guidehttps://forums.gentoo.org/viewtopic.php?t=191052&highlight=

I then decided to encrypt my laptop with the same method. This I got working as well. A month later I'm having issues with devices on my laptop, so I examine my setup. I somehow did all that encrypting without using udev. The guide was specifically FOR udev. I'm not sure if I was drunk or not :)

So ... I installed udev, and recompiled the kernel and took out devfs support. Now when I reboot, I type my password to decrypt my root partition, my ram drive does the necessary magic, and the real init process takes over. Then checkroot comes into play. Seems it can't find /dev/mapper/root. Why does this not exist? I've compared files on my desktop to files on my laptop till I'm sick of looking at them. There are NO differences. Why is the laptop missing the device at boot?

Can anyone explain to me, how the device transfer works during the pivot_root stage. When the ram drive decryptes the partition, does the /dev/mapper/control and /dev/mapper/root devices get copied over to the real root? If not, then how does the real init process know about them, since these devices are in a different /dev/ directory under the ramdrive. ???

I'm confused.
Back to top
View user's profile Send private message
mossmann
n00b
n00b


Joined: 23 Apr 2002
Posts: 13

PostPosted: Thu Jan 27, 2005 3:23 am    Post subject: try multipath-tools Reply with quote

I found multipath-tools necessary to get my /dev/mapper/ files working with udev:

https://bugs.gentoo.org/attachment.cgi?id=44249&action=view

I've also read of some people having to introduce a delay to let udev catch up:

https://forums.gentoo.org/viewtopic.php?t=189189
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