Wael Nasreddine wrote:
> This One Time, at Band Camp, Henry Nestler <Henry.Ne@...> said, On Thu, Feb 28, 2008 at 09:41:11PM +0100:
>> Wael Nasreddine wrote:
>>> I currently dual or actually tripple boot Windows XP with Gentoo linux
>>> and Arch Linux, my hard disk is partitioned as following:
>>> /dev/sda1 10G Fat32 Windows XP
>>> /dev/sda2 100M ext2 /boot partition
>>> /dev/sda3 110G DM-CRYPT
>>> the /dev/sda3 is an encrypted partition ( LUKS Encrypted.. ), over it
>>> I have an LVM array with 12 LVs 2 of them are gentoo and arch roots, I
>>> have home, 2 swap etc...
>>> is there a way I can boot Gentoo or Arch from the LVM array ( that is
>>> over DM-CRYPT ) with coLinux.... it would be excellent if I could boot
>>> it because I'm really annoyed that I can't access any of LVMed
>>> partition from windows, I have to reboot If I want one file... I also
>>> miss Mutt...
>> Yes, this should go. Some user have a raid setup running. So your LVM is
>> You need colinux with LVM and DM-Crypt supprt (as module or kernel build
>> in). I not know, what modules you need. Please check the kernel config
>> . "CONFIG_DM_CRYPT=m" I can see there. But not know what else you need.
>> You need manualy change the initrd for this. Basic steps are:
>> - unpack (gunzip and cpio) the boot/initrd from your native Gentoo boot
>> - View into th file linuxrc, and check how an what modules are
>> installed. (modprobe or insmod)
>> - Locate the modules path inside the initrd (lib/modules/...)
>> - Remove all non coLinux modules. Replace/Add all modules you need with
>> coLinux version.
>> - create the gzipped cpio initrd from the tree now.
>> - Use the new initrd as "initrd=..." for colinux boot.
>> - For the first start should run with non graphical runlevel, add "init
>> 2" into the colinux config as kernel command line.
>> The partition should configure as alias in coLinux config, for example:
> Okay I see what I should do, but What if I used the Gentoo
> kernel/initrd I have in gentoo for coLinux, would it work?? I'm going
> to try it but tonight when I'll be home, I'll try it and report back
> the results....
The coLinux initrd has only one script to copy modules into a root
filesystem. But your rootfs is encrypted. So, the simple "mount" would
no work in your case.
The Gentoo initrd must have some more programs to load modules and
activate the LVM and encryption. I think and hope. But Gentoo initrd
would have wrong module version (from non coLinux kernel). That's why
modules should have to replace.
And, don't try to use the Gentoo kernel. That would alltimes crash with