Last active
October 28, 2023 16:38
-
-
Save dmarov/b55c56508fb0a9e9bb73da4d1c600f37 to your computer and use it in GitHub Desktop.
Restore commands for arch linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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