You are not logged in.

#1 2013-11-16 18:21:13

devgrg
Member
Registered: 2013-11-16
Posts: 1

Actual guide to install rEFInd in a lvm based dm-crypt LUKS Arch

Hi y'all, I am looking for an actual guide to install rEFInd in a lvm based dm-crypt LUKS Arch installation. I have searched over the internet, Arch Wiki, Arch Forum but there is no definitive comprehensive guide to install rEFInd in a lvm system encrypted with dm-crypt LUKS. This is what I have done so far?


iw dev
ip link set wlp3s0 up
wifi-menu wlp3s0
cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda6
cryptsetup luksOpen /dev/sda6 mero
pvcreate /dev/mapper/mero
vgcreate lvmko /dev/mapper/mero
lvcreate --size 100G lvmko --name root
lvcreate --size 8G --contiguous y lvmko --name swap
lvcreate -l +100%FREE lvmko --name home
mkfs.ext4 /dev/mapper/lvmko-root
mkfs.ext4 /dev/mapper/lvmko-home
mkswap /dev/mapper/lvmko-swap
mkfs.fat -F32 /dev/sda5
mount /dev/mapper/lvmko-root /mnt
mkdir /mnt/home
mount /dev/mapper/lvmko-home /mnt/home






swapon /dev/mapper/lvmko-swap
mkdir /mnt/boot
mount/dev/sda5 /mnt/boot
pacstrap /mnt base base-devel

genfstab -U -p /mnt >> /mnt/etc/fstab

arch-chroot /mnt
mount -t efivarfs efivarfs /sys/firmware/efi/efivars              # ignore if already mounted



vi /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
setfont Lat2-Terminus16
echo FONT=Lat2-Terminus16 > /etc/vconsole.conf
ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
hwclock --systohc --utc
echo MYHOSTNAME > /etc/hostname
systemctl enable dhcpcd@eth0.service

vi /etc/pacman.conf

passwd

pacman -S zsh

useradd -m -g users -G wheel,storage,power -s /bin/zsh MYUSERNAME
passwd MYUSERNAME

# add 'encrypt' and 'lvm2' into HOOKS.

vi /etc/mkinitcpio.conf

mkinitcpio -p linux



I have no idea what to do after this. I have tried making separate 512 MB efi form gparted live cd using boot flag, 1G ext4 /boot and rest lvm nothing works because there is no guide what to do after that. Please help me I want to use arch.:(

Offline

#2 2013-11-16 18:24:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,287
Website

Re: Actual guide to install rEFInd in a lvm based dm-crypt LUKS Arch

Please use code tags: https://wiki.archlinux.org/index.php/Fo … s_and_Code


What's wrong with the wiki pages on rEFInd and UEFI installs?


Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-11-17 03:17:09

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 6,704

Re: Actual guide to install rEFInd in a lvm based dm-crypt LUKS Arch

Start with https://wiki.archlinux.org/index.php/Be … therboards and follow the link for other boot loaders if you want to use rEFInd.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB