You are not logged in.

#1 2016-01-19 23:09:36

Psirus
Member
Registered: 2012-01-29
Posts: 45

Dual Booting with LVM on LUKS

I've been running Arch with LVM on LUKS for quite a while, and had no problem setting it up thanks to the wiki. Now I would like to dual-boot with Xubuntu. I've created another logical volume where I've installed Xubuntu, and chose not to write bootloader during the Xubuntu install, because I wanted to use the one from Arch. Using grub-mkconfig and os-prober, there is now an entry for Xubuntu that was added automatically, but it does not boot.
lsblk:

NAME                       MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                          8:0    0 298,1G  0 disk  
├─sda1                       8:1    0   100M  0 part  /boot
└─sda2                       8:2    0   298G  0 part  
  └─MyStorage              254:0    0   298G  0 crypt 
    ├─MyStorage-swapvol    254:1    0     4G  0 lvm   [SWAP]
    ├─MyStorage-rootvol    254:2    0    25G  0 lvm   /
    ├─MyStorage-homevol    254:3    0   259G  0 lvm   /home
    └─MyStorage-xubuntuvol 254:4    0    10G  0 lvm 

So right now, there is "Arch's /boot" in /dev/sda1, and "Xubuntu's /boot" in /dev/MyStorage/xubuntuvol/boot, so I'm not surprised it doesn't work, since this is inside the encrypted partition. But I'm not sure how to go from here?! How can configure grub so that it can boot into Xubuntu?

Offline

#2 2016-01-20 09:36:54

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Dual Booting with LVM on LUKS

You probably can't expect os-prober to work for that.

For an Arch installation, you need something like this:
https://gist.github.com/tomty89/53c1bb1496ee9a1f76e6

But "cryptdevice=" is arch-specific, you need to find out how you should mount encrypted / in (X)ubuntu.

Offline

Board footer

Powered by FluxBB