You are not logged in.

#1 2014-11-26 09:58:52

dartfira
Member
Registered: 2010-08-23
Posts: 104

Grub, lvm and encryption

Yesterday I thought the problem on my brand new encrypted archlinux system was the encrypted part, then in the night I realize: if grub didn't show up the problem belongs here nor in dmcrypt, luks or lvm.
So today I'm checking up the partition to see if there are some mistake, got two partition sda1 and sda2, the second one is a LVM the first one a Bios partion EF02 where grub2 is, Gpt scheme has been used. The mkconfig goes smooth, except for lvmeta error the guide also mention it. So where is the problem, does the system didn't recognize grub partition, I think so, or it should be somewhere else?
Where can I check the startup log?
When the computer star grub doesn't show up and the system reboot in a loop, I see only the Asus logo then nothing, that's because ipthef problem is the grub loading nor the encrypted partition, I thought that because it didn't found the lvm volume reboot itself then I realize that I should be seeing grub anyway.

I've been using this guide for the whole installation https://wiki.archlinux.org/index.php/Dm … VM_on_LUKS

Last edited by dartfira (2014-11-26 10:02:39)

Offline

#2 2014-11-26 11:05:11

CarlD
Member
From: London
Registered: 2013-11-23
Posts: 128

Re: Grub, lvm and encryption

Some of the information you've provided is somewhat confusing. Is your system UEFI or BIOS based? If BIOS, then you have no reason to use a GPT partition table. It should be MBR. This could be why Grub isn't even showing up.

I suspect you are trying to take on too much at this juncture, and so are in for a world of frustration. My advice would be to first learn how to install Arch properly (including building relevant knowledge about partition tables, partitioning, and bootloaders such as Grub). Once that is sorted, then build on that knowledge by learning the basics of LVM. And then once you know how to install Arch with LVM, then go for LUKS.

Offline

#3 2014-11-26 19:41:59

dartfira
Member
Registered: 2010-08-23
Posts: 104

Re: Grub, lvm and encryption

Maybe I've made a mistake understanding the difference for mbr and gpt but I've been an arch user for 4 years.

Offline

#4 2014-11-26 20:06:15

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Grub, lvm and encryption

Even mkinitcipio should have some relevance, I think. Start to see grub lvm and luks.


do it good first, it will be faster than do it twice the saint wink

Offline

#5 2014-11-27 01:49:20

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Grub, lvm and encryption

You have two partitions, sda1 is EF02 and sda2 is LVM, but where is your separate boot partition that is required for full system encryption?

Offline

#6 2014-11-27 09:40:48

dartfira
Member
Registered: 2010-08-23
Posts: 104

Re: Grub, lvm and encryption

Only the lvm partition is encrypted.

Last edited by dartfira (2014-11-27 10:37:54)

Offline

#7 2014-11-27 09:51:36

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: Grub, lvm and encryption

@dartfira: OK, so what I understand from this thread so far is:

1) You have an installation with LVM on LUKS;
2) You have chosen to use a GRUB BIOS bootloader with GPT. Hence an EF02 partition, as per these instructions here;
3) You haven't created a separate /boot partition (separate to the EF02 partition) so you can actually boot into the LVM on LUKS installation.

Assuming those three points (specifically the last one) are correct, you need to either shrink /dev/sda2 or re-install, creating a third partition (100MBshould work for most people) which should be mounted as /boot in the arch-chroot environment (so there needs to be three disk partitions. Creating /boot as a logical volume won't work here).

Addendum: I didn't think to mention the option of using a USB Stick as a /boot partition, because I assumed you wouldn't want to have to put in USB Stick every time you booted everytime you want to get to Arch. The plus of this option is that you don't need to resize anything, but you might need to format the USB stick to an accepted filesystem for the bootloader and you need to install the bootloader to the disk.

Last edited by clfarron4 (2014-11-27 10:15:54)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#8 2014-11-27 10:41:14

dartfira
Member
Registered: 2010-08-23
Posts: 104

Re: Grub, lvm and encryption

Or I can use the other disk, the one in the CDROM port, to add a boot partition, is it correct?
So the lvm partition, with luks, will be the only one on the ssd and the other disk (I use it for storage) will have a boot partition on it.

Offline

#9 2014-11-28 21:37:02

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Grub, lvm and encryption

Yes, it is possible to have the /boot partition on another disk. I have my /boot partition on a usb flash drive. May i ask why you want to have /boot on another disk?

Last edited by teateawhy (2014-11-28 21:37:19)

Offline

#10 2014-11-29 13:17:23

dartfira
Member
Registered: 2010-08-23
Posts: 104

Re: Grub, lvm and encryption

Because it's insecure to have a disk half encrypted and half not, so I decided too have the uncreypted boot partition on another disk.

Offline

#11 2014-11-29 15:03:20

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: Grub, lvm and encryption

So, you'll be looking at using a LiveCD to chroot into the installation, mounting the memory stick at /boot and installing the bootloader to that.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#12 2014-11-29 19:49:29

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Grub, lvm and encryption

Before installing the bootloader you need to copy the initrd and kernel over to the boot partition. Reinstall the linux package after mounting the boot partition to let pacman do it for you. Also you can delete the files from the /boot directory on the root partition.

Offline

Board footer

Powered by FluxBB