UP | HOME

moving hardware with arch

1. useful links

2. bootloader

  • When I first tried to boot up, I got "no bootable disk found" and the only thing I could do was access the firmware settings for the machine
  • I tried re-installing grub but no luck
  • Finally, I decided to uninstall grub and install system-d boot
  • I booted into the live usb
mount /dev/nvme0n1p3 /mnt
mount /dev/nvme0n1p1 /mnt/boot
arch-chroot /mnt

p3 has my / and p1 has my EFI parition

Once I changed root, I removed everything in the /boot directory and

bootctl install

And I set /boot/loader/loader.conf to contain

default arch 
timeout 3

then I create the arch.conf

vim /boot/loader/entries/arch.conf

with the following contents:

title Archlinux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=YOUR-PARTUUID-HERE rootfstype=ext4 add_efi_memmap

where YOUR-PARTUUID can be gotten from blkid

I then uninstalled grub

pacman -Rcnsu grub

bootctl status revealed that something was wrong with the boot config so I ended up also

pacman -S linux 
pacman -S mkinitcpio

Then, I exit the chroot, unmount everything, reboot and everything works!

3. useful links

Created: 2024-07-15 Mon 01:28