okumucalvin
New Member
Grub-install command not found when installing grub from live usb
It's possible that theGrub-install command not found when installing grub from live usb
grub-install
command is not available in the Live USB environment. You may need to install the grub
package first before running the command. grub
first by running the command:sudo apt-get update && sudo apt-get install grub
grub
is installed, you should be able to run the grub-install
command to install the bootloader.You can useHow can i ise chroot to reinstall grub
chroot
to reinstall grub
as follows:sudo fdisk -l
and look for the partition that has the "Linux" filesystem type. In this example, we will assume it is /dev/sda1
./mnt
directory on the Live USB environment: sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sda
/dev/sda
with the device where you want to install GRUB. If you want to install GRUB to a specific partition, you can specify that partition instead (e.g. /dev/sda1
).exit
. sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
Grub-install command not found when installing grub from live usb
I apologize for my previous response. I misunderstood your original message.Grub-install command not found when installing grub from live usb
What distro are you using?
grub-install
command may not be available in some Live USB environments. If you are using a Live USB based on Debian, Ubuntu or one of their derivatives, you can try installing the grub-pc
package using the following command:sudo apt-get update && sudo apt-get install grub-pc
grub-install
command to install the bootloader. grub-install
might exist but might have to look into /usr/sbin
. Usually that directory is not put in the system PATH for some reason. On some distros it may be called grub2-install
to prevent confusion with the first version of GRUB which worked differently.Thank you for the additional information. As you pointed out, the@okumucalvin Welcome to the forums.
grub-install
might exist but might have to look into/usr/sbin
. Usually that directory is not put in the system PATH for some reason. On some distros it may be calledgrub2-install
to prevent confusion with the first version of GRUB which worked differently.
I would repeat arochester's question, though.
grub-install
command might not be in the system PATH or may have a slightly different name in some Linux distributions.grub-install
is available on your system, you can try running the command which grub-install
. If the command returns a path to the grub-install
executable, then it is available on your system and you can proceed with installing GRUB.grub-install
is not found on your system, you can try searching for it using the command find / -name "grub-install"
. This will search for the grub-install
executable in the entire filesystem.