Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: git ultiple branch delete 
Shell :: zsh for 
Shell :: how to kill process in linux 
Shell :: branch creation 
Shell :: format new disc linux 
Shell :: how to run r in docker 
Shell :: does npm install takes arguments 
Shell :: how to save ssh keygen How to add ssh keys to a specific user in linux? 
Shell :: Bash test if variable is a number 
Shell :: how to make maven clean install faster in eclipse 
Shell :: how to use usb 3 with virtualbox 
Shell :: laserjet m1132 mfp driver linux mint download 
Shell :: ionic icon dimensions 
Shell :: ubuntu livepatch fail 
Shell :: pip install six 
Shell :: $() vs () bash 
Shell :: create linux user with non interactive shell 
Shell :: rsync delete old files 
Shell :: Deploy to AWS Terraform and Gitlab 
Shell :: bash print file permissions 
Shell :: how to fork a repo in git 
Shell :: magento ssh commands 
Shell :: how to shutdown system immediately with shutdown command 
Shell :: remove .idea from git 
Shell :: search command in powershell 
Shell :: linux install software without sudo 
Shell :: gitgraken pre-receive hook declined 
Shell :: git submodule update --init --recursive 
Shell :: git checkout master 
Shell :: with which command make file and directory in linux 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =