[Ilugc] Installing grub in the root partition

  • From: mehul.n.ved@xxxxxxxxx (Mehul Ved)
  • Date: Sat, 18 May 2013 13:45:44 +0530

On Sat, Apr 27, 2013 at 10:46 PM, Shrinivasan T <tshrinivasan at 
gmail.com>wrote:

root at ubuntu:/# sudo grub-install /dev/sda8
sudo: unable to resolve host ubuntu
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless
disk or to a partition.  This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be
installed in this setup by using blocklists.  However, blocklists are
UNRELIABLE and their use is discouraged..

try installing in the hard disk itself.

sudo grub-install /dev/sda

This will detect the existing OS in all the partitions and setup the boot
menu.

Try this and share the results.


He is trying to install BCD boot manager on the boot sector. In such cases,
bootloaders like grub and ntldr go to the root partition of their
respective installs. That's the correct way since the selection of which OS
to boot is now handled by the boot manager.
You'd use this strategy for multiple Linux installs too, only one install's
grub goes on MBR, all the other go on the root partition.

I am too late to answer this, though. Would like to know from OP if he
fixed it? I haven't seen this error before. Is he using GRUB2?

Other related posts: