You are not logged in.

#1 2023-07-01 14:25:25

jneidel
Member
Registered: 2019-08-10
Posts: 7

Boot stuck on blinking cursor

Hi guys,

I'm reinstalling on an AMD Thinkpad E495 with a nvme drive.

This is the whole install flow (encrypted btrfs + swap):

# partitioning (MBR)
fdisk /dev/x
## DOS disklabel (o)
## 3 partitions: (n)
##   boot -> +300M
##   swap -> +20G
##   luks -> rest
## partition types: (t)
##   boot -> uefi
##   swap -> swap
##   luks -> linux
## make boot bootable (a)

# create luks container on partition
cryptsetup luksFormat -s 512 /dev/x3

# open luks
cryptsetup luksOpen /dev/x3 cryptroot

# create fs
mkfs.btrfs /dev/mapper/cryptroot

# mount fs
mount /dev/mapper/cryptroot /mnt

# create subvolumes
btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home

# remount fs with subvolumes
umount /mnt
mount -o subvol=@ /dev/mapper/cryptroot /mnt
mkdir /mnt/home
mount -o subvol=@home /dev/mapper/cryptroot /mnt/home

# mount boot partition
mkdir /mnt/boot
mkfs.fat -F32 /dev/x1
mount /dev/x1 /mnt/boot

# create swap
mkswap /dev/x2
swapon /dev/x2

# install system
## requires internet, use ethernet cable
pacstrap /mnt base base-devel linux linux-firmware mkinitcpio grub btrfs-progs vim networkmanager archlinux-keyring iw

# create mount scheme
genfstab -U /mnt >>/mnt/etc/fstab

# set /mnt as root directory
arch-chroot /mnt

# tweak mkinitcpio
vim /etc/mkinitcpio.conf
## add 'btrfs' to MODULES
## add '/usr/bin/btrfs' to BINARIES
## replace 'udev' with 'systemd' in HOOKS
## add 'sd-encrypt' to HOOKS behind 'keyboard'
## and 'resume' between filesystems and fsck

# build linux boot image
mkinitcpio -p linux
chmod 600 /boot/initramfs-linux* # does not work

# setup grub
blkid /dev/x2 | cut -d\" -f2 >>/etc/default/grub # SWAP_UUID
blkid /dev/x3 | cut -d\" -f2 >>/etc/default/grub # HOME_UUID
vim /etc/default/grub
## add to 'GRUB_CMDLINE_LINUX' 'rd.luks.name=HOME_UUID=cryptroot root=/dev/mapper/cryptroot resume=SWAP_UUID'
grub-install --target=i386-pc /dev/x # the device, no partition
grub-mkconfig -o /boot/grub/grub.cfg

# tweak fstab if necessary
vim /etc/fstab
## Add: /dev/mapper/cryptroot / btrfs defaults,discard,compress=lzo,subvol=@ 0 0
## Add: /dev/mapper/cryptroot /home btrfs defaults,discard,compress=lzo,subvol=@home 0 0
# tried both normally generated fstab and also these mapper based.

# change root password
passwd root

exit
reboot

I've played around with fstab, using the lts kernel instead, looked at including Microcode.

But each time it boots normally into passphrase check and with the correct passphrase the cursor just keeps blinking and nothing happens.

Offline

Board footer

Powered by FluxBB