Installing Arch Linux in UEFI mode + LVM on LUKS + systemd-boot

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 35

  • @beat461
    @beat461 7 років тому +1

    Thanks for this tutorial! I am definitely going to try this, first in virtualbox and then on my laptop. Btw you can install both systemd-boot and grub and then choose which one you want to boot in your systems firmware setup. Both grub and systemdboot will have their own folder on the efi system partition and an entry in your systems uefi nvram. I think its nice to have them both installed just in case you mess up one of them somehow..

  • @konsu89
    @konsu89 7 років тому +4

    thx for this short, simple but very effective tutorial! - just a tip for your next tutorial of this kind, take the youtube controls into account, when pausing it is really hard to see the commands under the title
    thx again

    • @lucasagomes
      @lucasagomes  7 років тому +1

      Thanks for the feedback man, that's a great point! I will definitely take it in consideration of the next videos.

    • @beat461
      @beat461 7 років тому

      xiberger its nice to have a 1920x1200 monitor for this reason.

  • @max_ishere
    @max_ishere Рік тому +1

    I'm jumping IT WORKED, finally

  • @u0000-u2x
    @u0000-u2x 4 роки тому +3

    Nowadays it is necessary to include `linux`, `lvm2` and `mkinitcpio` in the `pacstrap` command.

  • @max_ishere
    @max_ishere Рік тому +1

    Dude, thanks so much, now gotta install all my bloatware back

    • @lucasagomes
      @lucasagomes  Рік тому

      You welcome! Glad to know that this old video is still relevant

  • @max_ishere
    @max_ishere Рік тому

    I honestly can't see much on my phone, you can use setfont -d to make it double the size. Makes it easier to see

  • @francisdraco4169
    @francisdraco4169 5 років тому

    Thank you very much sir! You are a gent. I am a Linux first timer and it took me 2 days but I got it done

    • @max_ishere
      @max_ishere Рік тому

      I installed before and LUKS,LVM does take longer

  • @cohen3106
    @cohen3106 7 років тому +4

    This really helped me, thank you!

  • @timfreedman873
    @timfreedman873 5 років тому

    Any chance you could post a written guide in the description? Some steps are hard to follow on the screen. Great guide though, it really helped me to setup my new efi, systemd-boot, fully encrypted and lvm system. The written steps would be handy for the future. Thanks

  • @henriquemiranda3762
    @henriquemiranda3762 5 років тому +1

    Thanks guy, this helped me a lot!

  • @NasserHasian
    @NasserHasian 7 років тому +1

    Great installation guide. Have you considered doing one with Btrfs with snapshots instead of lvm?

  • @JR-mq3bn
    @JR-mq3bn 8 років тому +2

    Great video, thank you for the upload. Could you add a comment on adding additional HDs to the LVM? I'm trying to do that myself, and I am not sure how I will deal with the multiple UUIDs/multiple passwords.

    • @lucasagomes
      @lucasagomes  8 років тому

      Hi Jeff, thank you!
      So, this is something I haven't tried myself yet. The problem with multiple disks and the LVM on LUKS approach is that the encrypt hook only supports a single "cryptdevice=" entry being specified in the kernel command line. This prevent us from being able to decrypt both devices at boot time, but there are alternatives/workarounds tho:
      1. Modify the encrypt hook to handle multiple cryptdevice entries:
      wiki.archlinux.org/index.php/Dm-crypt/Specialties#The_encrypt_hook_and_multiple_disks
      and bbs.archlinux.org/viewtopic.php?id=105086
      2. Use LUKS on LVM instead of LVM on LUKS: wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#LUKS_on_LVM
      Hope that helps,
      Lucas

  • @matankarbian5644
    @matankarbian5644 5 років тому

    Issues while rebooting
    install arch with lvm on luks.
    im following your Gide with a few changes that I has to do for the exact project of my own.
    first I need to separate the OS( root+home directory) from boot+efi and mount them to separate disks
    1.root+home (on sdcard+lvm on luks encrypted)
    2.efi+boot on another flash drive.
    3.i made an installion iso with rufus.
    I had some more changes
    I formatted the partitions of boot and efi with FAT32.
    and this is another change I made after errors I got with grub installion(arch grub install doesn't look like efi partition)
    grub-install --efi-directory /boot/efi
    when I finished the guide I made a reboot and the system got stuck on Emergency sync complete.
    it happand to me before and I did force reboot to my laptop
    and then the system load with grub menu after the reboot.
    thank you for your help

  • @snapve
    @snapve 7 років тому +1

    Thanks! Really helpful!

  • @jeffersondavis9397
    @jeffersondavis9397 Рік тому +1

    Thank you!

  • @9696Punk
    @9696Punk 5 років тому

    1:27
    Shouldn't /dev/sda2 be of type "8309" (Linux LUKS) instead of "8e00" (Linux LVM)?
    The decrypted devicemapper-file should be 8e00 since it's a PV or am i wrong?

  • @IroxX0
    @IroxX0 5 років тому

    Why did you not change the kernel parameters from udev to systemd and sd-lvm2 instead of lvm2?

  • @DavidAlexander-kc6tx
    @DavidAlexander-kc6tx 7 років тому +3

    thank you for this tutorial, can you show how to install arch with grub uefi

    • @lucasagomes
      @lucasagomes  7 років тому +2

      Hi John, it should be straight forward if you follow the Arch Linux Wiki. So, just skip the last part of the video where systemd-boot is installed and instead follow these instructions: wiki.archlinux.org/index.php/GRUB#Installation_2
      Just make sure you also include the kernel parameters required for the crypt device, see: wiki.archlinux.org/index.php/GRUB#Configuration

  • @KazLeFou
    @KazLeFou 7 років тому

    Hi Lucas. Thank you for your work !!
    How to add an entry for Windows 10 installed on another hard drive in systemd boot?
    Windows is installed on a nvme ssd and Arch on other SSD. For booting i must switching in UEFI Bios.
    Thank you for your help !!

    • @704patrat
      @704patrat 6 років тому +1

      Kaz Archman I know I’m a bit late, but perhaps this will help others.
      Let’s say that Windows is installed on sda and for convenience Arch is on sdb. I also assume you are trying to follow the video as closely as possible.
      Instead of making two partitions sdb1 and sdb2, make only one partition sdb1 filling the disk. Then when mounting mount /dev/sda2 (which should be the efi partition, which you can check with fdisk -l) to /mnt/boot.
      When editing the file /boot/loader/loader.conf add the entry
      auto-entries 1
      That should solve your problem, albeit over a year later.

  • @assymcgee7707
    @assymcgee7707 7 років тому

    Just out of curiosity you seem to have a Spanish accent and you're using the Dublin timezone so I assume you're living in Ireland... What led you to immigrate to Ireland of all places?

  • @ranger-co8my
    @ranger-co8my 7 років тому

    Why at 16:34 it says failed unmounting "run/archiso/bootmnt"?

    • @lucasagomes
      @lucasagomes  7 років тому

      I haven't noticed that before nor debugged it so I don't know... It hasn't affect my installation tho.

  • @dennismitchell8507
    @dennismitchell8507 6 років тому

    After I install with this method I am unable to get to the internet

    • @lucasagomes
      @lucasagomes  6 років тому

      Can you be more specific, were you able to run $ pacstrap or it failed later ?

    • @dennismitchell8507
      @dennismitchell8507 6 років тому

      I figured it out thanks for your video