- /dev/sdX1 (BOOT) <- Altered, Deleted, Corrupt
- /dev/sdX2 (@, @home, @pkgs...)
- SystemRescue 10.00 (USB Bootable)
- Boot into SystemRescue
- Carefully identify the Disk
lsblk
- Use fdisk into your entire disk
fdisk /dev/sdX
- Enter 'd'. Select and delete the BOOT partition
- Enter 'n'. To create a new partition with 512M. (Enter -> "+512M" -> Enter)
- Enter 't', then option '1'. To label the partition as EFI BOOT.
- Enter 'w'. To confirm the changes. Verify after with 'p'
- Format the partition created.
mkfs.vfat -F 32 /dev/sdX1
- Mount & chroot your system
mount /dev/sdX2 /mnt -o subvol=@
mount /dev/sdX1 /mnt/boot
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
chroot /mnt
- Once in chroot, you can install systemd-boot
- Install systemd-boot:
bootctl install
- Install the images
sudo pacman -S linux linux-headers
- Create & configure the entries
nano /boot/loader/entries/arch.cfg
title Arch Linux linux /vmlinuz-linux initrd /initramfs-linux.img options root=PARTUUID=HERE-YOUR-ROOT-PARTUUID rootflags=subvol=@ rw
blkid /dev/sdX2 -s PARTUUID >> /boot/loader/entries/arch.cfg
- Modify /etc/fstab
- Boot partition has been deleted, so UUID is not the same, just update it.
blkid /dev/sdX1 -s UUID
nano /etc/fstab
UUID=YOUR-NEW-UUID /boot vfat ...
- At this point you have successfully recovered the Linux Boot Manager and your Arch OS. However, you still need to create the windows.cfg entry later in case of Dual-Boot.
- Install systemd-boot: