Skip to content

Instantly share code, notes, and snippets.

@dmarov
Last active October 28, 2023 16:38
Show Gist options
  • Save dmarov/b55c56508fb0a9e9bb73da4d1c600f37 to your computer and use it in GitHub Desktop.
Save dmarov/b55c56508fb0a9e9bb73da4d1c600f37 to your computer and use it in GitHub Desktop.
Restore commands for arch linux
mount -o subvol=@ /dev/nvme1n1p2 /mnt
mount -o subvol=@home /dev/nvme1n1p2 /mnt/home
mount -o subvol=@var /dev/nvme1n1p2 /mnt/var
mount -o subvol=@tmp /dev/nvme1n1p2 /mnt/tmp
mount /dev/nvme1n1p1 /mnt/boot
arch-chroot /mnt
pacman -Syu grub efibootmgr os-prober
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB [--removable]
# mount windows efi
mount /dev/nvme0n1p1 /mnt
# /etc/default/grub
# GRUB_DISABLE_OS_PROBER=false
grub-mkconfig -o /boot/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment