From: Wael N. <ml...@na...> - 2008-02-26 11:46:19
|
Hello, 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... Thank you... -- Wael Nasreddine http://wael.nasreddine.com PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2 .: An infinite number of monkeys typing into GNU emacs, would never make a good program. (L. Torvalds 1995) :. |
From: Henry N. <Hen...@Ar...> - 2008-02-28 20:38:41
|
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 similar. 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 [1]. "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: sda3=\Device\Harddisk0\Partition3 [1] http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/conf/linux-2.6.22.18-config -- Henry N. |
From: Wael N. <wa...@na...> - 2008-02-29 15:39:33
|
This One Time, at Band Camp, Henry Nestler <Hen...@Ar...> 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 > similar. > 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 > [1]. "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: > sda3=\Device\Harddisk0\Partition3 > [1] > http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/conf/linux-2.6.22.18-config 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.... Thanks -- Wael Nasreddine http://wael.nasreddine.com PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2 .: An infinite number of monkeys typing into GNU emacs, would never make a good program. (L. Torvalds 1995) :. |
From: Henry N. <Hen...@Ar...> - 2008-02-29 21:22:20
|
Wael Nasreddine wrote: > This One Time, at Band Camp, Henry Nestler <Hen...@Ar...> 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 >> similar. > >> 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 >> [1]. "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: >> sda3=\Device\Harddisk0\Partition3 > >> [1] >> http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/conf/linux-2.6.22.18-config > > 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 BSOD. -- Henry N. |