Advertisement
mathio3

#Downgrade kernel and update boot ARCHLINUX

Sep 13th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 KB | None | 0 0
  1. #-Restore the GRUB Bootloader
  2. Chroot into your existing arch Installation
  3. lsblk -f
  4. or
  5. sudo blkid -o list -c /dev/nul
  6. mount /dev/[partition used for arch system] /mnt
  7.  
  8. IF you have used a separate partition for your GRUB bootloader, then this must also be mounted. The syntax to mount a separate partition used to boot is:
  9.  
  10. mount /dev/[partition used for GRUB] /mnt/boot
  11.  
  12. cd /mnt
  13. mount -t proc proc /mnt/proc
  14. mount -t sysfs sys /mnt/sys
  15. mount -o bind /dev /mnt/dev
  16. mount -t devpts pts /mnt/dev/pts/
  17. chroot /mnt
  18.  1-restore grub
  19. sudo pacman -S mtools os-prober
  20. grub-install --recheck /dev/sda
  21. update-grub
  22.  2-(if you want to downgrade the kernel)
  23. uname -r   (to check kernel version)
  24. pacman -U /var/cache/pacman/pkg/linux-XX.tar.xz
  25. #
  26. mkinitcpio -p linux
  27. grub-mkconfig -o /boot/grub/grub.cfg
  28. umount -R /mnt
  29. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement