To setup grub2-bios in the 440-byte Master Boot Record boot code region, populate the /boot/grub directory, generate the /boot/grub/core.img file, and embed it in the 32 KiB (minimum size - varies depending on partition alignment) post-MBR gap (MBR disks) or in BIOS Boot Partition (GPT disks), run:
# grub_bios-install --boot-directory=/boot --no-floppy --recheck --debug /dev/sda
where /dev/sda is the destination of the installation (in this case the MBR of the first SATA disk). If you use LVM for your /boot, you can install GRUB2 on multiple physical disks.
The --no-floppy tells grub2-bios utilities not to search for any floppy devices which reduces the overall execution time of grub_bios-install on many systems (it will also prevent the issue below from occurring). Otherwise you get an error that looks like this:
grub-probe: error: Cannot get the real path of '/dev/fd0'
Auto-detection of a filesystem module failed.
Please specify the module with the option '--modules' explicitly.
Warning: Make sure that you check the /boot directory if you use the latter. Sometimes the boot-directory parameter creates another /boot folder inside of boot. A wrong install would look like this /boot/boot/grub !
I have my sole hdd set up as,
I created a LVM on sda2 with a pv and vg and lv's. the lv's are,
My questions are,
If I want to use the "lv /boot" (an I do cos I can) what do I call replace "/devsda" with in the code below ?
Or would it be a better idea to not have a "lv /boot" at all and just put grub2-bios in the MBR of /dev/sda ?
I may have a couple more simple q's you all may be able to help me with later on.
In the meantime on my epic quest as I have re-read the info needed it seems I have missed completely one important step so I'm of to try again with this new information so all the above may be totally irelevant
This is what I missed.
Generate GRUB2 BIOS Config file
Seems that it is quite important to do this.