Horje
how to restore a non booting grub bootloader Code Example
how to restore a non booting grub bootloader
# This method requires you to boot into your Linux install first.

# On BIOS systems (sdX is the device where grub is installed)
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=i386-pc /dev/sdX

# On EFI/UEFI systems (the bootloader id can but adjusted to suit your distro)
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS-grub
how to restore a non booting grub bootloader
# This method requires you to boot from a Linux live USB.
# (sdXY is your boot partition)

fdisk -l
sudo mount /mnt /dev/sdXY
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -t sysfs sys /mnt/sys
sudo chroot /mnt /bin/bash
update-grub
/usr/sbin/grub-install --recheck --no-floppy /dev/sda
sync & reboot
Source: zeldor.biz




Shell

Related
how to clear a file without deleting it linux Code Example how to clear a file without deleting it linux Code Example
convert to png images liunx Code Example convert to png images liunx Code Example
commande pour installation de dotnet 3.5 offline Code Example commande pour installation de dotnet 3.5 offline Code Example
sed from start to match Code Example sed from start to match Code Example
brew install php 7.3 Code Example brew install php 7.3 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9