How to find out where the "grub" is installed [duplicate]

Solution 1:

Disclaimer

dd command is extremely dangerous . Should be used with caution . Use it at your own risk. Below command uses dd, is tested by me, and will not harm your system. Do not change the format of the command , the only thing you can change are the letters of the device

eg: /dev/sda , /dev/sdb, /dev/sdc ...etc


You can examine the first 512 bytes of the device with dd command through strings

For /dev/sda

sudo dd bs=512 count=1 if=/dev/sda 2>/dev/null | strings

The results in my device

ZRr=
`|f 
\|f1
GRUB
Geom
Hard Disk
Read
 Error

as you can see , GRUB is there.

source

Solution 2:

https://help.ubuntu.com/community/Grub2/Installing try this documentation from official source

Solution 3:

During installation, you will be offered to choose the "Device for bootloader installation". Please select: * either the disk (eg /dev/sdX, not /dev/sdXY) on which the BIOS is setup to boot (recommended for normal use) * OR the partition (eg /dev/sdXY, not /dev/sdX) on which Ubuntu (/boot, else /) will be installed (only if you want to chainload it from another bootloader; if any doubt, do NOT choose this)

REFERENCE : https://help.ubuntu.com/community/Grub2/Installing