You are not logged in.

#1 2021-07-20 21:29:50

860lacov
Member
Registered: 2020-05-02
Posts: 497

Why I failed with installing Arch on USB? (btrfs, cryptroot)

I wanted to install Arch (actuall install and not a iso to usb burning) on USB stick,
Wanted to do this on btrfs with encryption <- for fun and to learn.

USB - sda

I made
sda1 - 1M boot partition
sda2 - 260M EFI fat32
sda3 - system - encrypted with luksFormat

After opening the encrypted device, I formatted it as btrfs

Mount archcrypt to /mnt
btrfs subvolume create @ @home @cache

umount

mount with -o ...subvol=@
(I have btrfs on my main PC, so I assume that I did proper subvolume mount)

In @ I created efi, home, var/cache
subvolumes mounted
sda2 mounted to /mnt/efi

After base install and configuration I did:
edit of mkinitcpio.conf - hooks encrypt after base and udev. Deleted autodetect and modconf

installation of grub:

grub-install --target=i386-pc --boot-directory=/boot /dev/sda
grub-install --target=x86_64-efi --efi-directory=/efi --boot-directory=/boot --removable --recheck

grub config:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet rootflag=subvol=@ cryptdevice=UUID=UUID of sda3:archcrypt root=/dev/mapper/archcrypt"
grub-mkconfig -o /boot/grub/grub.cfg

After restart there is an error
BdsDxe: Loading Boot0002 "UEFI... Sandisk..."


I don't know if rootflag is required. I have it on my other system with systemd-boot. And on another machine with grub I didn't need to use rootflag in grub.
In my daily use (PC without encryption) I have /efi partition. This time I wasn't sure about partition schema

Last edited by 860lacov (2021-07-20 21:31:44)

Offline

#2 2021-07-20 22:05:14

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,327

Re: Why I failed with installing Arch on USB? (btrfs, cryptroot)

cryptdevice=UUID=UUID of sda3:archcrypt

That doesn't match the cryptdevice format described at https://wiki.archlinux.org/title/Dm-cry … ryptdevice .
Maybe you forgot to put the real UUID value there ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2021-07-20 23:18:16

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: Why I failed with installing Arch on USB? (btrfs, cryptroot)

BdsDxe: Loading Boot0002 "UEFI... Sandisk..."

The firmware is failing to find grub?

Offline

#4 2021-07-21 05:38:01

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: Why I failed with installing Arch on USB? (btrfs, cryptroot)

Lone_Wolf wrote:
cryptdevice=UUID=UUID of sda3:archcrypt

That doesn't match the cryptdevice format described at https://wiki.archlinux.org/title/Dm-cry … ryptdevice .
Maybe you forgot to put the real UUID value there ?

The real UUID is there

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet rootflag=subvol=@ cryptdevice=UUID=265d44b6-a1c0-423d-a73d-c21d51724cd6:archcrypt root=/dev/mapper/archcrypt"
loqs wrote:
BdsDxe: Loading Boot0002 "UEFI... Sandisk..."

The firmware is failing to find grub?

Don't know what to do with this.

Offline

#5 2021-07-21 12:27:51

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: Why I failed with installing Arch on USB? (btrfs, cryptroot)

860lacov wrote:
loqs wrote:
BdsDxe: Loading Boot0002 "UEFI... Sandisk..."

The firmware is failing to find grub?

Don't know what to do with this.

When the system boots is the message above produced at once or after Grub loaded and you selected a kernel to boot?

Last edited by loqs (2021-07-21 12:28:28)

Offline

#6 2021-07-21 12:40:47

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: Why I failed with installing Arch on USB? (btrfs, cryptroot)

It's before kernel selection.
I wasn't sure if I can mount efi partition in /efi (like on my regular way to do the install) or /boot. Could it be the problem?

Offline

Board footer

Powered by FluxBB